• 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: After upgrade to leopard: "principalClass is nil" while loading preferencesPane
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: After upgrade to leopard: "principalClass is nil" while loading preferencesPane


  • Subject: Re: After upgrade to leopard: "principalClass is nil" while loading preferencesPane
  • From: "Finlay Dobbie" <email@hidden>
  • Date: Wed, 14 Nov 2007 09:45:03 +0000

You are directly referencing environ, which you can't do from a
loadable bundle. I am surprised this worked on Tiger - I'd wager it
didn't actually. You might have been hacking around it with
bundle_loader or something.

You can get a pointer to environ from _NSGetEnviron in crt_externs.h

 -- Finlay


On 14/11/2007, Stephan Ruggiero
<email@hidden> wrote:
> Hello,
>
> I have a preferencesPane that ran just fine on Tiger.
> On Leopard is does not load anymore, the Console says:
>
> 14.11.07 08:57:24 System Preferences[3593] Error loading /Library/
> PreferencePanes/DICOMListener.prefPane/Contents/MacOS/DICOMListener:
> dlopen(/Library/PreferencePanes/DICOMListener.prefPane/Contents/MacOS/
> DICOMListener, 265): Symbol not found: _environ
>    Referenced from: /Library/PreferencePanes/DICOMListener.prefPane/
> Contents/MacOS/DICOMListener
>    Expected in: dynamic lookup
>   14.11.07 08:57:24 System Preferences[3593] [NSPrefPaneBundle
> instantiatePrefPaneObject] (/Library/PreferencePanes/
> DICOMListener.prefPane): principalClass is nil.
>
> This is the plist file:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
> "http://www.apple.com/DTDs/PropertyList-1.0.dtd
> ">
> <plist version="1.0">
> <dict>
> 	<key>CFBundleDevelopmentRegion</key>
> 	<string>English</string>
> 	<key>CFBundleExecutable</key>
> 	<string>DICOMListener</string>
> 	<key>CFBundleHelpBookFolder</key>
> 	<string>DICOMListener Help</string>
> 	<key>CFBundleHelpBookName</key>
> 	<string>DICOMListener Help</string>
> 	<key>CFBundleIconFile</key>
> 	<string>DICOMListener</string>
> 	<key>CFBundleIdentifier</key>
> 	<string>com.crispyprojects.DICOMListener</string>
> 	<key>CFBundleInfoDictionaryVersion</key>
> 	<string>6.0</string>
> 	<key>CFBundleName</key>
> 	<string>DICOMListener</string>
> 	<key>CFBundlePackageType</key>
> 	<string>BNDL</string>
> 	<key>CFBundleShortVersionString</key>
> 	<string>0.3</string>
> 	<key>CFBundleSignature</key>
> 	<string>????</string>
> 	<key>CFBundleVersion</key>
> 	<string>0.3</string>
> 	<key>NSMainNibFile</key>
> 	<string>storeSCP_controllerPref</string>
> 	<key>NSPrefPaneIconFile</key>
> 	<string>DICOMListener.icns</string>
> 	<key>NSPrefPaneIconLabel</key>
> 	<string>DICOMListener</string>
> 	<key>NSPrincipalClass</key>
> 	<string>storeSCP_controllerPref</string>
> </dict>
> </plist>
>
>
> I tried to recompile using the new XCode tools, but no luck...
>
> Does anynoe have a hint for me?
>
> Thank you!
>
> Best regards,
>
> Stephan
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> 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:
>
> This email sent to email@hidden
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >After upgrade to leopard: "principalClass is nil" while loading preferencesPane (From: Stephan Ruggiero <email@hidden>)

  • Prev by Date: Re: Subclassing best practice
  • Next by Date: Image Preview
  • Previous by thread: Re: After upgrade to leopard: "principalClass is nil" while loading preferencesPane
  • Next by thread: Re: After upgrade to leopard: "principalClass is nil" while loading preferencesPane
  • Index(es):
    • Date
    • Thread