Re: Short question (legacy usage?)
Re: Short question (legacy usage?)
- Subject: Re: Short question (legacy usage?)
- From: Gavin Eadie <email@hidden>
- Date: Mon, 4 Feb 2008 01:37:23 -0500
Turns out that yes it MUST be there on frameworks. I've just wasted
several hours hunting for why one of my frameworks kept showing up as
the MainBundle, and it was because it had NO "Has_WOComponents" key in
its Info.plist. And while I'm snarling at my laptop why on earth does
Info.plist live in "Resources" in a framework and in "Contents" in an
application? Most of the time WebObjects is gorgeous, and sometimes
its crap .. sorry, it's way past my bedtime .. Gavin
______________________________________________
On Jan 31, 2008, at 4:44 PM, Andrew Lindesay wrote:
Hello Gavin / Mike;
...but it should be there on frameworks?
cheers.
(a) I send email to myself and, (b) I'm stupid until I hit the
'send' button, and then I get smart ...
So, answering my yesterday's question, Mike Schrag said about ten
weeks ago, in this very list:
... Whether or not you are embedding frameworks, check your .woa's
Info.plist. If it defines the key Has_WOComponents (whether or
not it says true, just whether it exists), this is a bug. At some
point in WOLips, the default Info.plist template was modified to
include this, and it causes .woa bundles to be identified as
frameworks by the NSBundle loader. Ordinarily, classes are loaded
from .woa bundles first, followed by frameworks. When
Has_WOComponents is set, it appears that the .woa gets lumped in
with the frameworks, and it actually loads last instead of first.
So delete this key and value if it's in your .woa and it should
save you some pain.
___
Andrew Lindesay
technology : www.lindesay.co.nz
business : www.silvereye.co.nz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden