• 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 Item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open Recent Menu Item


  • Subject: Re: Open Recent Menu Item
  • From: j o a r <email@hidden>
  • Date: Tue, 13 Jul 2004 18:19:36 +0200

This is managed by the NSDocumentController, either automatically if
you play nice, or via methods in its interface if you want to take a
more advanced route.

j o a r

On 2004-07-13, at 17.57, Lorenzo wrote:

> I would like to know whether I have to manage the sub-menu
> "File:Open Recent" by myself adding and removing the items (latest file
> names and their URLs or pathnames). Which is the right approach?
> Currently when I call the menu item "File:Open" I simply call
>
> runResult = [op runModalForDirectory:NSHomeDirectory() file:nil
> types:fileTypes];
>
> if(runResult == NSOKButton){
> [self application:nil openFile:[op filename]];
> }
>
> So I don't see how the "Open Recent" menu item could memorize the list
> of
> the most recent file I opened. Any idea?

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Open Recent Menu Item (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: Open Recent Menu Item
  • Next by Date: Re: How to block for NSSavePanel response
  • Previous by thread: Re: Open Recent Menu Item
  • Next by thread: Re: Open Recent Menu Item
  • Index(es):
    • Date
    • Thread