• 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: getting ivar of fundamental types with object_getInstanceValue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting ivar of fundamental types with object_getInstanceValue


  • Subject: Re: getting ivar of fundamental types with object_getInstanceValue
  • From: Ignacio Enriquez <email@hidden>
  • Date: Tue, 05 Mar 2013 14:47:46 +0900

>
>
> It might help the rest of us if you state your goals here, because I can't
> see any reason to use object_setInstanceVariable() unless you are doing
> something very low-level or non-standard.
>
>
I found this code in some test cases where the property of the testing
class was not exposed. I find myself in the same position sometimes but
never opted to use objc runtime functions for testing. I agree this is too
much low-level and non-standard to some point. I usually use KVO or simply
expose the getter/setter for testing purposes.

Thanks a lot.
_______________________________________________

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: 
 >getting ivar of fundamental types with object_getInstanceValue (From: Ignacio Enriquez <email@hidden>)
 >Re: getting ivar of fundamental types with object_getInstanceValue (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: getting ivar of fundamental types with object_getInstanceValue
  • Next by Date: Re: Core Data migration: how to delete some managed objects?
  • Previous by thread: Re: getting ivar of fundamental types with object_getInstanceValue
  • Next by thread: "Speech" item in WebView contextual menus
  • Index(es):
    • Date
    • Thread