Thread View: comp.sys.next.programmer
2 messages
2 total messages
Started by Alvin Jee
Sun, 30 Aug 1992 06:16
NXRunAlertPanel
Author: Alvin Jee
Date: Sun, 30 Aug 1992 06:16
Date: Sun, 30 Aug 1992 06:16
23 lines
1317 bytes
1317 bytes
Hello!
I'm trying to use an alert panel via the NXRunAlertPanel function, but
I get the following message on the console:
Aug 29 22:45:56 cheddar syslog: Cannot load Interface Builder file:
/usr/lib/NextStep//AlertPanel.nib
I did notice that there are two /'s before AlertPanel.nib in the
path. Is this a known problem with 2.1? or am I using it the wrong
way. I'm trying to call this function in a non-Objective-C program
that does not use any nib or fancy things like that. Heck, this is the
only appkit call that I make. Here's the call:
NXRunAlertPanel(NULL, "GrapeVine: loaded", NULL, NULL, NULL);
Nothing fancy here. Do I need to actually make an NXApp and run the
event loop and all that to get it to work? Oh, I almost forgot, I'm
running 2.1 on an '030 cube. I also checked for the nib and it's there
and is readable by everybody.
Alvin Jee
alvin@cse.ucsc.edu
Re: NXRunAlertPanel
Author: cdb .oz.au Cameron Bromley
Date: Mon, 31 Aug 1992 08:11
Date: Mon, 31 Aug 1992 08:11
32 lines
1638 bytes
1638 bytes
In article <17pp4hINNajo@darkstar.UCSC.EDU> alvin@cse.ucsc.edu (Alvin Jee) writes: > Hello! > > I'm trying to use an alert panel via the NXRunAlertPanel function, but > I get the following message on the console: > > Aug 29 22:45:56 cheddar syslog: Cannot load Interface Builder file: > /usr/lib/NextStep//AlertPanel.nib > [deleted] > Nothing fancy here. Do I need to actually make an NXApp and run the > event loop and all that to get it to work? Oh, I almost forgot, I'm > running 2.1 on an '030 cube. I also checked for the nib and it's there > and is readable by everybody. > > Alvin Jee > alvin@cse.ucsc.edu I'd say that you need to be an NXApp to call NXRunAlert since it sets up a modal event loop, which implies there must be an event loop to filter. One workaround is to write a (very) small app which takes as a command line argument some message text. The app would just call NXRunAlert and then quit. -- --------------------------------------------------------------- Cameron Bromley Internet: cdb@codex.oz.au Codex Software Development Pty. Ltd. NextMail encouraged Phone +61-3-696-2490 Fax +61-3-696-6757
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