• 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: Open Recent and the User Preferences Database
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open Recent and the User Preferences Database


  • Subject: Re: Open Recent and the User Preferences Database
  • From: Jim Correia <email@hidden>
  • Date: Fri, 27 Feb 2004 11:32:06 -0500

On Feb 27, 2004, at 11:23 AM, Robert Goldsmith wrote:

Having built an app not using the document model, I find that "Open
Recent" does not maintain a list like it does when using the document
model - not that I expected it to, tbh. But in looking at how to
implement it myself (dynamically building the submenu with menu items
etc.) I had a look at some of Apple's preference plists and was
surprised to find that in the NSRecentDocumentRecords dictionary entry
are a number of _NSLocator dictionaries, each with one _NSAlias entry
which is a data string.

Does anyone either:
a) Know what this is all about
b) Know of an api to look after this automatically
c) Tell me if I am totally off in all this!

Just use the NSDocumentController API to add docs, and the menu will be built for you.

<http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSDocumentController.html#// apple_ref/doc/uid/20000030/CJBFHDEB>

Jim
_______________________________________________
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.


  • Follow-Ups:
    • Re: Open Recent and the User Preferences Database
      • From: Robert Goldsmith <email@hidden>
    • Re: Open Recent and the User Preferences Database
      • From: Robert Goldsmith <email@hidden>
References: 
 >Open Recent and the User Preferences Database (From: Robert Goldsmith <email@hidden>)

  • Prev by Date: Re: Protocol doesn't seem to compile? (SOLVED)
  • Next by Date: Re: CocoaInCarbon printing
  • Previous by thread: Open Recent and the User Preferences Database
  • Next by thread: Re: Open Recent and the User Preferences Database
  • Index(es):
    • Date
    • Thread