HDTenEightyP/NetNews huggingface dataset:
From: wierda@ltb.ltb.bso.nl (Gerben Wierda)
Newsgroups: comp.sys.next.programmer
Subject: Where can I find a charCode list?
Date: 12 Oct 92 08:49:03 GMT
Organization: BSO/LT, Baarn, The Netherlands

I am looking for a list of charCodes, or a way to detect them from the
keyboard. For instance trhe CalculatorLab example source uses '3' to set up a
key binding between a button and the "enter" key. But is uses a numerical
value, so it is not very informative.

2nd Q: Can I set a button object to a state where it reacts to more than one
key?

Thanks,

-- 
wierda@ltb.bso.nl (Gerben Wierda) || I speak for myself and not for my employer.
(+31) 2154 84414/(+31) 35 833539  || Support the League for Programming Freedom!
    "If you don't know where you are going, any road will take you there."
    (From the Talmud(?), rephrased in) Lewis Carroll, "Alice in Wonderland".
From: frank@glocke.hotb.sub.org (Frank Thomas)
Newsgroups: comp.sys.next.programmer
Subject: Re: Writing fax drivers?
Date: 15 Oct 92 06:50:45 GMT

In article <1992Oct10.173903.8219@muddcs.claremont.edu>  
wfp@jupiter.claremont.edu (Frank Price) writes:
> I'm trying to find out how to write drivers for fax modems.  I noticed  
that  
> the Interfax and HSD both have drivers for their modems, but that is not  
the  
> fax modem I have and I don't want to wait for the company to make their  
own  
> fax driver.  Does anyone know of any example code for this or  
documentation?
> 
> Thanks!
> 

I have no example but...
Do you know NXFax (commercial,demo on nova.cc.purdue.edu,or send mail to  
nxfax@bandw.com)
It supports ZyXEL and as far as I know Supra works as well.
The v1.02 has a small bug which doesn't clear some bits in special  
registers (38-42). This bug made it impossible for me to receive fax and  
data at the same time. I fixed in it (small binary patch) but I was told  
it will be fixed in 1.03.

Frank 

PS: I have no connection to bandware except as user and supplier of a  
little binary fix for this problem. 
Newsgroups: comp.sys.next.programmer
From: andylee@oahu.cs.ucla.edu (Andy Lee)
Subject: How to Get Screen Snap Shots?
Organization: UCLA, Computer Science Department
Date: Mon, 12 Oct 92 22:06:19 GMT

(I am still using NS2.1.)  How do I take a snap shot of the screen
with the mouse pointer in the midst of doing something?  I tried to
use Grab, but the "Grab Selection" and "Grab Window" options doesn't
capture the mouse pointer.  And I couldn't figure out how to use the
"Grab Screen" option - I don't have any documentation on Grab.

I am writting a manual for an X window program (using co-Xist), and
need to make screen shots to illustrate various user interface
objects.

Any help would be greatly appreciated!

-- 

+----------------------------------------------------------------------------+
| Andy A. Lee         | UCLA MS Graduate Student, AI Neural Networks         |
| andylee@cs.ucla.edu | Down-to-Earth Idealist & Independent NeXT Developer  |
From: andrew@cubetech.com
Newsgroups: comp.sys.next.programmer
Subject: Re: help with streams please
Date: 9 Oct 92 23:00:27 GMT
Organization: Cube Technologies, Inc.

In article <4ep3D7i00iUxE1J0Yj@andrew.cmu.edu> js3b+@andrew.cmu.edu (James Vincent Schultz) writes:
>
>I'm just starting out as a NeXT programmer, so please forgive me if I'm
>missing something obvious.
>
>I'd like to use the NXReadTypes & NXWriteTypes functions to temporarily store
>some instance variables in memory.  I looked in NeXT Concepts and the
>NeXTStep Reference to come up with the idea of opening a memory stream,
>converting that to a typed stream, and passing that to my object.
>
>This is great except that you have to open a stream NX_READONLY or
>NX_WRITEONLY.  I can't figure out how to do both.  I want to write to a
>stream, then come back a while later and read the values back.
>
>How can I read & write a stream?

NX_READWRITE

everbody should index /usr/include and put it on their default
bookshelf.  It's already done for you in 3.0 (and there's also
header-viewer in 3.0...)


andrew
-- 
andrew@cubetech.com     | "We shall not cease from exploration
Andrew Loewenstern      |  And the end of our exploring
Cube Technologies, Inc. |  Will be to arrive where we started
                        |  And know the place for the first time." -T.S. Eliot
From: byer@adobe.com (Scott Byer)
Newsgroups: comp.sys.next.programmer
Subject: Re: getting the path representation of a character to server stdout
Date: 13 Oct 92 22:55:34 GMT
Reply-To: byer@adobe.com (Scott Byer)
Organization: Adobe Systems Incorporated

Paul Gilmartin writes

> The Adobe PostScript Lang Ref, 2nd edition, states in the description
> of the charpath operator:

>     The outlines of some fonts are protected. ... charpath ...
>     causes pathforall to be disabled ...

Note that 'some', in practice, means 'large character set fonts'
(such as Kanji fonts).  Roman fonts are generally not protected in
this way.

On my NeXTStation running 3.0PR2, the following:

/Times-Roman 12 selectfont
0 0 moveto
(Hello) true charpath
[ { {/m} {/l}  {/c} {/cl} pathforall }  stopped pop ]
== flush

produces:

[0.227997 0.0 /m 3.564 0.0 /l 3.564 0.228027 /l 2.62801 0.287964
..

(The array will be empty if the font is protected, or if this is
run on a Level 1 printer.)

--
Scott Byer                             NeXTMail: byer@mv.us.adobe.com
Adobe Systems Incorporated               These are *my* opinions, and  
1585 Charleston Road, P.O. Box 7900        do not necessarily reflect
Mountain View, CA 94039-7900             the opinions of my employer.
---------------------------------------------------------------------
Newsgroups: comp.sys.next.programmer
From: dse@cbnewsi.cb.att.com (donald.s.eaves)
Subject: Messageing Edit & Terminal?
Organization: AT&T
Date: Tue, 13 Oct 1992 02:01:00 GMT

Does anyone know the  name of the server and/or 
messages that can be sent to the Edit and/or Terminal application?
I wonder why NeXT doesn't document something as important as this.
Distributed Objects are so much more useful when you can
communicate with them.

Thanks,
Don
Newsgroups: comp.sys.next.programmer
From: samurai@cs.mcgill.ca (Darcy BROCKBANK)
Subject: Synchronous Device Driver
Keywords:  Help!
Organization: SOCS - Mcgill University, Montreal, Canada
Date: Thu, 15 Oct 1992 00:55:04 GMT


Much to my chagrin it seems apparent that I have to write
a device driver for a synchronous modem.

As this is the closest thing to hell that I can think of,
I am currently praying that some brave soul out there
has written one already.

Key words are: Synchronous Transmission, SDLC Broadcast
Operating Mode.

Any comments would be appreciated.

Thanks,

- darcy
From: gordie@duts.ccc.amdahl.com (Gordie Freedman)
Newsgroups: comp.sys.next.programmer
Subject: Insert date/page# in text object's PS output?
Keywords: Postscript Text View Print
Date: 14 Oct 92 06:02:58 GMT
Reply-To: gordie@duts.ccc.amdahl.com
Organization: Happy hacker bait and tackle shop


I would like to know how to count the pages that will be printed
by a text object's print method (the method that uses the print panel
and creates a postscript representation of the text contents). I also
want to insert the title (filename - directory) at the top of each
page and the date/page# at the bottom. I'm not sure how to figure out
the size of the pages, and where I would insert this stuff to get it in the
right place after it is printed.

Another question I have is how to stop the print method from vertically
centering the text in a page when there is less than one page of text.

Here's more background:

I have subclassed a text object and am using it to "pretty print" code.
One nice feature of this is that I can use the standard print panel to
actually print (or stuff in a file) postscript code for the text buffer.
I format the text using bold for the reserved words and italics for the
comments (similar to vgrind for any Unix hacks).

What I want to do is put "filename - directory" at the top of each page, and
the date and page number at the bottom. I expect I can do this by creating
a new instance of a text object, copying the contents of the original
text buffer into it, format the bold/italics, and stick in the title,
date and page number. Then I can print the new text object and free it
when I am done. 

My questions are:

1) How do I determine the size of a page so that I can stick the title
on top, track the # of pages and stick the date and page number on the
bottom?

2) Is there an easier way to do what I described?

3) How do I set the top and bottom border for each page? (Related to #1)

4) How do I prevent the print method from vertically centering text
when there is less than one page?

Thanks in advance for any answers or pointers to docs to read.

(Anybody ever notice the ever popular bundle acronym rtfd also has another
meaning in Unix slang?)


