InstallerSection shouldLoad an NSPrincipalClass
InstallerSection shouldLoad an NSPrincipalClass
- Subject: InstallerSection shouldLoad an NSPrincipalClass
- From: Trenton Schulz <email@hidden>
- Date: Wed, 23 Jan 2008 15:02:41 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
A long time ago, I created an InstallerSection subclass
(InstallerSectionSection) and re-implemented shouldLoad because it was
easy to figure out when to bother loading the plugin. This worked
great in Tiger, but in Leopard (10.5.1) I have problems, in my
Info.plist for the plugin, if I set the NSPrincipalClass key to be
InstallerSectionSection, then the plugin never loads (I've confirmed
this in the debugger). If I change the NSPrincipalClass to be
"InstallerSection", the plugin loads, but my InstallerSectionSection
class is never instantiated (or at least shouldLoad is never called).
I'm suspecting it's a bug, but I'm trying here before I file one.
My Info.plist for reference:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//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>InstallerPane</string>
<key>CFBundleIdentifier</key>
<string>com.example.foo.installerPlugin</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Installer</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>InstallerSectionTitle</key>
<string>InstallerPane</string>
<key>NSMainNibFile</key>
<string>InstallerPane</string>
<key>NSPrincipalClass</key>
<string>InstallerSectionSection</string>
</dict>
</plist>
Thanks in advance,
- -- Trenton
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
iEYEARECAAYFAkeXSQEACgkQCa9wsxBDBCAQ3wCfRysEitDup2jnqufEOp+N/nku
DWEAn2/wBJGkWKQhJHkr9snmy4Em/qKN
=o2Hf
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden