What defines if an objective C class is visible outside a bundle?
What defines if an objective C class is visible outside a bundle?
- Subject: What defines if an objective C class is visible outside a bundle?
- From: Jon Hodgson <email@hidden>
- Date: Mon, 08 Oct 2012 12:05:37 +0100
Hi,
Although I have a great deal of experience in C++, Objective C is
still fairly new to me, and I have a problem.
I have two bundles, they are AU plugins, one is the example Juce
project, the other my own.
Mine works fine apart from the Cocoa GUI, the Juce one has a
functioning Cocoa GUI.
Now, what I've pinned this down to, using the Juce Host demo project
is at the following point
NSBundle* viewBundle = [NSBundle bundleWithPath: [unescapedPath autorelease]];
BOOL loaded = [viewBundle load]; // I put this in to check the bundle
was being found
Class viewClass = [viewBundle classNamed: viewClassName];
Anyway, with the Juce bundle, it finds the viewClass, with mine it
doesn't, and I can't work out why not. I can't see any reason in the
build settings, or in compiler directives, or in the declaration of
the class.
I've looked at a symbol dump using nm, can't see a clue there, I've
also used class-dump on the executable and it shows the correct
classes in both cases.
So, what am I missing? What makes an objective C class visible to
NSBundle classNamed ?
regards
Jon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden