Re: NSRecentDocumentRecords
Re: NSRecentDocumentRecords
- Subject: Re: NSRecentDocumentRecords
- From: Scott Anguish <email@hidden>
- Date: Sun, 22 Sep 2002 07:55:49 -0400
what about in your AppDelegate implementation of
-applicationWillFinishLaunching:
That'll get called immediately before the NSApplication object is
initialized.
And that fits with the whole delegate, category, subclass rules as far
as the choice of operations..
On Sunday, September 22, 2002, at 02:15 AM, Ali Ozer wrote:
Thanks Ali. For the benefit of the archive, the code I've used (in my
NSDocument subclass's -init method) is this:
It's actually better to register defaults much earlier than this. For
instance, NSDocumentController might decide to read the default value
before your NSDocument subclass has been registered and has had a
chance to register it. Typically a good place to do it is the
+initialize method of the class which looks for the defaults; and
usually it's more practical to just collect these in the +initialize
method of your NSApplication subclass.
_______________________________________________
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.