- Declared In:
- NSApplication+Extensions.h
- - registerFactoryDefaults
- - name
- - libraryDirectory
- - menuItemWithAction:
- - menuItemWithAction:inMenu:
- (NSString *)libraryDirectory
Returns the name of the application's library directory. This can be overriden by the user default "LibraryDirectory" as the Windows implemention of the automatic routine can be less than useful. In any case, the library directory is also created if it did not exist before.
- (NSMenuItem *)menuItemWithAction:(SEL)action
Returns the first menu item in the application's main menu (or any of its submenus) that has the specified action, nil
otherwise.
- (NSMenuItem *)menuItemWithAction:(SEL)action inMenu:(NSMenu *)aMenu
Returns the first menu item in aMenu (or any of its submenus) that has the specified action, nil
otherwise.
- (NSString *)name
Returns the name of the application. This does not come from an info file but directly from NSProcessInfo.
- (void)registerFactoryDefaults
Looks for a file called "FactoryDefaults.plist" in the main bundle, assumes it is in property list format and registers its contents as user defaults. If the file is missing or in an unreadable format an exception is raised.