Re: NSTableView not setting -clickedRow, -clickedColumn as it should
Re: NSTableView not setting -clickedRow, -clickedColumn as it should
- Subject: Re: NSTableView not setting -clickedRow, -clickedColumn as it should
- From: Quincey Morris <email@hidden>
- Date: Thu, 09 Aug 2012 00:31:12 -0700
On Aug 9, 2012, at 00:04 , Graham Cox <email@hidden> wrote:
> So call super, but you need to know whether it's going to call through your -init method or not (for cells, it does not).
Except that you do sort-of know (I think). If it does, all your instance variables are 0. If you have object-pointer instance variables that aren't nil after calling super, then (I think) you can assume that a superclass used NSCopyObject.
But thinking about Greg's comments earlier in the day, I have started to believe that NSCopyObject isn't in itself a problem. I think the problem is really that you don't know whether the ARC compilation mode of the superclass is the same as the ARC compilation mode of your subclass.
There's a workaround (or no need of a workaround) for every combination of super/subclass mode. It's that you don't know which workaround to use (or not use) unless you know whether ARC was on or off when the superclass was compiled.
What do you think?
_______________________________________________
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