Re: Open Recent
Re: Open Recent
- Subject: Re: Open Recent
- From: James Housley <email@hidden>
- Date: Tue, 28 Jun 2005 12:20:34 -0400
Dan Saul wrote:
Is there any way to have this functionality if you do not have a
document based application?
On 24/06/05, James Housley <email@hidden> wrote:
On Jun 23, 2005, at 11:01 PM, Chad Armstrong wrote:
For the Open Recent menu to work properly, does the application need
to be a Document-based application, or is there something that needs
to be set for it to start remembering past items that have been
opened?
If it is based on NSDocument, then Open Recent will work automagically.
But, you can add items to the list in non-NSDocument based programs
with:
[[NSDocumentController sharedDocumentController]
noteNewRecentDocumentURL:aURL];
I am sorry I must not have been clear enough. That is what you do if you
don't have a NSDocument based app, mine is NSObject. If it is NSDocument
based it is automagic. Just add that to you open file routines and save
file routines and you will be all set.
Jim
--
/"\ ASCII Ribbon Campaign .
\ / - NO HTML/RTF in e-mail .
X - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
email@hidden http://www.FreeBSD.org The Power to Serve
email@hidden http://www.TheHousleys.net
---------------------------------------------------------------------
Documentation is alot like sex. When it's good, it's very, very good.
And when it's bad, it's still better than nothing.
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden