• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: firstResponder KVO snow leopard crash; bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >firstResponder KVO snow leopard crash; bug? (From: Aaron Clarke <email@hidden>)
 >Re: firstResponder KVO snow leopard crash; bug? (From: Corbin Dunn <email@hidden>)
 >Re: firstResponder KVO snow leopard crash; bug? (From: Aaron Clarke <email@hidden>)

  • Prev by Date: Re: Core Data derived property not recognized after save & reopen
  • Next by Date: Annoying Pragma Mark "Feature"
  • Previous by thread: Re: firstResponder KVO snow leopard crash; bug?
  • Next by thread: Re: firstResponder KVO snow leopard crash; bug?
  • Index(es):
    • Date
    • Thread