Re: Newbie question about non-document-based app
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