• 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: Why is this NSSlider subclass not getting displayed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:52:36 -0400

Nevermind. When I deleted my -init method (I need to learn to read
before I reply), it started working. Thanks.

- Matt Ball

On 7/18/05, Matt Ball <email@hidden> wrote:
> 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

References: 
 >Why is this NSSlider subclass not getting displayed? (From: Matt Ball <email@hidden>)
 >Re: Why is this NSSlider subclass not getting displayed? (From: Nick Zitzmann <email@hidden>)
 >Re: Why is this NSSlider subclass not getting displayed? (From: Matt Ball <email@hidden>)

  • Prev by Date: Re: Why is this NSSlider subclass not getting displayed?
  • Next by Date: [[NSBundle mainBundle] bundlePath] and trailng slashes...
  • Previous by thread: Re: Why is this NSSlider subclass not getting displayed?
  • Next by thread: [[NSBundle mainBundle] bundlePath] and trailng slashes...
  • Index(es):
    • Date
    • Thread