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

Re: Looking up a NSString constant at runtime


  • Subject: Re: Looking up a NSString constant at runtime
  • From: Graham Cox <email@hidden>
  • Date: Tue, 5 Jan 2010 11:13:02 +1100

On 05/01/2010, at 11:03 AM, David Alter wrote:

> I can open a library and lookup a function by name using dlsym. These
> constants are EXTERN. It seams there should be away to look these up as
> well.

Functions are not the same, because a function's name is a necessary part of the runtime. A constant's name is just a convenience for the programmer and doesn't make it into the binary.

There is no built-in standard way to do this - you're on your own.

--Graham


_______________________________________________

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: glenn andreas <email@hidden>
References: 
 >Re: Looking up a NSString constant at runtime (From: David Alter <email@hidden>)
 >Re: Looking up a NSString constant at runtime (From: Scott Ribe <email@hidden>)
 >Re: Looking up a NSString constant at runtime (From: David Alter <email@hidden>)

  • Prev by Date: Re: Looking up a NSString constant at runtime
  • Next by Date: Re: Looking up a NSString constant at runtime
  • Previous by thread: Re: Looking up a NSString constant at runtime
  • Next by thread: Re: Looking up a NSString constant at runtime
  • Index(es):
    • Date
    • Thread