O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Applications

These functions are used for various application level tasks, such as loading and running an application, and managing the Services menu for an application.

NSApplicationLoad

BOOL NSApplicationLoad(void)

NSApplicationMain

int NSApplicationMain(int argc, const char *argv[ ])

NSPerformService

BOOL NSPerformService(NSString *itemName, NSPasteboard *pboard)

NSRegisterServicesProvider

void NSRegisterServicesProvider(id provider, NSString *name)

NSShowsServicesMenuItem

BOOL NSShowsServicesMenuItem(NSString * itemName)

NSSetShowsServicesMenuItem

int NSSetShowsServicesMenuItem(NSString * itemName, BOOL enabled)

NSUnRegisterServicesProvider

void NSUnRegisterServicesProvider(NSString *name)

NSUpdateDynamicServices

void NSUpdateDynamicServices(void)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required