Re: Initializing a framework
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.