HDTenEightyP/NetNews huggingface dataset:
From: Jeff Wishnie <jwishnie@taligent.com>
Subject: Command line access to Websters 3.0
X-Message-Id: <A72FCE825701C1F7@kip-53.taligent.com>
X-Date: Wed, 18 Nov 92 10:42:10 GMT
Organization: Taligent, Inc.
X-Useragent: Nuntius v1.1.1d3
Date: Wed, 18 Nov 1992 18:43:31 GMT

Under 2.0 I used Jiro Nakamura's Define program to define words in
Websters from the command line.

Under 3.0, it looks like the calls Jiro uses (i.e. openReference) have
gone away. Have they been replaced by something or has NeXT intentionally
removed command line
access to references?

Jeff Wishnie
jwishnie@taligent.com
Newsgroups: comp.sys.next.programmer
From:  (slugg jello)
Subject: Workaround for Iinterface Builder copy class bug
Reply-To: slugg@mouthers.wa.com
Organization: Mouthing Flowers
Date: Wed, 18 Nov 1992 23:43:18 GMT

Interface Builder 3.0 has a bug that prevents you from copying and pasting  
classes.  I find this to be a real pain.  When reorganizing nibs you have to  
reenter all the outlet and action information.

Does anyone know of a work-around, some trick that enables you in effect copy  
and paste classes?

Thanks.
-- 
Doug Kent
slugg@mouthers.wa.com
Newsgroups: comp.sys.next.programmer
From: thf@zelator.in-berlin.de (Thomas Funke)
Subject: Re: Allegro Common Lisp
Reply-To: thf@zelator.in-berlin.de (Thomas Funke)
Organization: NNU Corp. - NeXT is Not UN*X
Date: Tue, 17 Nov 1992 17:21:23 GMT

In article <Bxu2Fq.7oy.2@cs.cmu.edu> anwar+@cs.cmu.edu (Anwar Mohammed) writes:
> I've copied B. Vrotney's recipe for fixing ACL 3.1.20 to work with
> NS 3.0 but I encounter the following error when running config:
> 
> ...
> cc -c static2.c
> /bin/ld -x -seg1addr 2000 -headerpad 2000 -seglinkedit -lcrt0.o  -u libsys_s  
-u libNeXT_s  crt0.o ucl.o  static.o static2.o -lNeXT_s -ldsp -lsys_s -o ucl
> /bin/ld: Can't locate file for: -ldsp
> *** Exit 1
> Stop.
> 
> Any idea why?  Presumably many of you have gotten this working already.
> 

Two tricks will help:

1. remove "-ldsp"
2. or get libdsp.a from a 2.1 and install it under /usr/lib

Then ACL just runs fine under 3.0 :-)


-- 
------------------------------------------------------------------
Thomas Funke  ** E-mail: thf@zelator.in-berlin.de
NeXT-Developer * Unix-Consultant
------------------------------------------------------------------
Newsgroups: comp.sys.next.programmer
From: rainer@ruble.fml.tuwien.ac.at (Rainer Staringer)
Subject: Re: Serial port communication difficulties
Reply-To: rainer@eimoni.tuwien.ac.at
Organization: Technical University of Vienna
Date: Mon, 16 Nov 1992 08:09:05 GMT

In article <JDAWSON.92Nov15131012@donald.cc.utexas.edu>  
jdawson@ccwf.cc.utexas.edu (John Dawson) writes:

[lots of helpful hints deleted...]

> If NeXT were running on a real version of UNIX, you'd have more
> options available.  For example, on a Sun, you could use fcntl() to
> set a flag called FNDELAY on an open file descriptor that would mark
> it as non-blocking.  Then, you could use fread(); it would just return
> 0 when there was no more input waiting on your stream.  But NOOOOOOOO
> .... If NeXT were even POSIX-compliant, which they said they were going
> to be come 3.0, they'd have a similar facility.

int n = 1;
ioctl (fd, FIONBIO, &n);

worked fine for me last time I checked...

I have not yet met any OS where fcntl worked correctly in all cases.
For instance on Apollos using fcntl with the FNDELAY flag succeeded in
making the descriptor non-blocking but always returned -1, with the
errno set to something ridiculous... I have heard rumors that fcntl is
some late addition to BSD, that they never really got right.

--
Rainer Staringer                   | rainer@fml.tuwien.ac.at
Financial Markets Lab, TU Vienna   | +43 (1) 58801/8138
From: swede (Jim Mynatt)
Newsgroups: comp.sys.next.programmer
Subject: Re: The IB Object Icon
Date: 20 Nov 92 22:35:24 GMT
Reply-To: jim_mynatt@next.com

In article <1992Nov3.082658.16279@rdg.dec.com>  
jacksonc@uproar.enet.dec.com (Chris Jackson @ IME) writes:
  > 
  > Is there a simple way to create the sphere icon used to represent
  > objects in IB's File Window ?  Specifically, I would like to have
  > a blue version (like the icon of RenderManager) and have a capital
  > 'F' embossed around the front of it.
  > 
  > Also, once I have my own icon for an object that when instantiated
  > from a palette will appear in the File Window,  how do I ensure that
  > my icon will be displayed ?   I have tried implementing a 'getIBImage'
  > method for my object (using 'NXImage::findImageNamed') but that does
  > not work. 
  > 
  > Thanks in advance for any pointers,
  > 
  > Chris.

--
Sorry here is a code snippet that should work.

- (NXImage *)getIBImage
{
    const char *imageName;
    imageName = "BlueSphereWithF";
    return [NXImage findImageNamed:imageName];
}

-------------------------------------------------------
James L. Mynatt
Area Systems Engineering Manager
NeXT Computer, Inc.
USPS:	Echelon IV, Suite 400
		9430 Research Blvd.
Newsgroups: comp.sys.next.programmer
From: BrianW@SoundS.WA.com (Brian Willoughby)
Subject: Re: (failing to) read Audio Data from CDROM
Reply-To: BrianW@SoundS.WA.com
Organization: SoundSoftware, Bellevue, WA, USA
Date: Mon, 16 Nov 1992 00:28:23 GMT

Carsten Schultz writes
| BrianW@SoundS.WA.com (Brian Willoughby) writes:
| ..
| > The differences between audio and data CDs are a little more complicated  
| > than that.  The simplest way I can think of explaining it is that audio CDs  
| > are like  
| [what seems a fine description of CD format]
| 
| Sorry, but I think, this copy protection bit stuff (actually two bits, I  
| think) is really true. Isn't there somethind like CDaudio in the  
| fileystems directory? BTW, does anybody have a not copyprotected audio CD?

The very last paragraph of my previous posting acknowledges the copy protection  
bit, but that is immaterial to the original problem/question of how to get the  
digital audio data into the NeXT - a problem that I would like to see solved.   
I authored that post while sitting in front of a copy of the N.V. Phillips and  
Sony Corporation specifications for CD Digital Audio, CD-ROM, and CD  
Interactive.

I can only speculate about the extent of the support in the CDaudio filesystem  
code, but I can say for a fact that the CPU-541 (the drive used in NeXT's  
CD-ROM drive) will not send any digital audio data to the NeXT through the SCSI  
interface.  I also happen to have a copy of the Sony CDU-541/CDU-6211 SCSI  
Interface Manual and there is no support for reading Digital Audio data.  The  
MODE SELECT command only supports block lengths of 256, 512, 1024, 2048 (CD-ROM  
Mode 1), 2336 (CD-ROM Mode 2), & 2340 bytes of user data.  In order to read  
Digital Audio data into the NeXT, the block size would need to be set to 2352  
bytes, but the manual states that any size not in their list is considered an  
ILLEGAL REQUEST and results in an error.  Perhaps the ROM firmware in the NeXT  
CD could be rewritten to support the transfer of the full block, but the driver  
on the NeXT would probably need to be rewritten as well, and I don't know how  
to do that.

I would suppose that the CDaudio filesystem exists merely to allow the NeXT  
operating system to be happy about an audio CD which is inserted in a drive and  
to allow seeking and playback via the audio-specific SCSI commands.  The  
existence of the CDaudio filesystem does not imply that the actual digital  
audio information can be transferred over the SCSI bus.
-- 
Brian Willoughby	Software Design Engineer, BSEE NCSU
BrianW@SoundS.WA.com	Sound Consulting and Signal Processing Software
NeXTmail welcome	- NO EMAIL SOLICITATION without prior permission
Newsgroups: comp.sys.next.programmer
From: ronchet@itnsg1.cineca.it (Marco Ronchetti)
Subject: tcl: did anyone compile it successfully?
Organization: Laboratorio di Fisica Computazionale, INFM. Trento Italia
Date: Sat, 21 Nov 1992 15:07:45 GMT

