• 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: parameterized object creation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parameterized object creation


  • Subject: Re: parameterized object creation
  • From: Daniel DeCovnick <email@hidden>
  • Date: Thu, 14 Apr 2005 23:49:47 -0400

[[NSClassFromString(@"NSObject") alloc] init];

Is that what you're looking for?

-Dan


Daniel DeCovnick danhd123 at mac dot com Softyards Software http://www.softyards.com

On Apr 14, 2005, at 10:08 PM, John James wrote:

I think I have seen this before, but I can't remember what it is called so I can not find how to
look it up.


It is like deserialize but with out the member values. I want to allocate an instance of an object given a
string set to its class name. How is this done?


I could do it with a case statement, but I think I remember there is a more fundamental way. Something
in ObjC that does this directly.
thanks



_______________________________________________ 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: 
 >parameterized object creation (From: John James <email@hidden>)

  • Prev by Date: NSCoder encodeX:forKey vs encodeX:
  • Next by Date: Re: parameterized object creation
  • Previous by thread: parameterized object creation
  • Next by thread: Re: parameterized object creation
  • Index(es):
    • Date
    • Thread