Re: NSPrincipalClass
Re: NSPrincipalClass
- Subject: Re: NSPrincipalClass
- From: Art Isbell <email@hidden>
- Date: Fri, 23 Jan 2004 18:48:25 -1000
On Jan 23, 2004, at 6:12 PM, Arturo Pirez wrote:
But after digging for an hour I can't find how to set the principal
class. Leastways, not successfully :-)
Any pointers to documentation about this? The apple stuff is (as
usual) pretty useless.
I know what to set the principal class to because I can get the
message to go away by hand-editing the Info.plist after the framework
is built. I added NSPrincipleClass to the InfoPlist.strings but that
did nothing that I could determine.
Check the method description for NSBundle.principalClass():
If you create a framework that needs to be initialized using a
principal class, you must specify the class name in the
CustomInfo.plist file, a source file for the bundle's property list.
For example, if your principal class is myPackage.myPrincipalClass,
your CustomInfo.plistfile should look like:
{
NSPrincipalClass = myPackage.myPrincipalClass;
}
I'm not sure whether this documentation has been completely updated.
I can't find a file named CustomInfo.plist in a built framework but I
can find Info.plist with a NSPrincipalClass key. So that's what I'd
try.
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.