Re: firstResponder KVO snow leopard crash; bug?
Re: firstResponder KVO snow leopard crash; bug?
- Subject: Re: firstResponder KVO snow leopard crash; bug?
- From: "Sean McBride" <email@hidden>
- Date: Thu, 19 Nov 2009 00:16:05 -0500
Aaron Clarke (email@hidden) on 2009-11-18 8:28 PM said:
>> Oh -- another thing. Does your subclass of NSCollectionView override:
>>
>> (void)viewWillMoveToWindow:(NSWindow *)window {
>>
>> but not call super? If not... call super! Your classes should always
>> call super if it is defined in a superclass, unless you have a good
>> reason to hide the super's behavior.
>>
>> corbin
>
>This was the problem, thank you. This is a difficult bug to find in
>code someone else wrote. This makes me almost wish there was a gcc
>flag for it (-Woverride-no-super).
You will get such a warning if you fail to call super in dealloc and
finalize. Expanding that to more methods should be possible I guess...
maybe a job for the clang static analyzer. Do file a bug.
Sean
_______________________________________________
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