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

convenience methods


  • Subject: convenience methods
  • From: Julien Palmas <email@hidden>
  • Date: Mon, 4 Apr 2005 10:11:20 +0900

I've been wondering how to write a convenience class methods.
I've got an implementation that works, but wanted to know if it was the right way to do it ...


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 ?

_______________________________________________
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: convenience methods
      • From: "John C. Randolph" <email@hidden>
    • Re: convenience methods
      • From: Ondra Cada <email@hidden>
    • Re: convenience methods
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: [OT] 2GB file limit
  • Next by Date: Unable to view Drawer
  • Previous by thread: 2KB leaks = 200MB resident memory?
  • Next by thread: Re: convenience methods
  • Index(es):
    • Date
    • Thread