On Nov 8, 2009, at 5:47 AM, Shai Shasag wrote:
> How could this be? I think the problem is that both bundle_A & bundle_B have
> principle class with the same name. Somehow Cocoa gets confused.
No "somehow" about it. Objective-C does not support namespaces; all classes
(and selectors) exist wi
The following code loads two different bundles and gets their
principle classes.
NSString* path_A = @"/My/Bundles/Folder/A.bundle";
NSBundle* bundle_A = [NSBundle bundleWithPath: path_A];
Class class_A = [bundle_A principalClass];
NSString* path_B = @"/My/Bundles/Folder/B.bundle";
NSBundle* b