Re: CALayer defaultValueForKey

2009-02-18 Thread Scott Anguish
On 18-Feb-09, at 6:28 PM, Gordon Apple wrote: I guess that should have been obvious that a "value" object would be returned a la dictionaries. The "discussion" part actually confused rather than enlightened me. Although the properties individually state the defaults, I still haven

Re: CALayer defaultValueForKey

2009-02-18 Thread Gordon Apple
I guess that should have been obvious that a "value" object would be returned a la dictionaries. The "discussion" part actually confused rather than enlightened me. Although the properties individually state the defaults, I still haven't found the addendum chapter you mentioned and I just

Re: CALayer defaultValueForKey

2009-02-17 Thread Scott Anguish
On 15-Feb-09, at 6:07 PM, Gordon Apple wrote: The docs are a clear a mud on this. What do you get from CALayer's defaultValueForKey? Is this the same as one would expect from valueForKey for an NSDictionary? The return type is "id". " If this method returns nil a suitable “zero” defau

Re: CALayer defaultValueForKey

2009-02-15 Thread Graham Cox
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 alwa

CALayer defaultValueForKey

2009-02-15 Thread Gordon Apple
The docs are a clear a mud on this. What do you get from CALayer's defaultValueForKey? Is this the same as one would expect from valueForKey for an NSDictionary? The return type is "id". " If this method returns nil a suitable ³zero² default value for the property is provided, based on the