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 protected]
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to