Re: NSView Docs. Was: Binding -- or not -- a button created in code
Re: NSView Docs. Was: Binding -- or not -- a button created in code
- Subject: Re: NSView Docs. Was: Binding -- or not -- a button created in code
- From: "Sean McBride" <email@hidden>
- Date: Fri, 9 Jul 2010 10:19:20 -0400
- Organization: Rogue Research Inc.
On Thu, 8 Jul 2010 15:01:19 -0700, Jerry Krinock said:
>Well, I'm still using -[NSView viewWillMoveToWindow:] to remove my
>observers and unbind my bindings, with no problems. But I'm still
>scared that someday it might not be invoked when a window is closed. So
>I filed a bug on the documentation.
>
>Problem ID: 8172493
>
>Title: -[NSView viewWillMoveToWindow:] always invoked when closed?
mmalc has some comments on unbinding here:
<http://homepage.mac.com/mmalc/CocoaExamples/controllers.html#unbinding>
Note that if you use NSView's fullscreen method, viewWillMoveToSuperview
is invoked with a nil parameter. :(
I filed <rdar://5497135> about this.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden