turning on the 'Open Recent' attribute for an NSMenuItem
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