• 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: Open Recent Menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open Recent Menu


  • Subject: Re: Open Recent Menu
  • From: PGM <email@hidden>
  • Date: Tue, 14 Aug 2007 16:26:29 -0400


Actually the NSDocument controller is doing the saving for me so I do'nt
have to manage a file myself. Your plan for repopulating the menu is good -
and I will go about that if I can't find a way to have the system do it. I
believe the system can do it (even in non-document based applications)
because I don't see any code in TextEdit that manually inserts items in the
open recent menu.


Also if I can figure out how to get the system to manage my open recent menu
I get standard behavior, and nifty things like:


"Thanks to changes in Cocoa, TextEdit's recent documents menu will now
correctly track documents whose volumes or enclosing folders have been
renamed."

Although I'm not sure if that's referring to the Recent Items menu under the
apple menu or the open recent menu under the file menu.



Have you tried to simply insert the standard Open Recent menu-item into your menu?


I tried in the TextEdit nib, and removed the Open Recent item, and there was no compile warning or error that the item was missing. I then dragged a File-menu item from the Menus pallette of IB into the textEdit menu (so that there are two File-menus). Then I dragged the Open Recent-item from the newly inserted File-menu to the old one (had to click and hold it before being able to drag it to another menu), and then deleted the newly inserted File-menu (so that the old one remained). After recompiling, the Open Recent-menu again worked as expected.

I may be far oof, but I guess the documentController simply recognizes the item and populates it automagically.

Hope this helps, Patrick

_______________________________________________

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


  • Follow-Ups:
    • Re: Open Recent Menu
      • From: "Jeff Bland" <email@hidden>
References: 
 >Re: Open Recent Menu (From: "ronald b. kopelman" <email@hidden>)
 >Re: Open Recent Menu (From: "Jeff Bland" <email@hidden>)

  • Prev by Date: Force a NSArrayController to fetch ?
  • Next by Date: Re: Force a NSArrayController to fetch ?
  • Previous by thread: Re: Open Recent Menu
  • Next by thread: Re: Open Recent Menu
  • Index(es):
    • Date
    • Thread