Re: setControlView broken?
Re: setControlView broken?
- Subject: Re: setControlView broken?
- From: Mike Abdullah <email@hidden>
- Date: Sat, 15 Apr 2006 16:34:30 +0100
Doh!
I looked at that and somehow failed to read the bit about returning
nil :(
Apologies everyone.
Mike.
On 15 Apr 2006, at 14:14PM, Andreas Mayer wrote:
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:
40gmail.com
This email sent to email@hidden
_______________________________________________
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