• 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: Getting notified when a document closes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting notified when a document closes


  • Subject: Re: Getting notified when a document closes
  • From: Andrew White <email@hidden>
  • Date: Fri, 18 Mar 2005 12:17:18 +1100


mmalcolm crawford wrote:

Subclass NSDocumentController:

- (void)removeDocument:(NSDocument *)document
Removes document from the list of open documents. A document will automatically call removeDocument: when it closes. This method is mostly provided for subclassers that want to know when documents close.

Ah, thanks. That's exactly what I was looking for, but was looking for notifications so didn't see this.


As it happens, overriding 'close' is actually more useful in this case, since it allows me to easily filter by class. I did try 'close' previously but must have got something wrong.

Thanks both for your help.

--
Andrew White

PS: the disclaimer is added automatically by the mail system. I have no say in it, and didn't even know it was there until I saw my mail and went "Where did that come from?"

--------------------------------------------------------------------------
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


References: 
 >Getting notified when a document closes (From: Andrew White <email@hidden>)
 >Re: Getting notified when a document closes (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: NSTextView font line height
  • Next by Date: Re: Open MyDocument from MainMenu
  • Previous by thread: Re: Getting notified when a document closes
  • Next by thread: Open MyDocument from MainMenu
  • Index(es):
    • Date
    • Thread