The subject says it: did anyone successfully compile tcl (tool control 
langauge) under NextStep 3.0 ?

Thanks

	Marco Ronchetti

ronchet@itncpl.cineca.it
Newsgroups: comp.sys.next.programmer
From: bill@cvlab3.jsc.nasa.gov (Bill Hall)
Subject: Looking for a job....
Reply-To: bill@epnxt.jsc.nasa.gov
Organization: nasa-jsc
Date: Sun, 15 Nov 1992 20:34:53 GMT

Hello everyone.  As happens with government related jobs, layoffs come at this  
time of the year and after 10 years with the same company, I finally got cought  
in the budget crunch.  My company is very unhappy about loosing me but there  
just isn't any money.

If anyone knows of a company looking for an Electrcial Engineer with 10 years  
of solid hardware/software design in the biomedical field (not a paper pusher)  
and please let me know.  I also have 7 months programming on the NeXT (major  
projects) and extensive medical experience.

My phone is (713) 480-5152  (home)
or (713) 488-4102 (work... just ask for me).

On the net please reply to bill@epnxt,jsc.nasa.gov.  I have just upgraded to  
3.0 and am having problems sending mail out ... but not in recieving it.

	Bill Hall
Newsgroups: comp.sys.next.programmer
From: ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson)
Subject: emulate alt-drag in IB
Organization: Monash University, Caulfield Campus
Date: Tue, 17 Nov 1992 06:29:56 GMT

How does IB decide wether the user can alt-drag on an object to
create a matrix of the selected object?


Newsgroups: comp.sys.next.programmer
From: rca@cs.brown.edu (Ronald C. Antony)
Subject: printing smart PS code...
Keywords: printing postscript problem
Organization: Brown University Department of Computer Science
Date: Wed, 18 Nov 1992 18:00:38 GMT

I have a problem with NeXT's handling of PostScript printing.
I have some PS code that expects to executed in the printer and thus
producing output, e.g. it has a big loop inside of which it produces
some picture and then at the end of each pass through the loop it
generates a showpage command.

Now this is legal PS, it displays correctly in Preview (after a
warning), but there is no way in H*^%^* to get that printed.

Does anyone know how to solve that problem?

Ronald

------------------------------------------------------------------------------
"The reasonable man adapts himself to the world; the unreasonable one persists
in trying to adapt the world to himself. Therefore all progress depends on the
unreasonable man."   G.B. Shaw   |  rca@cs.brown.edu or antony@browncog.bitnet
Newsgroups: comp.sys.next.programmer
From: finton@barney.cs.wisc.edu (David J. Finton)
Subject: How do you get the better print panel?
Keywords: print panel selected text
Organization: University of Wisconsin, Madison -- Computer Sciences Dept.
Date: Tue, 24 Nov 1992 01:47:28 GMT

I've added print capability to a text object by sending it a printPSCode
message.  But it doesn't give the nicer print panel which allows you to
select whether you want the whole text printed, just the visible part,
or the selected portion.  How is that done?  I tried sending 
smartPrintPSCode to the window, but I got the same panel.

Thanks in advance!

--David Finton
From: sam_s@NeXT.com (Sam Streeper)
Newsgroups: comp.sys.next.programmer
Subject: Re: Making a window... not a window.
Date: 24 Nov 92 01:51:58 GMT
Reply-To: sam_s@NeXT.com

matthews@oberon.umd.edu (Mike Matthews) writes:
> How in blazes are you supposed to make a window that can not be moved?  I
> know you have to use the initContext:... stuff (i.e. not use IB's palettes).
> I tried passing a style of NX_PLAINSTYLE to the window but the doggone title
> bar was logically there.

You were probably on the right track.  If memory serves me a window with a null  
button mask has no title/move bar.  The following code seems to do what you  
want:

	window = [[Window alloc] initContent:&r style:NX_PLAINSTYLE
			backing:NX_BUFFERED buttonMask:0 defer:NO];

I think plain windows, tastefully used, don't have to violate anybody's idea of  
how a NeXTstep app ought to work.  They are very useful for all kinds of custom  
UI and I for one like to see intuitive UI objects other than those found in IB.

-sam

--
Opinions expressed herein are not those of my employer.  They're not even
mine.  They're probably wrong besides.  How did they get in here, anyway?
Newsgroups: comp.sys.next.programmer
Subject: Re: trapping NaN
From: zazula@pri.com (Ralph Zazula)
Date: 21 Nov 92 11:13:35 MST
Reply-To: zazula@pri.com
Distribution: world,local

In article <1992Nov20.221038.1170@proforma.com>  writes:
> I would like to trap NaN -- the "not a number" condition that floating point  
> values can take.  I can't find any clue on how to do this, except some  
cryptic  
> stuff in the man pages under "math".  Is there some signal I can handle?
> 
> Thanks in advance.
> --J Gregory

Hi -

It turns out that (NaN != NaN) is true.  So, in some code I did before, I used:

if(x == x) {	/* x is NOT NaN */
< use x>
}
else {
<whatever for the NaN case>
}

Here's the excerpt from the manual page:

"If x != x then x is NaN; every other predicate (x > y, x = y, x < y,...) is  
FALSE if NaN is involved."

Ralph
---
Ralph Zazula
Pinnacle Research, Inc.
zazula@pri.com (NeXT Mail)
(602)529-1135
From: matthews@oberon.umd.edu (Mike Matthews)
Newsgroups: comp.sys.next.programmer
Subject: Re: Making a window... not a window.
Date: 19 Nov 92 00:00:08 GMT
Organization: /etc/organization

In article <1992Nov18.115118.25918@cs.tu-berlin.de> marcel@opal.cs.tu-berlin.de (Marcel Weiher) writes:
>Well you could use the delegate's -windowDidMove:  methods and let that simply
>move it back, but I guess that wouldn't be too visually pleasing.

>If you don't mind getting low down, use PostScript operators directly:

>  windo, orderwindow etc.  

>It might be a little difficult to get a View hierarchy onto that, so
>you'll probably have to do drawing via straight PostScript as well.

Ewwww. :)

kane@sonata.cc.purdue.edu (Chris Kane) gave the winning suggestion.

[window-id setEventMask:0]

That window won't respond to NUTHIN' now. :-)

Unfortunately, it won't let you use the right mouse button to get the app
menu either, but I'm still working on that (I tried easing up the event mask
to allow right button up and down, mouse entered and exit, and two other
things that I can't remember, still no go).

>Marcel
------
Mike Matthews, matthews@oberon.umd.edu (NeXTmail accepted)
------
"All over the place, from the popular culture to the propaganda system, there
is constant pressure to make people feel that they are helpless, that the
only role they can have is to ratify decisions and to consume."
-- Noam Chomsky
From: eps@futon.SFSU.EDU (Eric P. Scott)
Subject: Re: Determining dimensions of text object
Reply-To: eps@cs.sfsu.edu
Organization: San Francisco State University
Date: Wed, 18 Nov 1992 14:42:25 GMT

In article <1992Nov16.080646.2606@worg.questor.wimsey.bc.ca>
	david@worg.questor.org (David Lau) writes:
>Suppose I want to make a text object big enough to hold m-by-n characters from
>a fixed-width font, how do I go about determining its dimensions? I've looked
>at the NXFontMetrics structure but the widths stored there are not expressed in
>terms of pixel units.

One way is "after the fact"--e.g., I output the text I want to
display into a memory stream, stuff that into a resizable Text
object, and then ask the Text object how big it is:

	id t;
	id fwfont;		// a fixed width font
	NXStream *aStream;	// stream containing text data
	NXRect br;
	// some arbitrary minimum size
	const NXRect trect={ { 0.0, 0.0 }, { 93.0, 24.0 } };

	t=[[Text allocFromZone:[self zone]] initFrame:&trect];
	[[[[[t
	    setMonoFont:YES]
	    setHorizResizable:YES]
	    setVertResizable:YES]
	    setNoWrap]
	    setFont:fwfont];
	[[t readText:aStream] sizeToFit];
	[t getBounds:&br];

br.size contains the desired information.

					-=EPS=-
From: anderson@sapir.cog.jhu.edu (Stephen Anderson)
Newsgroups: comp.sys.next.programmer
Subject: Re: MallocDebug and NS3.0
Date: 18 Nov 92 20:13:20 GMT
Organization: Dept. of Cognitive Science, The Johns Hopkins University
In-reply-to: gad@eclipse.its.rpi.edu's message of 18 Nov 92 03:48:41 GMT

As people are getting the chance to play with the 3.0 MallocDebug,
perhaps someone has come up with an answer to a question I asked a
while ago but got no answer to. Is there any way to use MallocDebug on
an application that runs under something else, and so doesn't show up
as an application in its own right in the workspace? I'm trying to
find a malloc problem in multi-window Lucid emacs 19.3, running under
co-Xist, and I need all the help I can get. I compiled and linked it
the way you're supposed to to use MallocDebug, but since it doesn't
show up in the right way, I don't any return on that effort.

--Steve Anderson
Newsgroups: comp.sys.next.programmer
From: nevin@dtint.dtint.com
Subject: Subject: Re: Coding Rules (NOT rtf)
Organization: Digital Technology, International
Date: Wed, 18 Nov 92 21:51:19 GMT

Reply-To: nevin@dtint.dtint.com

I recently placed an RTF post on the net titled "Coding Rules/Suggestions".   
Since, as was pointed out to me, this kind of a post tends to be  
confrontational, most respondents have emailed responses rather than posting  
them.

If my posts (or even my email responses) sound confrontational due to their  
terseness, I apologize.  This was never my intention.

To explain more fully, my boss asked me to put together a list of NeXT coding  
suggestions.  Wishing to come up with the best possible list of suggestions in  
the shortest period of time, I thought to draw on the expertise of the people  
on the net.  I also felt that everyone would (or could) benefit from the same,  
even if their own opinion's differ.  I don't really care to try and convince  
anyone that my opinion on anything is better. I only wish to offer my opinions  
and explain *why* they are my opinions-- and let each other person do the same.   
Each person can then pick and choose on their own.

I have gotten some very good responses, some of which pointed out some  
oversights in my original document and have been (or will be) incorporated in  
the ongoing revision of the original document.

Upon request, I will NeXTmail anyone a copy of the latest revision of my  
document.  Keep in mind, however, that the document reflects my opinions only.   
While I am already indebted to some of you in net-land for opening my eyes to  
certain oversights, most simple differences of opinion will not be reflected in  
my document (i.e., it will contain MY opinions, not YOURS).

This should be a learning experience, and not confrontational.  I apologize if  
it at any time sounded (or sounds) confrontational.

--
Nevin Pratt, Digital Technology, Int'l    Orem, Ut
NeXTmail preferred, but ONLY at my REAL email address: nevin@dtint.dtint.com

-- 
---
root	                               root@dtint.dtint.com
Digital Technology Int.                (801)226-2984	
500 W. 1200 South, Orem UT, 84057      FAX (801) 226-8438
From: matthew@tdc.uva.nl (Matthew Lewis)
Newsgroups: comp.sys.next.programmer
Subject: Net software on the NeXT
Date: 16 Nov 92 10:41:02 GMT

Hello,

I picked up host from the net and tried to build it.  It compiled ok, with a  
lot of warnings, but did not link.  it was trying to find libresolv.  When I  
took out that reference, I got all sorts of errors from ld:

----------------- Cut here ---------------------
cc -o host host.o  
/bin/ld: multiple definitions of symbol _p_query
host.o definition of _p_query in section (__TEXT,__text)
/lib/libsys_s.a(res_debug.o) definition of absolute _p_query (value 0x5002be2)
/bin/ld: multiple definitions of symbol _p_cdname
host.o definition of _p_cdname in section (__TEXT,__text)
/lib/libsys_s.a(res_debug.o) definition of absolute _p_cdname (value 0x5002bd6)
/bin/ld: multiple definitions of symbol _p_type
host.o definition of _p_type in section (__TEXT,__text)
/lib/libsys_s.a(res_debug.o) definition of absolute _p_type (value 0x5002bee)
/bin/ld: multiple definitions of symbol _p_class
host.o definition of _p_class in section (__TEXT,__text)
/lib/libsys_s.a(res_debug.o) definition of absolute _p_class (value 0x5002bdc)
/bin/ld: multiple definitions of symbol _p_rr
host.o definition of _p_rr in section (__TEXT,__text)
/lib/libsys_s.a(res_debug.o) definition of absolute _p_rr (value 0x5002be8)
*** Exit 1
----------------- Cut here ---------------------

