🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
1 messages
1 total messages Started by Robert D. Nicholson Tue, 17 Nov 1992 11:06
Why doesn't this work? (Bundles)
#1794
Author: Robert D. Nicholson
Date: Tue, 17 Nov 1992 11:06
37 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads