• 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
Re: CALayer defaultValueForKey
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >CALayer defaultValueForKey (From: Gordon Apple <email@hidden>)

  • Prev by Date: Re: CALayers Lost After Switching Window's ContentView
  • Next by Date: Re: I like the addition of "Related Sample Code" sections to Cocoa Docs.
  • Previous by thread: CALayer defaultValueForKey
  • Next by thread: Re: CALayer defaultValueForKey
  • Index(es):
    • Date
    • Thread