On Mar 6, 2009, at 11:35 AM, Brad O'Hearne wrote:

How can I properly convert this id returned from the dynamic invocation of the property getter to the BOOL value that it actually is?


You need to do this to get it to work correctly:

BOOL boolValue = ((BOOL (*)(id, SEL))objc_msgSend)(anObject, aSelector);

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to