• 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
Dynamically getting the type of ivars
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dynamically getting the type of ivars


  • Subject: Dynamically getting the type of ivars
  • From: Dave DeLong <email@hidden>
  • Date: Mon, 13 Apr 2009 11:10:04 -0600

Hey everyone,

Is there a way to get the class of an ivar that's an object? I know that I can call ivar_getTypeEncoding() on the Ivar and get a c string of the type encoding, and I've noticed that many of the Ivars that are objects are of the form @"{class name}". Is that consistent? Can I reliably pull out that stuff in between the quotes to get the class of the Ivar? (This seems sketchy to me...) Is this the best way to do this? If not, what do I need to do to get the Ivar's type?

Thanks,

Dave DeLong
_______________________________________________

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


  • Follow-Ups:
    • Re: Dynamically getting the type of ivars
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: NSDocument reference held by NSSavePanel?
  • Next by Date: Simple mac server app seems can't receive incoming connection (code signing problem?)
  • Previous by thread: Re: Need to find out why I get Cocoa error 256 . . .
  • Next by thread: Re: Dynamically getting the type of ivars
  • Index(es):
    • Date
    • Thread