Re: Potentially dumb question
Re: Potentially dumb question
- Subject: Re: Potentially dumb question
- From: "I. Savant" <email@hidden>
- Date: Tue, 18 Nov 2008 16:41:57 -0500
On Tue, Nov 18, 2008 at 4:32 PM, Robert Mullen <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden