Re: Populate a popup menu with recent items
Re: Populate a popup menu with recent items
- Subject: Re: Populate a popup menu with recent items
- From: Satoshi Matsumoto <email@hidden>
- Date: Fri, 01 Apr 2005 18:04:28 +0900
on 05.4.1 5:56 PM, Luca at email@hidden wrote:
> I've a pop-up menu in my starting point application window. I would
> like to populate this popup menu with the recent opened documents as
> the menu Recent Items does. Is it possible easily? I checked
> NSApplication and I found nothing. Where should I check? Has anyone got
> a sample code?
You can get the recent item URLs as an array.
NSArray *urls = [[NSDocumentController sharedDocumentController]
recentDocumentURLs];
Satoshi
-----------------------------------------------------
Satoshi Matsumoto <email@hidden>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden