Re: How do I load NSBundle in a correct way?
Re: How do I load NSBundle in a correct way?
- Subject: Re: How do I load NSBundle in a correct way?
- From: Ondra Cada <email@hidden>
- Date: Sat, 24 Nov 2001 16:06:21 +0100
Gore,
>
>>>>> Gore (G) wrote at Sat, 24 Nov 2001 16:41:25 +0200:
G> I would like to know how to load bundles correctly, should I have a
G> NSBundle instance global or can I release the NSBundle instance I used
G> to load the classes with ?
Do release it freely (rather, unless you really need to do that, don't
retain the result of bundleWithPath).
G> (a small example please =)
I've got none at hand just now, but it just works as documented -- no
problems at all (at least not in Mac OS X Server 1 -- I haven't tested
personally whether it's broken in OSX or not. I guess not, since many apps
use the technique).
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc