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

Re: Dynamically getting the type of ivars


  • Subject: Re: Dynamically getting the type of ivars
  • From: Nick Zitzmann <email@hidden>
  • Date: Mon, 13 Apr 2009 12:12:02 -0600


On Apr 13, 2009, at 11:10 AM, Dave DeLong wrote:

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?

No.

If not, what do I need to do to get the Ivar's type?


Just use the -class and +class methods. If you need to check to see whether an object is, or is a subclass of, a certain class, then use - isMemberOfClass: and -isKindOfClass: respectively.

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

_______________________________________________

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: Dave DeLong <email@hidden>
References: 
 >Dynamically getting the type of ivars (From: Dave DeLong <email@hidden>)

  • Prev by Date: Re: NSDocument reference held by NSSavePanel?
  • Next by Date: Re: Dynamically getting the type of ivars
  • Previous by thread: Dynamically getting the type of ivars
  • Next by thread: Re: Dynamically getting the type of ivars
  • Index(es):
    • Date
    • Thread