find what type of object a variable belongs to
find what type of object a variable belongs to
- Subject: find what type of object a variable belongs to
- From: Aaron Wallis <email@hidden>
- Date: Sun, 25 Sep 2005 09:56:56 +1000
Hi there,
im starting to play around with applescript in cocoa, and i've got
this strange problem where strings being returned by a applescript
aren't necesarrily assocuated with a particular class/object, so Im
finding it ery hard to work with the data once returned.
I was wondering if there was any way of tracking down what the data
type is during runtime?
for example:
int myInt = 7;
NSString * myString = @"hello world.";
NSLog(@"%@", [ myString isType ]) // logs NSString
NSLog(@"%@", [ myInt isType ]) // logs int
is there a function or method like isType?
Cheers
_/Az.
Send instant messages to your online friends http://au.messenger.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden