Re: setControlView broken?
Re: setControlView broken?
- Subject: Re: setControlView broken?
- From: Andreas Mayer <email@hidden>
- Date: Sat, 15 Apr 2006 15:14:33 +0200
Am 15.04.2006 um 14:41 Uhr schrieb Mike Abdullah:
Now as is, when I call controlView from the cell, I get null.
This is documented:
"controlView
Implemented by subclasses to return the NSView last drawn in
(normally an NSControl).
- (NSView *)controlView
Discussion
The default implementation returns nil."
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?
Yes. You have to overwrite and implement -setControlView: and -
controlView yourself.
Andreas
_______________________________________________
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