• 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: NSTableView not setting -clickedRow, -clickedColumn as it should
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSTableView not setting -clickedRow, -clickedColumn as it should
      • From: Graham Cox <email@hidden>
References: 
 >NSTableView not setting -clickedRow, -clickedColumn as it should (From: Graham Cox <email@hidden>)
 >Re: NSTableView not setting -clickedRow, -clickedColumn as it should (From: Corbin Dunn <email@hidden>)
 >Re: NSTableView not setting -clickedRow, -clickedColumn as it should (From: Graham Cox <email@hidden>)
 >Re: NSTableView not setting -clickedRow, -clickedColumn as it should (From: Markus Spoettl <email@hidden>)
 >Re: NSTableView not setting -clickedRow, -clickedColumn as it should (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSTableView not setting -clickedRow, -clickedColumn as it should
  • Next by Date: Re: NSCopyObject is a disaster (was Re: Another NSOutlineView issue)
  • Previous by thread: Re: NSTableView not setting -clickedRow, -clickedColumn as it should
  • Next by thread: Re: NSTableView not setting -clickedRow, -clickedColumn as it should
  • Index(es):
    • Date
    • Thread