Darn, sorry for the typo...I meant to say "I have a BUNDLE (out of my control) *without* a principal class specified".

-elan

On Tue, Aug 5, at 8:41 AM, Bill Bumgarner wrote:

On Aug 5, 2008, at 11:19 AM, Elan Feingold wrote:
I can load the principal class of a bundle with:

NSBundle* bundleToLoad = [NSBundle bundleWithPath:@"..."];
Class exampleClass = [bundleToLoad principalClass]);

However, I have a situation where I have a bundle that has a class *without* a principal class, but it has a class that is a subclass of a specific other class. Is there any way to iterate through classes offered by a bundle and pick out the ones that derive from a specific superclass?

"class *without* a principal class" doesn't make sense.

- all bundles have a principal class, automatically (and semi- randomly) chosen if you don't specify it

- all classes have a super class (unless it is a root class)

If you go to the target inspector's Properties tab in your Xcode project, you can specifically set the bundle's principal class.

b.bum



_______________________________________________

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]

Reply via email to