Re: Open Recent Menu
Re: Open Recent Menu
- Subject: Re: Open Recent Menu
- From: Jeff Johnson <email@hidden>
- Date: Tue, 14 Aug 2007 18:24:29 -0500
I'm not from Apple, but here's how it works:
http://lapcatsoftware.com/blog/2007/07/10/working-without-a-nib-
part-5-open-recent-menu/
-Jeff
On Aug 14, 2007, at 6:09 PM, Jeff Bland wrote:
After playing around with Text Edits NIB file, it appears that the
Open
Recent menu HAS to be created by inserting the default file menu.
Once the
Open Recent menu has been created by Interface Builder it can be moved
around. Creating a menu of the exact name in the exact spot and
exactly all
the same attributes, in interface builder, or in code, will not work.
So, as far as I can tell, the document manager recognizes the Open
Recent
menu by checking a what seems to be an internal, undocumented and
uneditable
flag that gets loaded from a NIB.
My menu's are generated in code currently, but I can move all that
into a
NIB to get the automatic Open Recent menu, but not all programs can
use nibs
(not to mention many people who prefer to code), and it would be
nice if
someone from Apple would tell us how this works - or if they would
add a
document manager message to tell Cocoa what menu we want managed as
the open
recent menu.
For now, I'll try loading my menu from a NIB using the Interface
Builder's
special Open Recent menu.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden