• 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: NSPrincipalClass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSPrincipalClass
      • From: Arturo Pérez <email@hidden>
References: 
 >NSPrincipalClass (From: Arturo Pérez <email@hidden>)

  • Prev by Date: NSPrincipalClass
  • Next by Date: Re: WebObjects after XCode?
  • Previous by thread: NSPrincipalClass
  • Next by thread: Re: NSPrincipalClass
  • Index(es):
    • Date
    • Thread