• 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: I'm having trouble retaining a NSColor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: I'm having trouble retaining a NSColor
      • From: "Alan Smith" <email@hidden>
References: 
 >I'm having trouble retaining a NSColor (From: "Alan Smith" <email@hidden>)
 >Re: I'm having trouble retaining a NSColor (From: "Shawn Erickson" <email@hidden>)
 >Re: I'm having trouble retaining a NSColor (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Re: sprite video tracking
  • Next by Date: Re: NSComboBoxCell text baseline - two pixels too low
  • Previous by thread: Re: I'm having trouble retaining a NSColor
  • Next by thread: Re: I'm having trouble retaining a NSColor
  • Index(es):
    • Date
    • Thread