• 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: koko <email@hidden>
  • Date: Mon, 09 Jul 2012 13:08:54 -0600

The URLs are returned by:


-recentDocumentURLs

They are just not in the menu.


-koko


On Jul 9, 2012, at 12:34 PM, koko wrote:

> In some situations, it is worthwhile to subclass NSDocumentController in non-NSDocument-based applications to get some of its features. For example, the NSDocumentController management of the Open Recent menu is useful in applications that don’t use subclasses of NSDocument.
>
> I have subclassed NSDocumentController.
>
> I have the Menu structure for there Open Recent menu.
>
> I use -noteNewRecentDocumentURL:
>
> Yet, I get no entries in the Menu.
>
> Where should I look?
>
> -koko
>
>
> code
> ===========
> in -windowDidLoad
>
>    m_documentController = [[NSDocumentController alloc] init];
>    [m_documentController retain];
>
> in my open action
>
>    NSURL *url = [NSURL fileURLWithPath:path];
>    [m_documentController noteNewRecentDocumentURL:url];
>
> _______________________________________________
>
> 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

_______________________________________________

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


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

  • Prev by Date: Re: turning app into background app
  • Next by Date: Re: Bottom-edge constraint not enforced in IB but is in runtime?
  • Previous by thread: Open Recent Menu
  • Next by thread: Re: Open Recent Menu
  • Index(es):
    • Date
    • Thread