Re: Mysteries of WOResourceManager
Re: Mysteries of WOResourceManager
- Subject: Re: Mysteries of WOResourceManager
- From: Anthony Paras <email@hidden>
- Date: Tue, 30 Dec 2003 22:31:44 -0500
Chuck wins a cookie. I needed to cd into the .woa before launching the app.
On 12/30/03 5:19 PM, "Chuck Hill" <email@hidden> wrote:
> Is the current directory the .woa directory when you launch? NSBundle
> and WOResourceManager use some assumptions about path names in order
> to locate resources. That is your most likely problem.
>
> If that does not help, what is the stack trace on the exception?
>
> Chuck
>
>
> Anthony Paras wrote:
>> Hi all,
>>
>> I have written a few woapps that are designed to boot up, process some
>> stuff, and then exit. I have been writing my own shell commands to launch
>> them by copying and modifying the java command that gets generated in
>> ProjectBuilder.
>>
>> One problem I just noticed is that the application().resourceManager() can't
>> find anything. When I call bytesForResourceNamed(), I get a null pointer
>> exception from deep in the bowels of apple's code.
>>
>> Is there something I need to do prior to launching the app? Is there a
>> better way to do what I'm trying to do?
>>
>> Thanks.
>> _______________________________________________
>> 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.
_______________________________________________
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.