On Mon, Apr 14, 2008 at 2:30 AM, Rick Langschultz <[EMAIL PROTECTED]> wrote: > My code uses NSString *bundlePath, and NSBundle *bundle. I want to have > something like *bundlePathA, *bundlePathB, etc; and *bundleA, *bundleB, > *bundleC. Is there a simple way that I can do this?
What exactly are you trying to do? Use variable names that are defined at runtime? You should already know that this is nonsensical in C. I think you're really looking for a mapping from bundle identifier to class instance. That already exists. Once you've loaded the bundle, you can use +[NSBundle bundleWithIdentifier:] to get it again elsewhere, then use -[NSBundle principalClass] to get its principal class. Then +alloc/-init as normal. --Kyle Sluder _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]