Re: Why is this NSSlider subclass not getting displayed?
Re: Why is this NSSlider subclass not getting displayed?
- Subject: Re: Why is this NSSlider subclass not getting displayed?
- From: Matt Ball <email@hidden>
- Date: Mon, 18 Jul 2005 17:48:59 -0400
You are saying I should create an instance of the cell using
initWithFrame:? When I do that, I get a "[MBDashboardSliderCell
initWithFrame:]: selector not recognized" error...
I've always been creating an instance of MBDashboardSlider using initWithFrame:
MBDashboardSlider *testSlider = [[MBDashboardSlider alloc]
initWithFrame:NSMakeRect(100,100,150,20)];
- Matt Ball
On 7/18/05, Nick Zitzmann <email@hidden> wrote:
>
> On Jul 18, 2005, at 03:36 PM, Matt Ball wrote:
>
> > The "init" gets logged, but neither "drawBarInside" nor "drawKnob"
> > gets logged. Is there any reason why this is?
>
> That means you're doing something very wrong when you create an
> instance of that class. NSView's designated initializer is -
> initWithFrame:, -init is not actually used in NSView subclasses. So
> you can delete your -init override and make sure that you create an
> instance of the class using -initWithFrame:.
>
> Nick Zitzmann
> <http://www.chronosnet.com/>
>
>
> _______________________________________________
> 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
>
_______________________________________________
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