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

[SOLVED] I'm having trouble retaining a NSColor


  • Subject: [SOLVED] I'm having trouble retaining a NSColor
  • From: "Alan Smith" <email@hidden>
  • Date: Mon, 4 Sep 2006 23:20:01 -0400

I finally figured it out. The trouble was that the highlightColor variable
was not being copied when [browser setCellPrototype: cell] (or whatever) was
being called. So, after extending the copyWithZone: (NSCell's copy method),
it worked just fine.

Don't bash me for not getting the method names and classes names correct
because I'm away from my computer with the code.

Cheers, Alan

--
// Quotes from yours truly -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
"Don't waste your life doing things others have already done."
_______________________________________________
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


  • Prev by Date: Re: What's the fastest way to get icons for file/folders?
  • Next by Date: Re: Syntactic sugar
  • Previous by thread: Re: What's the fastest way to get icons for file/folders?
  • Next by thread: Resize NSWindow Programatically
  • Index(es):
    • Date
    • Thread