gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSBundle mainBundle] + gdb


From: Marcus Müller
Subject: Re: [NSBundle mainBundle] + gdb
Date: Tue, 3 Jun 2003 23:21:31 +0200


On Monday, Jun 2, 2003, at 12:04 Europe/Berlin, Nicola Pero wrote:

Try adding

BundleTest_HAS_RESOURCE_BUNDLE = yes

to your GNUmakefile. That will turn on support for the main bundle in the
makefiles, and your main bundle directory should appear, and [NSBundle
mainBundle] should find it and return a bundle accessing it. :-)

Hi Nicola,

thanks for explaining this fact. On OSX, a tool's mainBundle is always set (set to the executable path). While this is of limited use for resource loading (cannot work on OSX), it's of use for [NSBundle bundleForClass:<some class from the executable>] to work.

Wouldn't it be best if the above setting (<Tool>_HAS_RESOURCE_BUNDLE = yes) would always be set to 'yes' for Tool projects on GNUstep? I don't see an obvious drawback in doing so. If one didn't ever want this behavior, he could do so by setting it to 'no' explicitly.


Cheers,

  Marcus

--
Marcus Mueller  .  .  .  crack-admin/coder ;-)
Mulle kybernetiK  .  http://www.mulle-kybernetik.com
Current projects: finger address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]