Re: NSStepper not enabling or disabling
Re: NSStepper not enabling or disabling
- Subject: Re: NSStepper not enabling or disabling
- From: Ian was here <email@hidden>
- Date: Fri, 14 Oct 2005 08:46:30 -0700 (PDT)
The strange issue here is that the NSStepper IBOutlet
is nil. In Interface Builder, it's connected to my
class instance, I checked the outlet name to verify
that is was the same in both IB and the class header
file. For some reason, it's always nil. If I enable
the stepper (in IB), it will send action messages to
the class, but it's outlet remains nil.
--- Mike Morton <email@hidden> wrote:
> Ian --
>
> > I have an NSStepper control on a window. I can
> enable
> > and disable it in Interface Builder, but when I go
> to
> > manually enable or disable it through code, it
> won't
> > work.
> >
> > The setEnabled: method is in the NSControl class,
> > which NSStepper inherits from.
> >
> > Has anyone else had issues with this?
>
> I haven't seen this with NSStepper, but saw it
> recently with an
> NSButton.
>
> Is it just a redraw problem? If you click on the
> apparently-disabled
> control, does it work? That was the situation with
> my bug.
>
>
> Also, as a complete guess, try:
> [.. setEnabled: YES];
> [.. setEnabled: NO];
> [.. setEnabled: whatever you really want];
>
> -- Mike
>
>
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.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