home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / next / programm / 5898 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  1.6 KB

  1. Path: sparky!uunet!munnari.oz.au!mel.dit.csiro.au!yarra!codex!cdb
  2. From: cdb@codex .oz.au (Cameron Bromley)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: NXRunAlertPanel
  5. Message-ID: <1992Aug31.081155.1222@codex.oz.au>
  6. Date: 31 Aug 92 08:11:55 GMT
  7. References: <17pp4hINNajo@darkstar.UCSC.EDU>
  8. Sender: cdb@codex.oz.au (Cameron Bromley)
  9. Organization: Codex Software Development Pty Ltd
  10. Lines: 32
  11.  
  12. In article <17pp4hINNajo@darkstar.UCSC.EDU> alvin@cse.ucsc.edu (Alvin Jee)  
  13. writes:
  14. > Hello!
  15. >   I'm trying to use an alert panel via the NXRunAlertPanel function, but
  16. >   I get the following message on the console:
  17. >      Aug 29 22:45:56 cheddar syslog: Cannot load Interface Builder file:
  18. >      /usr/lib/NextStep//AlertPanel.nib
  19. [deleted]
  20. >   Nothing fancy here. Do I need to actually make an NXApp and run the
  21. >   event loop and all that to get it to work? Oh, I almost forgot, I'm
  22. >   running 2.1 on an '030 cube. I also checked for the nib and it's there
  23. >   and is readable by everybody.
  24. > Alvin Jee
  25. > alvin@cse.ucsc.edu
  26.  
  27. I'd say that you need to be an NXApp to call NXRunAlert since it sets up a  
  28. modal event loop, which implies there must be an event loop to filter.
  29.  
  30. One workaround is to write a (very) small app which takes as a command line  
  31. argument some message text.  The app would just call NXRunAlert and then quit.
  32.  
  33.  
  34.  
  35. -- 
  36. ---------------------------------------------------------------
  37. Cameron Bromley                       Internet: cdb@codex.oz.au
  38. Codex Software Development Pty. Ltd.  NextMail encouraged
  39. Phone +61-3-696-2490                  Fax +61-3-696-6757
  40.