• 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: substitute class at runtime?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: substitute class at runtime?


  • Subject: Re: substitute class at runtime?
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 18 Jul 2008 12:05:40 -0600


On Jul 18, 2008, at 12:00 PM, Nathaniel Gottlieb-Graham wrote:

if ([classNameArray containsObject:nameOfClass])
{
	[[[??????? alloc]initWithNibName:nameOfClass] autorelease]
}

How can I get the class name into the ??????? part?


Substitute the ?????? with a Class data structure, which you can get by calling +class on any object.

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


References: 
 >substitute class at runtime? (From: Nathaniel Gottlieb-Graham <email@hidden>)

  • Prev by Date: Re: substitute class at runtime?
  • Next by Date: Re: Image name for drag and drop from Safari
  • Previous by thread: Re: substitute class at runtime?
  • Next by thread: assertion failure in AppKit
  • Index(es):
    • Date
    • Thread