• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: PrefPane subclass error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: PrefPane subclass error - fixed
      • From: Jaime Magiera <email@hidden>
References: 
 >PrefPane subclass error (From: Jaime Magiera <email@hidden>)

  • Prev by Date: Sharing a content view between two NSViews
  • Next by Date: Re: Sharing a content view between two NSWindows
  • Previous by thread: PrefPane subclass error
  • Next by thread: Re: PrefPane subclass error - fixed
  • Index(es):
    • Date
    • Thread