• 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
turning on the 'Open Recent' attribute for an NSMenuItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

turning on the 'Open Recent' attribute for an NSMenuItem


  • Subject: turning on the 'Open Recent' attribute for an NSMenuItem
  • From: Lindsey Spratt <email@hidden>
  • Date: Wed, 6 Jul 2005 14:53:11 -0400

I am trying to create an 'Open Recent' menu item so that the NSDocumentController will recognize it and auto-update its submenu (as it does for the 'Open Recent' menu item created by default in a document-based app project). There does not appear to be any documentation (in Panther) on how to set this attribute. I found a discussion at http://developer.apple.com/qa/qa2001/qa1289.html that indicates that the 'Open Recent' menu item should have an action of @selector(openDocument:) and a target of nil. However, this does not appear to be adequate: opening a document in my app (XGP) with this setup does not register in the 'Open Recent' submenu.

Thanks,
Lindsey

_______________________________________________
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


  • Follow-Ups:
    • Re: turning on the 'Open Recent' attribute for an NSMenuItem
      • From: SA Dev <email@hidden>
  • Prev by Date: NSUserDefaultsController and NSTextField
  • Next by Date: Referencing an instance variable in a class method
  • Previous by thread: Re: NSUserDefaultsController and NSTextField
  • Next by thread: Re: turning on the 'Open Recent' attribute for an NSMenuItem
  • Index(es):
    • Date
    • Thread