Re: Can't set NSColorWell
Re: Can't set NSColorWell
- Subject: Re: Can't set NSColorWell
- From: Chris Gehlker <email@hidden>
- Date: Wed, 27 Feb 2002 12:05:50 -0700
On 2/27/02 11:20 AM, "Andy Lee" <email@hidden> wrote:
>
At 11:06 AM -0700 2/27/02, Chris Gehlker wrote:
>
> I'm trying to set the color in an NSColorWell from user defaults but it's
>
> not working. In fact [myColorWell setColor:[NSColor greenColor]] isn't
>
> working. Anybody know what's going on?
>
>
[myColorWell setColor:[NSColor greenColor]] worked for me in a quick test just
>
now.
>
>
Maybe you've broken (or forgotten to set) the myColorWell outlet in IB? If
>
so, myColorWell would be nil at the time of the -setColor: call.
Well, It showed it as being connected in the Nib, but I guess I must have
corrupted my Nib somehow by force quitting IB. Anyway, commenting the
IBOutlet out dragging the header file into IB, removing the comment,
dragging the header file again, and reconnecting fixed it.
Thanks for helping.
--
In the midst of great joy, do not promise anyone anything. In the midst of
great anger, do not answer anyone's letter. -Chinese proverb
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.