• 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: Not-documents, but similar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Not-documents, but similar
      • From: Nathan Day <email@hidden>
References: 
 >Not-documents, but similar (From: Andrew White <email@hidden>)
 >Re: Not-documents, but similar (From: Nathan Day <email@hidden>)

  • Prev by Date: Responding to NSComboBoxCell selection
  • Next by Date: Re: System Provided Font Menu?
  • Previous by thread: Re: Not-documents, but similar
  • Next by thread: Re: Not-documents, but similar
  • Index(es):
    • Date
    • Thread