Re: Not-documents, but similar
Re: Not-documents, but similar
- Subject: Re: Not-documents, but similar
- From: Nathan Day <email@hidden>
- Date: Wed, 23 Feb 2005 13:12:11 +1100
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.
On Wednesday, February 23, 2005, at 11:43AM, Andrew White <email@hidden> wrote:
>
>I'm writing an application that creates and uses several windows, but has
>no concept of saving or loading (think Terminal). Basically, I want
>something that has the UI functionality of a Document-based App (create /
>delete windows, window menu, ...), but none of the file functionality
>(can't save, can't load).
>
>I can use a document based app, but then I have to disable or ignore save
>and load related stuff from NSDocument and NSDocumentController, so that
>seems hacky. What infrastructure do I need to provide if I don't use
>NSDocument / NSDocumentController, and what's the cleanest way to get this
>into the program?
>
>Thanks
>
>--
>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
>
>
Nathan Day
email@hidden
http://homepage.mac.com/nathan_day/
_______________________________________________
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