So, question  1:  how do I solve this.
2.  If I want to install the latest resolver, anyone know how to do that?
3.  Any pointers for building software from the net?

Thanks in advance!

Regards,

Matthew

--
Matthew Lewis, University of Amsterdam		Grote Bickersstraat 72
+31-20-52 51 220				1013 KS  Amsterdam
Internet: matthew@tdc.uva.nl			The Netherlands
Newsgroups: comp.sys.next.programmer
From: robert@sfu.ca (Robert Urquhart)
Subject: Objective DB Toolkit c-exits
Reply-To: robert@sfu.ca
Organization: Simon Fraser University, Burnaby, B.C., Canada
Date: Tue, 24 Nov 1992 00:32:43 GMT

Does anyone know how to properly compile c-exits using Objective DB Toolkit? I  
have an exit module that I can load manually in Interface Builder and it works  
fine, but when I compile the application my exits don't seem to get loaded. Any  
help would be appreciated. 

--Rob

Rob Urquhart                       email: robert@sfu.ca
Academic Computing Services        phone: 291-3650     FAX: 291-4242
Newsgroups: comp.sys.next.programmer
From: zeno@phylo.genetics.washington.edu (Sean Lamont)
Subject: Re: Transferring between NeXT and IMB PC
Organization: University of Washington, Seattle
Date: Fri, 20 Nov 1992 23:03:33 GMT

In article <1992Nov20.192239.769@socrates.umd.edu> ice@socrates.umd.edu (Fredrik Nyman) writes:

>ijt@cm.cf.ac.uk (I J Taylor) writes:
>As for Draw documents, you can *HOPEFULLY* (I don't have Draw) save
>Draw files as EPS (Encapsulated PostScript) which W4W will *HOPEFULLY*
>be able to place in your document.

How could it?  Windows can't image arbitrary postscript programs, and there's
not necessarily a bitmap representation available.



-- 
Sean T. Lamont                           |   "Don't oppress me, It's
zeno@genetics.washington.edu             |    'computer of color!' "
lamont@abstractsoft.com                  |_______________________________
Abstract Software                                                         
Newsgroups: comp.sys.next.programmer
From: bjanzen@lexmark.com
Subject: Shared memory?
X-Disclaimer: These views are the poster's and not necessarily those of Lexmark
Organization: Lexmark International, Lexington, KY
Date: Wed, 18 Nov 1992 22:57:12 GMT

 
We use /usr/include/system/shm.h to set up a a fairly large shared memory
database for our realtime data application that is
currently implemented on RS6000's.  No such thing on NeXT - it
isn't too kosher in an object environment, but I could port an
existing app NOW and redesign later if I knew if/where shm.h was.  The only
reference I found was in librarian  -
 
---------------
Although messaging is similar to UNIX 4.3BSD stream sockets in
that it permits reliable, kernel-mediated communication between tasks,
messaging has a much more fundamental role within Mach.  Whereas UNIX
processes obtain system services through a variety of interfaces
(for example, the open() system call for files, the socket() and bind()
system calls for network connections, and numerous access protocols for
user-level services), Mach provides all services through messaging.
Because of this consistency of interprocess communication, the Mach
operating system can easily be extended to incorporate new features.
 
As an alternative to messaging, Mach also supports interprocess
communication using shared memory.  However, if you use shared memory
for interprocess communication, you're responsible for synchronizing the
transmission and reception of the message.  With the Mach messaging
system, Mach itself schedules the transmission and reception of messages,
thereby ensuring that no message is read before it's been sent in its
entirety.
-------------
 
I'm responsible.  Where the heck is it, or just plain is it?
 
Barry Janzen
bjanzen@lexmark.com