On Tue, Nov 18, 2008 at 4:32 PM, Robert Mullen <[EMAIL PROTECTED]> wrote: > My application is not document based but does create certain files as a > byproduct and needs to be the default application for these file types as > well. If they are clicked or dragged to the dock icon of my application I > need to be able to display the contained information in a special display > mode of my application.
Sounds perfectly normal so far. > Can all this be done in an NSApplication since this > is more of a utility feature of my application and its core behavior is as a > true NSApplication? Yes. > If so, can someone point me in the direction of > documents that show how to retrieve the document that triggered startup of > my application? Look at the NSApplication API reference and search for "Opening Files". To inform the application of the types of files it can open, you specify this in the application's info.plist: http://developer.apple.com/documentation/Cocoa/Conceptual/Documents/Concepts/DocTypePList.html -- I.S. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]