• 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
Looking up a NSString constant at runtime
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Looking up a NSString constant at runtime


  • Subject: Looking up a NSString constant at runtime
  • From: David Alter <email@hidden>
  • Date: Mon, 4 Jan 2010 13:56:01 -0800

Is there a way to lookup what and NString constant is at runtime? I want to
know what the string is for a given constant. For example I would like to
pass in the constant name ( i.e. NSDeviceResolution) and get back
the NSString that constant represents. I know in this case that the Constant
name and the string are the same but I suspect that is not always true. Any
ideas?

thanks
-dave
_______________________________________________

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: Looking up a NSString constant at runtime
      • From: Scott Ribe <email@hidden>
    • Re: Looking up a NSString constant at runtime
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Turn off font hinting?
  • Next by Date: Re: Looking up a NSString constant at runtime
  • Previous by thread: Re: Turn off font hinting?
  • Next by thread: Re: Looking up a NSString constant at runtime
  • Index(es):
    • Date
    • Thread