• 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: Class name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Class name


  • Subject: Re: Class name
  • From: "John C. Randolph" <email@hidden>
  • Date: Mon, 22 Nov 2004 11:13:49 -0800


On Nov 22, 2004, at 10:13 AM, Ricky Sharp wrote:












Don't do this. Use Scott Stevenson's suggestion of the NSClassFromString function. I keep forgetting about those functions when I search for APIs.

One other thing to mention about NSClassFromString() and NSStringFromClass() is that they work for all classes, not just the ones derived from NSObject.


-jcr








John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Class name (From: email@hidden)
 >Re: Class name (From: Ricky Sharp <email@hidden>)
 >Re: Class name (From: Ricky Sharp <email@hidden>)

  • Prev by Date: NSTextField binding problem
  • Next by Date: Re: Cocoa applications and exit codes
  • Previous by thread: Re: Class name
  • Next by thread: Re: Class name
  • Index(es):
    • Date
    • Thread