• 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: m <email@hidden>
  • Date: Mon, 19 Jul 2004 18:16:29 -0700

On Jul 19, 2004, at 5:26 PM, Sam Wilkins wrote:

http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSDocumentController.html#// apple_ref/doc/uid/20000030/CJBFHDEB

It said I was supposed to use that if my application wasn't based on NSDocument.

If it does, I couldn't find it. The whole point of NSDocumentController is that it manages NSDocument instances.

In any case, if you're trying to make an app that acts like it's document based, you'll have a much better time of it if you make your app document based.

"This method should be called by applications not based on NSDocument when they open or save documents identified by aURL."

It was the first sentence of the description for noteNewRecentDocumentURL: in the NSDocumentController class.

I think the thrust of this statement is that if your app is NSDocument based (as in you chose "Document based Cocoa application" when you created the project), management of the recent menu is handled for you automatically. If you're "rolling your own" document support, you will need to call noteNewRecentDocumentURL yourself to ensure that the recent menu shows the right thing. But you shouldn't read it to mean that all you have to do is call noteNewRecentDocumentURL and everything else will magically fall into place.

Again, without more info (outline your strategy and desired behavior, code might be of help unless your problem is conceptual), it's hard to be of help.

_murat
_______________________________________________
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.


  • Follow-Ups:
    • Re: Open Recent menu
      • From: Sam Wilkins <email@hidden>
References: 
 >Re: Open Recent menu (From: Sam Wilkins <email@hidden>)

  • Prev by Date: counting objects in array
  • Next by Date: Connecting to a pop server
  • Previous by thread: Re: Open Recent menu
  • Next by thread: Re: Open Recent menu
  • Index(es):
    • Date
    • Thread