Re: I'm having trouble retaining a NSColor
Re: I'm having trouble retaining a NSColor
- Subject: Re: I'm having trouble retaining a NSColor
- From: Ricky Sharp <email@hidden>
- Date: Mon, 28 Aug 2006 19:25:17 -0500
On Aug 28, 2006, at 5:36 PM, Alan Smith wrote:
Thanks everyone but I might want highlightColor to equal nil. This is
not related to my problem.
I've tried:
[cell setHighlightColor: [NSColor yellowColor]];
instead of:
[cell setHighlightColor: [NSColor colorWithCalibratedRed: 0.2941
green: 0.5824 blue: 0.8706 alpha: 1.0]];
and it works fine.
I'm stumped. I don't get, what is different between that and
yellowColor?
Thanks again, Alan
Others have provided various accessors to use; all of which will
handle the case where you want your attribute set to nil.
What do your current accessors look like? Without seeing all the
relevant code, it's difficult to troubleshoot.
Also, I strongly suggest reading up on the docs by mmalc that were
mentioned. It goes over several of the accessor patterns. After you
read the necessary docs, check out Accessorizer as it makes it easy
to generate accessor patterns of your choosing.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.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