• 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: Constructing class names dynamically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Constructing class names dynamically


  • Subject: Re: Constructing class names dynamically
  • From: Greg Parker <email@hidden>
  • Date: Thu, 15 Jan 2009 14:54:11 -0800

On Jan 15, 2009, at 10:27 AM, Mohan Parthasarathy wrote:
I have tried this to make sure that the class is loaded, but not working:

[[NSBundle mainBundle] classNamed:clsName];
[self loadBundleForClass:clsName];
Class cls = NSClassFromString(clsName);

I still get nil.. What am i missing ?

You can set environment variables to watch the runtime load classes. OBJC_PRINT_IMAGES=YES OBJC_PRINT_CLASS_SETUP=YES

If the class you want is loaded, you'll be able to see it there.


-- Greg Parker email@hidden Runtime Wrangler


_______________________________________________

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: 
 >Constructing class names dynamically (From: "Mohan Parthasarathy" <email@hidden>)
 >Re: Constructing class names dynamically (From: Bill Bumgarner <email@hidden>)
 >Re: Constructing class names dynamically (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Constructing class names dynamically (From: Ken Thomases <email@hidden>)
 >Re: Constructing class names dynamically (From: "Mohan Parthasarathy" <email@hidden>)
 >Re: Constructing class names dynamically (From: "Adam Venturella" <email@hidden>)
 >Re: Constructing class names dynamically (From: "Mohan Parthasarathy" <email@hidden>)
 >Re: Constructing class names dynamically (From: "Mohan Parthasarathy" <email@hidden>)

  • Prev by Date: Re: What determines VSIZE allocation?
  • Next by Date: Re: Manipulating QC input ports with QCRenderer
  • Previous by thread: Re: Constructing class names dynamically
  • Next by thread: alternative to NSURLConnection sendSynchronousRequest
  • Index(es):
    • Date
    • Thread