• 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: convenience methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: convenience methods


  • Subject: Re: convenience methods
  • From: Nick Zitzmann <email@hidden>
  • Date: Sun, 3 Apr 2005 19:24:33 -0600


On Apr 3, 2005, at 7:11 PM, Julien Palmas wrote:

what about this to add a new color to the NSColor class ?

+ (NSColor *)lightRedColor {
return [[NSColor colorWithCalibratedHue:0.0 saturation:0.1 brightness:1.0 alpha:1.0] autorelease];
}


is that ok ?

No; that'll lead to a crash since it autoreleases an object that has already been autoreleased.


Nick Zitzmann
<http://www.chronosnet.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


References: 
 >convenience methods (From: Julien Palmas <email@hidden>)

  • Prev by Date: Unable to view Drawer
  • Next by Date: Re: Split view in a table
  • Previous by thread: convenience methods
  • Next by thread: Re: convenience methods
  • Index(es):
    • Date
    • Thread