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

Re: Mysteries of WOResourceManager


  • Subject: Re: Mysteries of WOResourceManager
  • From: Hsu <email@hidden>
  • Date: Tue, 30 Dec 2003 15:18:49 -0800

Both NSBundle and WOResourceManager can only find things inside the app/framework bundles. Have you verified that the scripts are actually in the bundle?

Karl

On Dec 30, 2003, at 2:19 PM, Chuck Hill 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.

--

Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net


Progress is the mother of all problems.
- G. K. Chesterton
_______________________________________________
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.



--

Who said humans weren't complicated?
Cats.

Homepage:
     http://homepage.mac.com/khsu/index.html
_______________________________________________
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.

References: 
 >Mysteries of WOResourceManager (From: Anthony Paras <email@hidden>)
 >Re: Mysteries of WOResourceManager (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Mysteries of WOResourceManager
  • Next by Date: Re: can I use fetch spec to filter an array?
  • Previous by thread: Re: Mysteries of WOResourceManager
  • Next by thread: Re: Mysteries of WOResourceManager
  • Index(es):
    • Date
    • Thread