• 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
setControlView broken?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setControlView broken?


  • Subject: setControlView broken?
  • From: Mike Abdullah <email@hidden>
  • Date: Sat, 15 Apr 2006 13:41:05 +0100

Has anyone else had a problem with the controlView and setControlView: methods in NSCell? I have my own custom subclass of NSCell which is being placed in a tableview.

The tablecolumn which the cell is drawn in has also been subclassed to override cellForRow: in order to have a seperate cell for each row of the table.

Now as is, when I call controlView from the cell, I get null. This is not entirely surprising since my tablecolumn is the one who initializes the cell and it does not set the controlView. But, if I do call setControlView: when initializing the cell, the cell does not seem to "remember" this. When I then call controlView I still get null.

But, if I override setControlView: and controlView to store the view myself, then everything works perfectly. So does this mean that setControlView: simply doesn't work?

Mike.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: setControlView broken?
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: action on unmodified keyboard shortcuts
  • Next by Date: Adjusting appearance of dragImage?
  • Previous by thread: action on unmodified keyboard shortcuts
  • Next by thread: Re: setControlView broken?
  • Index(es):
    • Date
    • Thread