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

Re: Initializing a framework


  • Subject: Re: Initializing a framework
  • From: Arturo Pérez <email@hidden>
  • Date: Sat, 24 Apr 2004 14:38:36 -0400

Hi all,

I finally got around to doing the below. I could not get things to work as described by the below URL. The problems:

1. The Info.plist generated does not contain that NSPrincipalClass reference and apparently nothing happens. If you do it as described, you actually end up with a CustomInfo.plist. I had expected the CustomInfo.plist to be merged into the Info.plist. I found that if you do want it merged into the Info.plist then you need to "Project->Edit Active Target" then under the Info.plist twistee there's an entry called "Cocoa Specific". There you find the entry for "Principal Class" and you put the initializer class there.

2. The initializer class is called _way_ early. I expected it to work like the database connections; i.e. after the application had been initialized. In fact, in my case, the framework is initialized right after the main. If you have the run log opened the initialization happens when the first <main> is printed after the classpath list is printed. So, I came to believe it wasn't happening because I was looking for the initialization much later.

HTH the next intrepid developer. BTW, the Xcode documentation for this is only tangentially useful to a WO developer. The panels described don't actually exist when you're doing a WO framework. The information described in terms of the necessary entries helps, though.

On Apr 1, 2004, at 9:44 PM, Chuck Hill wrote:

In WO we trust.  :-)

http://www.omnigroup.com/mailman/archive/webobjects-dev/2002-May/ 023601.html


On Apr 1, 2004, at 6:34 PM, Arturo Pirez wrote:

I have a framework that I would like to do some explicit initialization on. Something akin to doing a class static initializer in Java. Where is the proper place to place such code? Or can I just use a class static initializer?

---- WO in philadelphia - wanna cheesesteak with that? Please visit webobjects.meetup.com. _______________________________________________ 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: Initializing a framework
      • From: King Chung Huang <email@hidden>
References: 
 >Initializing a framework (From: Arturo Pérez <email@hidden>)
 >Re: Initializing a framework (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Xcode Tools v1.2 and WebObjects 5.2.3
  • Next by Date: Re: Xcode Tools v1.2 and WebObjects 5.2.3
  • Previous by thread: Re: Initializing a framework
  • Next by thread: Re: Initializing a framework
  • Index(es):
    • Date
    • Thread