If I have a bundle that contains a class and some resources used by that class. If I load the class from the bundle how should I load the resources(that are in the bundle where I loaded the class from) in that class?
Let’s say I want to load an image inside my object instantiated from the class loaded from the bundle.
If I do
NSImage *image = [NSImage imageNamed:@"myImage"];
Will it load the image that’s inside the bundle from where I loaded the class from? or will it look in the bundle of the application that loaded the bundle with the class and resources?
1 Answer