• 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: Newbie question about non-document-based app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie question about non-document-based app


  • Subject: Re: Newbie question about non-document-based app
  • From: Graham Cox <email@hidden>
  • Date: Tue, 5 May 2009 10:58:24 +1000


On 05/05/2009, at 8:36 AM, Chris Goedde wrote:

Hi,

I have a simple question about my non-document-based app. It's a computer simulation of a physical system, and I've implemented file saving and loading to save the state of the system. Works great except for one thing. If I double-click one of the save files in the Finder, my app launches, but in the default state---the data in the save file isn't loaded. I think I have all the methods needed to make things work (e.g. there's a method hooked up to the "Open..." menu item), but I don't know how to hook things up so that my method will get called when I double-click a file.

I'm thinking that this is something that's handled by NSDocumentController in a document-based app. My question is, how do I implement this in a non-document-based app?


The application's delegate should implement -application:openFiles:

--Graham


_______________________________________________

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: 
 >Newbie question about non-document-based app (From: Chris Goedde <email@hidden>)

  • Prev by Date: Re: drawing image
  • Next by Date: Re: Adding objects to NSMutableArray out of order?
  • Previous by thread: Newbie question about non-document-based app
  • Next by thread: Re: Full content of "Cocoa Design Patterns" available as "Rough-Cut" on-line
  • Index(es):
    • Date
    • Thread