• 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: Manual KVO quirks with NSDocument and NSWindowController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Manual KVO quirks with NSDocument and NSWindowController


  • Subject: Re: Manual KVO quirks with NSDocument and NSWindowController
  • From: Andrew White <email@hidden>
  • Date: Wed, 01 Jun 2005 14:40:52 +1000


Tim Lucas wrote:
On 01/06/2005, at 1:48 PM, Andrew White wrote:

For now, I'd rather work around the problem completely and hook either the "disconnect from document" or "my window closed" event in the NSWindowController, thus allowing me to cleanly de-register KVO.

How do I hook this event?


-(void)windowDidClose:(NSNotification*)aNotification

Ah, delegate the NSWindowController from the NSWindow, and catch the event that way. :)


And I'm pretty sure the following gets called with a argument of nil for doc disconnection:
-(void)setDocument:(id)aDocument

OK, thanks.

--
Andrew White

--------------------------------------------------------------------------
This email and any attachments may be 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: Manual KVO quirks with NSDocument and NSWindowController
      • From: Tim Lucas <email@hidden>
References: 
 >Manual KVO quirks with NSDocument and NSWindowController (From: Andrew White <email@hidden>)
 >Re: Manual KVO quirks with NSDocument and NSWindowController (From: Tim Lucas <email@hidden>)
 >Re: Manual KVO quirks with NSDocument and NSWindowController (From: Andrew White <email@hidden>)
 >Re: Manual KVO quirks with NSDocument and NSWindowController (From: Tim Lucas <email@hidden>)

  • Prev by Date: Re: Manual KVO quirks with NSDocument and NSWindowController
  • Next by Date: Re: Custom cell in NSTableView
  • Previous by thread: Re: Manual KVO quirks with NSDocument and NSWindowController
  • Next by thread: Re: Manual KVO quirks with NSDocument and NSWindowController
  • Index(es):
    • Date
    • Thread