• 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: Sys Pref Pane cannot load nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sys Pref Pane cannot load nib


  • Subject: Re: Sys Pref Pane cannot load nib
  • From: "Louis C. Sacha" <email@hidden>
  • Date: Tue, 25 May 2004 18:30:20 -0700

Hello...

It sounds like it might be a problem with the info.plist file for your preference pane. It might be a good idea to take a look at and compare the info.plist files of a couple Apple supplied preference pane to see what the required keys are.

Specifically, the ones that might be relevant to your problems would be "NSMainNibFile" which should contain the name of your nib file without the .nib extension, and "NSPrincipalClass" which should be your subclass of NSPreferencePane.

There's also documentation for creating preference panes, if you haven't seen it already, at:
http://developer.apple.com/documentation/UserExperience/Conceptual/PreferencePanes/index.html
and at a similar location in the installed developer documentation on your hard drive.
(in fact, the required keys are listed there, in the "Anatomy of a Preference Pane Bundle" subtopic)

Hope that helps,

Louis


Greetings all,

I'm fighting with a system preference pane bundle that I cannot get to load. It contains a static text label and one NSPopUpButton object. In Interface Builder doing "Test Interface..." seems to work OK. At least it draws correctly and generates no complaints. But when I run it via System Preferences it does several strange things:

1: The window title displays my bundle ID (com.foobar.widget) instead of the panel's name;
2: The entire content (below the toolbar of course) is empty;
3: This error is logged to the console:

... System Preferences[10079] [NSPreferencePane loadMainView]: Could not load nib at "(null)"

I've Googled until I can't see straight and cannot find any reference to this error message. Attempting to search the archives for this list times out with an error.

Any clues as to what the problem could be or what to check would be appreciated.

Thanks,
Mike
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Sys Pref Pane cannot load nib (From: Michael Cashwell <email@hidden>)

  • Prev by Date: Re: why are floats flakey?
  • Next by Date: How to get date string formats in System International Preferences
  • Previous by thread: Sys Pref Pane cannot load nib
  • Next by thread: = and ==
  • Index(es):
    • Date
    • Thread