• 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
typedef show up as existing type while introspecting, want to show defined data type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

typedef show up as existing type while introspecting, want to show defined data type


  • Subject: typedef show up as existing type while introspecting, want to show defined data type
  • From: Devraj Mukherjee <email@hidden>
  • Date: Sun, 04 Sep 2011 17:23:18 +1000

Hi all,

I have been using Obj-C runtime to introspect my objects. I am using
property_getAttributes to inspect the type / Class name etc for my
properties.

I want to be able to uniquely identify some of my properties which are
essentially NSStrings and NSArray instances.

I used typedef to define an alias of NSString and NSArray and defined
the properties using the new types, but when I use
property_getAttributes the property string has the original data type
i.e NSString or NSArray.

Is there a way that I can ask property_getAttribute to return the
defined names not the parent names?

Subclassing is my only other option to solve my problem but I want to
refrain from doing that for core Obj-C types.

Thanks for your time.
_______________________________________________

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: typedef show up as existing type while introspecting, want to show defined data type
      • From: Graham Cox <email@hidden>
    • Re: typedef show up as existing type while introspecting, want to show defined data type
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Custom Cell Bindings
  • Next by Date: keylayout in Lion
  • Previous by thread: Re: Best Practices for Associating a File Extension With a File in XCode 4?
  • Next by thread: Re: typedef show up as existing type while introspecting, want to show defined data type
  • Index(es):
    • Date
    • Thread