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 declared type of the key. For example, if key is a CGSize object, a size of (0.0,0.0) is returned. For a CGRect an empty rectangle is returned. For CGAffineTransform and CATransform3D, the appropriate identity matrix is returned." What does that mean? If you want a CGSize, does that mean you have to use "sizeValue" on what is returned and convert it? Or "CGSizeValue"? But wait, that's an iPhone SDK extension. Why isn't that in Cocoa? _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com