On 2010 Jul 09, at 14:30, Sean McBride wrote:
> On Fri, 9 Jul 2010 13:38:36 -0700, Jerry Krinock said:
>
>>> mmalc has some comments on unbinding here:
>>> <http://homepage.mac.com/mmalc/CocoaExamples/controllers.html#unbinding>
>>
>> I wonder if mmalc saw any advantage to using -viewWillMoveToSuperview:
>> vs. -viewWillMoveToWindow: for unbinding/unobserving? It seems like
>> they'd both do about the same thing.
>
> My memory is fuzzy, but it might have had to do with GC.
Just learned that -viewWillMoveToSuperview: is better for non-GC too. In this
case:
window content view
RBSplitView
NSTabView
NSTabView
Custom View
-viewWillMoveToWindow: does not get invoked when window loads or closes, but
-viewWillMoveToSuperview: does. I believe that both worked before nesting in
the second tab view, but I ain't looking back today.
Conclusion: Use -viewWillMoveToWindow: like mmalc said.
_______________________________________________
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]