• 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 in non-doc app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open Recent menu in non-doc app


  • Subject: Re: Open Recent menu in non-doc app
  • From: Matt Judy <email@hidden>
  • Date: Fri, 22 Mar 2002 13:00:31 -0800

Since you are not using the doc. arch. you have to jump through one more hoop...

In the object that is your Application's delegate, override:

- (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename

...and do your app's custom 'open' logic there, returning the appropriate success status.

--Matt Judy

John Nestor wrote:
I am having trouble with the Open Recent menu in my non-document application.

The menu is populated properly by calling

[[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL: [NSURL fileURLWithPath:path] ];

as soon as path is available.

If I try to use the Open Recent menu I get the following error panel

The recent document "EiffelTower_even_smaller.tif" in folder
"/Users/jnesto02/Smaller samples" failed to open.

The path is correct and I haven't moved the files around.

The noteNewRecentDocumentURL: call is specified for non-doc apps in
the Document Controller documentation.

Can someone help me with what I am missing. Thanks
_______________________________________________
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.
_______________________________________________
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 in non-doc app (From: John Nestor <email@hidden>)

  • Prev by Date: Making Columns like in NSTableView
  • Next by Date: Re: creating a "track ball" button
  • Previous by thread: Open Recent menu in non-doc app
  • Next by thread: Re: Open Recent menu in non-doc app
  • Index(es):
    • Date
    • Thread