Re: Open Recent menu in non-doc app
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.