---
Gordie Freedman: gordie@kaleida.com Sigs are for kids
Newsgroups: comp.sys.next.programmer
From: rainer@ruble.fml.tuwien.ac.at (Rainer Staringer)
Subject: AppKit event loop & MathLink interaction
Reply-To: rainer@eimoni.tuwien.ac.at
Organization: Technical University of Vienna
Date: Mon, 12 Oct 1992 08:49:24 GMT

I am using Mathematica via the MathLink protocol in an IB palette,
and I found the following strange interaction between the event loop
and the MathLink functions: If I call the MLStart() function in
-appDidInit: or anywhere after [NXApp run] is called, it will work
(sort of) but the first call to MLNewPacket() will hang forever. If
I move the MLStart() call into the main() function and call it before
[NXApp run] everything will work. But of course this is not possible
in an IB palette (at least if you want it to work in test mode), so
I would like to know what the cause could be for this sort of failure.
I think MLStart does not much more than popen() does, i.e. open a pipe,
fork, and exec. MLNewPacket() does a select() to check if the pipe is
still there, then a read(). What does [NXApp run] do that might cause
this to fail?

I am also using the Sybase DB library in the same palette, if that matters.

I am pretty sure that my MathLink code is correct because I basically
copied WRI's sample front end program.

I am doing this under 2.1/2.2; I haven't tried it under 3.0 yet.

Thanks in advance for any pointers!

	Rainer
--
Rainer Staringer                   | rainer@fml.tuwien.ac.at
Financial Markets Lab, TU Vienna   | +43 (1) 58801/8138
Newsgroups: comp.sys.next.programmer
From: bwilliam@iat.holonet.net (Bill Williams)
Subject: Re: NS 486 pricing vs. Win NT
Organization: HoloNet (BBS: 510-704-1058)
Date: Thu, 8 Oct 1992 08:33:45 GMT

Windows NT does not provide the ability to use 255 character file names,
in fact most MS Windows NT users will use only 8 character file names
because Windows NT does not really expect you to use the OS2 ish extended
system AND BECAUSE Windows NT cannot save any files to floppy disk with
filnames greater than 8 characters.

Windows NT ABSOLUTELY does not currenlty allow multiple displays on one
Intel PC Clone, Though Macintoshes easily support 6 joined monitors, and I
have used multi monitor NeXT computers.

Windows NT cannot run in a turnkey startup mode. To run the first program
after supplying power the user MUST DEPRESS CNTL-ALT-DEL before logging
in. AND YOU MUST LOG IN EVEN IF NO PASSWORD IS SET FOR THE DEFAULT USER!

Windows NT does not use graphical objects to draw in a non pixelated
manner "such as Display PostScript or Apples new QuickDraw GX mammoth
project. It is a pixellated toy using wildly divergent aspect ratio devices.

Windows NT does not have an improved graphic driver interface for
accelerator board mfgs.

Windows NT does not prevent a user from inserting a bootable dos diskette
into the computer and using a disk editor on it to hack the systems disk
directly. Nor does it operate well when in full C2 security mode.

Windows NT is just a boring slight rehash of Windows 3.1 in many important
ways.


I just Looooove 8 character file names such as "IHATEMS.DOS" don't you?



Bill Williams

NeXT Step 486 is going to be insanely great!

Newsgroups: comp.sys.next.programmer
From: bvrotney@ADS.COM (Bill Vrotney)
Subject: Fixing Allegro CL 3.1.20 to work under NS 3.0
Organization: Advanced Decision Systems, Mtn. View, CA (415) 960-7300
Date: Fri, 9 Oct 1992 04:27:38 GMT


I though it was going to take me longer to get a method out for doing this
but the ucl.o file that I had was not the Franz patched file, so it is
actually pretty simple as long as you update to the Franz patched ucl.o.

The following is a procedure for fixing Allegro CL 3.1.20 so that it works
under NeXTstep 3.0. I don't have 3.0 so I need someone to try this out and
report back to this news group.

  Warning!!! (from Franz) This procedure results in creating a new ucl.o
  binary file. You may distribute this method but not the resulting ucl.o
  file. 

  You should find all of the files mentioned here on your ACL distribution
  floppies. If you do not have the Franz patch mentioned below you will
  have to ask Franz for it.

        1. You need to patch your existing ucl.o file, if it is not
           already patched, with an existing patch from Franz. This is
           done with an existing shell script called

                install_patch.sh

           and an existing patch file called

                patch.uu

           To verify that you have done the right thing, after this patch
           is installed the ucl.o file should be 612364 bytes.

        2. Then you edit the binary file in emacs and save the results.
           You are going to edit your existing ucl.o file so that you might
           want to save the existing ucl.o to ucl.orig.o. Then run emacs
           and do:

                find-file ucl.o
                replace-string _rld _jld
                replace-string __bcopy _bcopy^@
                save-buffer

           The ^@ above is the null character (000 byte) and can be
           entered in emacs using

                C-q C-<space>

           and will look in an emacs buffer as a single character ^@
           and NOT two characters.


        3. You then reinstall ACL as usual.

