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

Newbie question about non-document-based app


  • Subject: Newbie question about non-document-based app
  • From: Chris Goedde <email@hidden>
  • Date: Mon, 4 May 2009 17:36:48 -0500

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?

Thanks.

Chris Goedde

_______________________________________________

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


  • Follow-Ups:
    • Re: Newbie question about non-document-based app
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Discussion on how to draw text like that seen in toolbars
  • Next by Date: Re: Crashing resetting or releasing an NSManagedObjectContext
  • Previous by thread: Re: -[CALayer hitTest:] incorrect when embedding layer-backed NSView subclass inside NSScrollView
  • Next by thread: Re: Newbie question about non-document-based app
  • Index(es):
    • Date
    • Thread