Re: CALayer defaultValueForKey
Re: CALayer defaultValueForKey
- Subject: Re: CALayer defaultValueForKey
- From: Graham Cox <email@hidden>
- Date: Mon, 16 Feb 2009 11:55:20 +1100
On 16 Feb 2009, at 10:07 am, Gordon Apple wrote:
What does that mean? If you want a CGSize, does that mean you have to
use "sizeValue" on what is returned and convert it?
Yes; what is returned is an object (NSValue) containing the size. You
call -sizeValue to get the size itself. KVC always returns an object
as a value, so if it's a scalar type, you have to "unwrap" it.
--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