Re: PrefPane subclass error
Re: PrefPane subclass error
- Subject: Re: PrefPane subclass error
- From: Jaime Magiera <email@hidden>
- Date: Mon, 12 Mar 2007 18:12:49 -0400
Tracking this further...
if (![[curBundle principalClass] isSubclassOfClass:
[NSPreferencePane class]])
{
NSLog(@"%@ not loaded as pref pane: principal class not a
subclass of NSPreferencePane %@", bundlePath, [curBundle
principalClass]);
continue;
}
Error...
/Contents/PreferencePanes/ExportPrefs.prefPane not loaded as pref
pane: principal class not a subclass of NSPreferencePane (null)
This confuses me since the title and the icon from the same .plist
show up in the application. So, it's reading the .plist, but it can't
find the class in the Mach-O of the bundle? The class appears to be
referenced properly in the NIB....
[annastasia:Contents/Resources/exportPrefs.nib] jaimelm% cat classes.nib
{
IBClasses = (
{CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS =
NSObject; },
{
CLASS = NSPreferencePane;
LANGUAGE = ObjC;
OUTLETS = {
"_firstKeyView" = NSView;
"_initialKeyView" = NSView;
"_lastKeyView" = NSView;
"_window" = NSWindow;
};
SUPERCLASS = NSObject;
},
{
CLASS = exportPreferencePaneController;
LANGUAGE = ObjC;
SUPERCLASS = NSPreferencePane;
}
);
IBVersion = 1;
stumped,
Jaime Magiera
Sensory Research Network
http://www.sensoryresearch.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden