Re: Open Recent and the User Preferences Database
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.