UIColor vs. NSColor methods
UIColor vs. NSColor methods
- Subject: UIColor vs. NSColor methods
- From: Graham Cox <email@hidden>
- Date: Sun, 29 May 2011 13:13:38 +1000
I'm porting some code to iOS from MacOS for the first time.
I find that UIColor is quite impoverished compared to NSColor, but I also don't see a way to do what I need using CGColorRef either.
Specifically, I often generate colours from other colours by using the H, S and V values returned by an RGB NSColor. While I can create a UIColor using HSV, I can't see any methods for obtaining those component values. Similarly I can't see how to get the r, g and b components. Likewise there are no HSV <--> RGB functions in the CGColorRef functions either.
Is there any way to do this using UIColor or CGColor?
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden