• 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
find what type of object a variable belongs to
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: find what type of object a variable belongs to
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: How do I get something like performSelector:(SEL) withObjects:(NSArray *)?
  • Next by Date: Re: using zlib on OS X
  • Previous by thread: Re: Handling Delete Key Events in NSOutlineView
  • Next by thread: Re: find what type of object a variable belongs to
  • Index(es):
    • Date
    • Thread