• 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: James Spencer <email@hidden>
  • Date: Wed, 16 Mar 2005 22:12:44 -0600

Check out notifications. You can have your documents register for, post, and receive a notification stating that a document has closed.

On Mar 16, 2005, at 9:21 PM, Andrew White wrote:


When a document (NSDocument) closes, I want to signal all the other documents in the application (some may need to redraw windows). Is this possible / plausible? How do I do it?


The obvious way seems to be to iterate through [NSApp orderedDocuments] calling a category method. The problem I can't work out is how to find out *after* a document has closed that it has done so.

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


James P. Spencer
Rochester, MN

email@hidden

"Badges??  We don't need no stinkin badges!"

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

  • Prev by Date: Re: Wait for NSTask to finish
  • Next by Date: Re: Self-scheduling threading
  • Previous by thread: Re: Getting notified when a document closes
  • Next by thread: Re: Getting notified when a document closes
  • Index(es):
    • Date
    • Thread