--
Bill Vrotney
BAH/Advanced Decision Systems
From: mai_nguyen@next.com
Newsgroups: comp.sys.next.programmer
Subject: MiniExample Release - September 92
Date: 8 Oct 92 23:30:43 GMT
Reply-To: mai_nguyen@next.com

Hi:
MiniExamples are small programming examples provided by NeXT Developer Support.   
Each one contains its own README file. If you are interested, you can get the  
examples via anonymous ftp (file transfer protocol) from one of the following  
Internet archive servers. Note that they may still be in /pub/next/submissions.
       ________________________________________________________
         hostname       MiniExamples-directory
       ________________________________________________________
	
       	cs.orst.edu     pub/next/documents/NeXTanswers/MiniExamples/3.0Release
						(may still be in  
pub/next/submissions)
       	sonata.cc.purdue.edu	pub/next/docs/MiniExamples (may still be in
				pub/next/submissions)
	
  


The September 92 Release contains 8 miniexamples for the 3.0 NeXTStep Release.  
7 of them are DBKit MiniExamples.

AssociationExample shows how you can attach a qualifier to your fetch on the  
detail fetchgroup in the case of a one-to-many relationship. 

BarChart demonstrates how to use the DBCustomAssociation protocol with your UI  
object to retrieve or set values to your database. 

BooleanFormatter shows how to translate 0/1 values of your database into YES/NO  
strings.

OrderByTest shows how to change the sort order every time the columns in your  
tableview are rearranged.

QuickApp is a simple workaround for fetching records with a qualifier built  
from one-to-one relationship attributes.

RadioAssociation provides an extension to the Matrix class so that you can  
connect radio buttons to integer attributes of your module.

TableViewExample shows how you can set up your own tableview programmatically  
without using Interface Builder.

TIFFandEPS shows how to open EPS or TIFF images and save them back as EPS or  
TIFF, converting the image in the process. This version has been upgraded to  
3.0.

Enjoy!

mai 
Developer Support
Newsgroups: comp.sys.next.programmer
From: songer@lexmark.com (Christopher Songer)
Subject: Re: Missing files in /NextDevelopers/Headers: A survey
X-Disclaimer: These views are the poster's and not necessarily those of Lexmark
Organization: Lexington, KY
Date: Thu, 08 Oct 1992 15:47:41 GMT

ram@ramsys.sta.sub.org writes:
>
[ ... Lots of Files ... ]
>
>NeXT2.1 looked like a (manual crippled) Mach/BSD development-system.
>3.0 now is ... well 3.0 :-( 
>
[ ... ]

I haven't had the time to play with 3.0 the way I would have liked,
however I did notice a directory off NextDeveloper (or was it
NextLibrary?) That had seemed to have to 2.1 headers. Assuming
I wasn't just hallucinating or misinterpreting it should be easy to
restore BSD compatibility since /usr/include is just a link under
3.0.

-Chris

Newsgroups: comp.sys.next.programmer
From: basiji@stein.u.washington.edu (David Basiji)
Subject: Improving Drawing Performance *sigh*
Keywords: many dots
Organization: University of Washington
Date: Thu, 15 Oct 1992 17:52:48 GMT

Warning: I'm a newbie programmer on the NeXT.

I'm writing an app that plots thousands of white dots on a black plain.
The pattern of the dots is pretty random within a line but there are only
a few line types so I can assemble the 2-dimensional pattern by drawing
the different line types in the appropriate order.

Drawing performance is really bad and the "improving performance" section
of the on-line docs is not really helping.  The dots are being represented
as rectangles. There seem to be a few ways to do the job:

	1 many calls to PSrectfill on a dot by dot basis
	2 many calls to NXRectFill on a dot by dot basis
	3 fewer calls to NXRectFillList (line at a time, xforming coords)
	4 a single call to a huge NXRectFillList (the whole plain at once)
	5 a custom PSWrap for any of the above cases

In addition to good drawing perfomance, I want printing to be able to take
advantage of the resolution of the printer so that a pixel on the screen
is 1/400" in printed output. 

I've implemented my program using both methods (1) and (3). (1) seems 
to be much faster but I can't get the printing performance (it prints dots
of size comparable to screen pixels). 

Finally, I'm doing this in a subclass of View. I'd like to do it in a 
subclass of ScrollView so I could see the whole plain at high resolution.
I make a stab at it but I couldn't get the drawing to work properly; it
would overwrite parts of my app's window and wouldn't stay in its frame.
Any tips, pitfalls, common sense I should know about before trying to do
a scrollview?

Thanks to all you NeXTsperts in advance!

David Basiji
Newsgroups: comp.sys.next.programmer
From: doug_wiebe@next.com (Doug Wiebe)
Newsgroups: comp.sys.next.programmer
Subject: Re: chunkPackage Script Bug in 3.0
Date: 12 Oct 92 22:53:46 GMT
Reply-To: doug_wiebe@next.com (Doug Wiebe)

Kurt A. Geisel writes:
> When I run the chunkPackage script under 3.0, the shell barfs with
> the message that "destDir" is an undefined variable.

This bug occurs when the -d switch is not passed to chunkPackage or when  
"-d ." is passed. A workaround is to use the -d switch with an absolute  
pathname.

Here are diffs for a fix:

117c117
<     set destDir = .                   # OLD
---
>     set destDir = `/bin/pwd`          # NEW

Hope that helps.

Doug Wiebe
Software Engineering
NeXT Computer, Inc.
Xref: sparky comp.sys.next.programmer:6646 comp.unix.internals:1881
From: root@candle.uucp (Bruce Momjian)
Newsgroups: comp.sys.next.programmer,comp.unix.internals
Subject: Re: Implementing select() in an asynchronous device driver. Impossible!
Date: 12 Oct 92 20:20:14 GMT
Organization: a consultant's basement
X-Newsreader: Tin 1.1 PL5

I have just posted to comp.sources.misc 'pol', a poll()/select() device
driver for SysV machines.  

It may be of some help.  Keep an eye out for it.

-- 
Bruce Momjian                          |  830 Blythe Avenue
root%candle.uucp@bts.com               |  Drexel Hill, Pennsylvania 19026 
  +  If your life is a hard drive,     |  (215) 353-9879(w) 
  +  Christ can be your backup.        |  (215) 853-3000(h)
Newsgroups: comp.sys.next.programmer
From: isbell@cats.ucsc.edu (Art Isbell)
Newsgroups: comp.sys.next.programmer
Subject: Re: loadNibSection return value
Date: 8 Oct 92 04:30:56 GMT
Distribution: na
Organization: Cubic Solutions - NeXT software development and consulting
NNTP-Posting-Host: am.ucsc.edu


In article <BvrGB9.15x@oceania.com> chris@oceania.com writes:
>The method:
>
>window = [NXApp loadNibSection:"NibFile.nib" owner:self];
>
>currently returns a window pointer to one of the windows in the nib section.  Does anyone  
>know if this is a stable "feature"?

I asked NeXT Support about this because the return value is used in one of
their MiniExamples.  However, it isn't documented and if more than one window
is in a nib, which id is returned is indeterminate (well, at least by us mere
mortals :-)

So NeXT has recommended against using the return as the Window id because this
behavior could change in the future.
-- 

Art Isbell                                                      Cubic Solutions
NeXT Registered Developer #745         NeXT software development and consulting
Email: isbell@cats.UCSC.EDU                                Voice: (408)335-1154
USmail: 95018-9442                                           Fax: (408)335-2515
From: ns111310@longs.LANCE.ColoState.Edu (Nate Sammons)
Newsgroups: comp.sys.next.programmer
Subject: Re: Using NeXT 3D kit to dump tesselated surfaces
Date: 12 Oct 92 04:03:26 GMT
Organization: Colorado State U. Engineering College

Well,

If you are looking for a sneaky way to do this on a low level,
the lowest I can think of is manipulating the RIB file directly,
and bypassing the 3DKit.  As I assume you know, RIB files are just
text... so it is a simple matter to get at them... I don't want to
make it sound too simple, but writing a program to parse a text
file and convert the wanted parts should not be that hard.

'hope this helps.

-nate
 ns111310@longs.lance.colostate.edu
Newsgroups: comp.sys.next.programmer