Article View: comp.sys.next.programmer
Article #1794Why doesn't this work? (Bundles)
From: Robert D. Nicholson
Date: Tue, 17 Nov 1992 11:06
Date: Tue, 17 Nov 1992 11:06
37 lines
1591 bytes
1591 bytes
I have my "new" method for a progress panel as such
+ new
{
char nibPath[MAXPATHLEN + 1];
NXBundle *bundle;
if (!uniqueInstance) {
NXZone *zone = NXCreateChildZone([self zone], vm_page_size, vm_p
age_size, YES);
NXNameZone(zone, "ProgressPanel");
uniqueInstance = [[ProgressPanel alloc] init];
bundle = [NXBundle bundleForClass:[self class]];
if ([bundle getPath:nibPath forResource:"Gauge" ofType:"nib"]) {
[NXApp loadNibFile:nibPath owner:uniqueInstance withName
s:NO fromZone:zone];
}
NXMergeZone(zone);
}
return uniqueInstance;
}
When it is like this, I get bizzare behaviour ie. the quit and hide menu options
do absoluately nothing. However, when I change
[NXApp loadNibFile:nibPath owner:uniqueInstance withNames:NO fromZone:zone];
To
[NXApp loadNibFile:"Gauge.nib" owner:uniqueInstance withNames:NO fromZone:zone];
it works
The nib gets found in either case I just get the wierd menu behaviour that I
cannot explain.
All help appreciated
Technical Details
Message-ID:
<1992Nov17.110635.2086@monu6.cc.monash.edu.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!rpi!batcomputer!munnari.oz.au!bruce.cs.monash.edu.au!monu6!ede978eShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!rpi!batcomputer!munnari.oz.au!bruce.cs.monash.edu.au!monu6!ede978e From: ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson) Subject: Why doesn't this work? (Bundles) Message-ID: <1992Nov17.110635.2086@monu6.cc.monash.edu.au> Organization: Monash University, Caulfield Campus Date: Tue, 17 Nov 1992 11:06:35 GMT Lines: 38