• 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: NSColor with alpha problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSColor with alpha problem


  • Subject: Re: NSColor with alpha problem
  • From: Andreas Mayer <email@hidden>
  • Date: Mon, 26 Apr 2004 11:49:30 +0200

Am 26.04.2004 um 09:18 schrieb Dominic Edward Feira:

I forgot to do a retain on the NSColor I was creating. For some reason
not doing the retain didn't show up as a problem until I wanted to use
an alpha value...weird.

The reason might be that the color is already used somewhere else and you get a shared copy. In that case it would be retained even if you didn't call retain yourself.


Andreas
_______________________________________________
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.


References: 
 >Re: NSColor with alpha problem (From: Dominic Edward Feira <email@hidden>)

  • Prev by Date: Re: NSArrayController and undo row add/remove
  • Next by Date: KeyValue Observing rant
  • Previous by thread: Re: NSColor with alpha problem
  • Next by thread: Newbie: Easy "mouseEntered" Question...
  • Index(es):
    • Date
    • Thread