Aaron Clarke (clark...@gmail.com) 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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to