#import /*! @header ApplicationDelegate.h @abstract This class is the delegate object for NSApp. */ /*! @class ApplicationDelegate @abstract This class is the delegate object for NSApp. */ @class OpenPanelDelegate; @interface ApplicationDelegate : NSObject { /*! @var openPanelDelegate Delegate for NSOpenPanels. */ IBOutlet OpenPanelDelegate *openPanelDelegate; /*! @var icons A dictionary within which to cache icons. Keys are four-character NSStrings representing ResTypes. */ NSMutableDictionary *_icons; } /*! @method showAbout: @abstract Displays the about box located in AboutPanel.nib. */ - (IBAction)showAbout:(id)sender; /*! @method visitWebsite: @abstract Takes the user to http://web.nickshanks.com/resknife/. */ - (IBAction)visitWebsite:(id)sender; /*! @method visitSourceforge: @abstract Takes the user to http://resknife.sourceforge.net/. */ - (IBAction)visitSourceforge:(id)sender; /*! @method emailDeveloper: @abstract Launches email client and inserts resknife@nickshanks.com into To field. */ - (IBAction)emailDeveloper:(id)sender; /*! @method showInfo: @abstract Displays the Info panel stored in InfoWindow.nib */ - (IBAction)showInfo:(id)sender; /*! @method showPasteboard: @abstract Displays the pasteboard document, a singleton instance of class PasteboardDocument */ - (IBAction)showPasteboard:(id)sender; /*! @method showPrefs: @abstract Displays the preferences panel stored in PrefsWindow.nib */ - (IBAction)showPrefs:(id)sender; /*! @method initUserDefaults @abstract Initalises any unset user preferences to default values as read in from defaults.plist. */ - (void)initUserDefaults; /* accessors */ /*! @method openPanelDelegate @abstract Accessor method for the openPanelDelegate instance variable. */ - (OpenPanelDelegate *)openPanelDelegate; /*! @@method iconForResourceType: @abstract Returns the icon to be used throughout the UI for any given resource type. */ - (NSImage *)iconForResourceType:(NSString *)resourceType; /*! @@method _icons @abstract Private accessor method for the _icons instance variable. */ - (NSMutableDictionary *)_icons; /*! @method icons @abstract Accessor method for the _icons instance variable. Returns an immutable dictionary. */ - (NSDictionary *)icons; /* utility methods */ - (NSArray *)forksForFile:(FSRef *)fileRef; @end