• 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: Populate a popup menu with recent items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Populate a popup menu with recent items (From: Luca <email@hidden>)

  • Prev by Date: Populate a popup menu with recent items
  • Next by Date: Re: Populate a popup menu with recent items
  • Previous by thread: Populate a popup menu with recent items
  • Next by thread: Re: Populate a popup menu with recent items
  • Index(es):
    • Date
    • Thread