Re: Open Recent Menu Item
Re: Open Recent Menu Item
- Subject: Re: Open Recent Menu Item
- From: j o a r <email@hidden>
- Date: Tue, 13 Jul 2004 18:19:36 +0200
This is managed by the NSDocumentController, either automatically if
you play nice, or via methods in its interface if you want to take a
more advanced route.
j o a r
On 2004-07-13, at 17.57, Lorenzo wrote:
>
I would like to know whether I have to manage the sub-menu
>
"File:Open Recent" by myself adding and removing the items (latest file
>
names and their URLs or pathnames). Which is the right approach?
>
Currently when I call the menu item "File:Open" I simply call
>
>
runResult = [op runModalForDirectory:NSHomeDirectory() file:nil
>
types:fileTypes];
>
>
if(runResult == NSOKButton){
>
[self application:nil openFile:[op filename]];
>
}
>
>
So I don't see how the "Open Recent" menu item could memorize the list
>
of
>
the most recent file I opened. Any idea?
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.