Re: Not-documents, but similar
Re: Not-documents, but similar
- Subject: Re: Not-documents, but similar
- From: Andrew White <email@hidden>
- Date: Thu, 24 Feb 2005 11:40:25 +1100
Nathan Day wrote:
I would us a document based app if I was you, all you have to do is
remove the save and open actions. If you use the undo manager you will
also have to override a method to stop the document from being 'dirtied'
so that it will not show the bullet in the close button and show a save
alert when the user tries to close the window. Trying to implement all
of the rest of that functionality yourself is just going to be a wasted
effort. One of the benifits of the document base project templates is
all application that use that project template all behave in a consitent
manner.
Are there any gotchas to this method? One thing I noticed was that in
order for 'new' to work correctly, I need to have an instance of the
correct document type and set to editor in the list of document types
handled by the application. Which results in some odd semantics for the
developer, because there is actually no such document type on disk, only a
transient window.
What happens if someone tries to send a save or open apple event to my app?
--
Andrew White
--------------------------------------------------------------------------
This email and any attachments are confidential. They may contain legally
privileged information or copyright material. You should not read, copy,
use or disclose them without authorisation. If you are not an intended
recipient, please contact us at once by return email and then delete both
messages. We do not accept liability in connection with computer virus,
data corruption, delay, interruption, unauthorised access or unauthorised
amendment. This notice should not be removed.
_______________________________________________
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