Getting System Information

It is seldom necessary for Cocoa applications to use system information directly. Cocoa provides enough abstraction of system features that the need to know details about the system is rare. Nevertheless, Cocoa’s Foundation framework provides classes that identify the operating system, provide information about the host computer, and provide access to the system environment in which an application is running. Information about the current user of an application and standard file systems locations is also available.

NSProcessInfo Class

Every application that runs on Max OS X is a separate operating system process. Cocoa applications access information about the operating system and processes using the NSProcessInfo ...

Get Cocoa® Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.