• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Potentially dumb question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Potentially dumb question (From: Robert Mullen <email@hidden>)

  • Prev by Date: Re: core data - delete of object.
  • Next by Date: Re: core-data crash on save.
  • Previous by thread: Potentially dumb question
  • Next by thread: Can 2 nib share a same custom class instance?
  • Index(es):
    • Date
    • Thread