Re: Documents which aren't NSDocuments
Re: Documents which aren't NSDocuments
- Subject: Re: Documents which aren't NSDocuments
- From: Marcel Weiher <email@hidden>
- Date: Tue, 13 Aug 2002 11:42:19 +0200
On Tuesday, August 13, 2002, at 10:12 Uhr, Angela Brett wrote:
I'm wondering how I can make files with a particular extension open in
my application, but without making my application document-based.
Sure, absolutely no problem.
There doesn't need to be a nib or window controller for the 'document'
so it seems as though it would be overkill to use NSDocument, I want
my preference controller to handle them. I just need a way of
associating these preference files with my application and knowing
when one is opened. [How] can it be done?
Just do what you would normally do for the association: edit the
Info.plist, either manually or using Project Builder's specialized tab.
Your application object or its delegate will then receive the
- (BOOL)application:(NSApplication *)sender openFile:(NSString
*)filename
message.
Marcel
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.