Re: Tell which type is in NSValue?
Re: Tell which type is in NSValue?
- Subject: Re: Tell which type is in NSValue?
- From: Bill Bumgarner <email@hidden>
- Date: Tue, 04 Aug 2009 23:59:08 -0700
On Aug 4, 2009, at 11:38 PM, aaron smith wrote:
if I receive an NSValue object, how can I find out if the value it
contains is a point/rect/size/ etc. I can't figure out what to compare
it with, and can't figure out if the objCType is something I can use
for that problem. Any ideas?
This:
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/nsvalue_Class/Reference/Reference.html#//apple_ref/occ/instm/NSValue/objCType
Implies this:
http://developer.apple.com/documentation/Cocoa/Conceptual/NumbersandValues/Articles/Values.html#//apple_ref/doc/uid/20000174-BAJJHDEG
Which implies this:
http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtTypeEncodings.html
b.bum
_______________________________________________
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