• 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: NSRecentDocumentRecords
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSRecentDocumentRecords


  • Subject: Re: NSRecentDocumentRecords
  • From: Jeremy Dronfield <email@hidden>
  • Date: Sun, 22 Sep 2002 13:23:34 +0100

On Sunday, September 22, 2002, at 07: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.

Yes, I decided to do this after sending the last post. I didn't actually have an app delegate controller class before, but I'm going to add one just to accomodate this registration. Thanks again.

-Jeremy

========================================
email@hidden // email@hidden
The Alchemy Pages:
- fractious fiction at http://freespace.virgin.net/jeremy.dronfield
========================================
_______________________________________________
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.

References: 
 >Re: NSRecentDocumentRecords (From: Ali Ozer <email@hidden>)

  • Prev by Date: Re: [Newbie] Ampersands in NSURL
  • Next by Date: Re: NSString searching for zero
  • Previous by thread: Re: NSRecentDocumentRecords
  • Next by thread: NSTextField Focus
  • Index(es):
    • Date
    • Thread