HDTenEightyP/NetNews huggingface dataset:
From: giddings@whitewater.chem.wisc.edu (Michael Giddings)
Newsgroups: comp.sys.next.programmer
Subject: File mask problems in Edit, IB, PB
Date: 6 Nov 92 06:44:11 GMT
Article-I.D.: pslu1.1992Nov6.064411.27867
Organization: Physical Sciences Lab, UW-Madison


There are two of us here who work on one code directory, and in order for  
both of us to be able to read/write the files in this directory, I created  
a group called 'seqprog', and we both had umasks set to group read/write.

Under 2.x it worked.  Now it doesn't.  It seems that Edit and IB ignore  
both the umask in the defaults database and in .cshrc.  

Related, but worse yet, project builder won't let anyone but the owner  
recompile the app-wrapper package, even if group read/write are set.  It  
complains about permission being denied for copying over the .nib  
directories in the app wrapper, for which I have made that all the files  
involved have group and user read/write (I even tried this with world  
read/writeable, recursively, on the entire directory, and still the same  
problem).  The ONLY way one of us can recompile after the other one has is  
to change the ownership of all files in the app wrapper to be owned by the  
person attempting to compile.

Anyone had the same experience or have any hints?

thanks,
--
Michael Giddings                   | DNA sequencing technologies 
giddings@whitewater.chem.wisc.edu  | Artificial Intelligence
giddings@cs.wisc.edu               | Sciences NeXT User Group founder
            |---------\-----------/|\------------/---------|
From: mark@plexus.guild.org (Mark Onyschuk)
Newsgroups: comp.sys.next.programmer
Subject: PriorityQueue: avaliable via FTP
Date: Wed, 11 Nov 1992 02:03:32 GMT
Reply-To: mark@plexus.guild.org (Mark Onyschuk)
Organization: Onyschuk and Associates, Toronto

Here's an announcement a bit trivial for ...next.announce:

I've uploaded PriorityQueue, an Objective-C class, to both nova.cc.purdue.edu  
and cs.orst.edu. PriorityQueue behaves much like a List, except objects are  
dequeued by unsigned integer priority.

Queueing and dequeueing occur in O(log n) time.

Send all comments, praise <g> and flames to mark@plexus.guild.org.

Regards,
Mark

-- 
Onyschuk and Associates, Toronto Canada | mark@plexus.guild.org     (NeXTmail)
NeXT Signal Processing Applications     | 73700.3114@compuserve.com (YaWNmail)
----------------------------------------+-------------------------------------
/Courier findfont 12 scalefont setfont 72 72 moveto (Practice PostScript) show
From: jdoenias@next.com (Josh Doenias)
Newsgroups: comp.sys.next.programmer
Subject: Re: appkit errors in header files
Date: 13 Nov 92 20:14:35 GMT

In article <1992Nov11.161902.60706@cc.usu.edu> edx@cc.usu.edu writes:
>
>Has anyone else had trouble with the
>appkit include files that use protocols?
>I've got an application that includes
>/NextDeveloper/Headers/appkit/drag.h and
>it's giving me these errors:
>
>tumbleweed# make tst
>cc   tst.c  -o tst
>/NextDeveloper/Headers/appkit/drag.h:47: illegal keyword selector,  
missing `)'
..
>
>What gives?  Any ideas?

What's happening here is that you've got Objective-C syntax in a regular C  
code file, so the compiler is complaining.
There are two possible solutions.
1.  rename your file tst.c to tst.m  -- the ".m" extension  tells the  
compiler that you will be compiling Objective-C code.  The ".c" extension  
says that the file just contains C.

- OR -

2.  Compile with a "-ObjC" flag.  This explicitly tells the compiler to  
expect Objective C syntax in the file.
	> cc -ObjC tst.c -o tst


-- josh

Newsgroups: comp.sys.next.programmer
From: buzz@cs.tu-berlin.de (Bastian Schlueter)
Subject: Manpages in Section 3 gone wrong !?
Organization: Technische Universitaet Berlin
Date: Thu, 5 Nov 1992 22:53:34 GMT

Hello Everybody,

I just noticed that after installing NS3.0 my manpages seem to be
wrong. All manpages in Section 3 mention the wrong include files :-(
For example the manpage for printf() says that one has to include the
file stdio.h. But this file doesn't exist, you have to use ansi/stdio.h.
It seems that all the manpages have become worthless for looking up
include files. Am I do something wrong or have the people at NeXT
gone mad ?

Greetings Bastian
-- 
 Bastian Schlueter		TEL.: +49 030 / 693 49 26
 Urbanstr. 25 Aufg. E		e-mail: buzz@cs.tu-berlin.de
 D-1000 Berlin 61
  - Der Kapitalismus hat nicht gesiegt, er ist lediglich uebriggeblieben -
From: strauss@aero.org (Daryll J. Strauss)
Newsgroups: comp.sys.next.programmer
Subject: Confused by filters
Date: 6 Nov 1992 20:22:06 GMT
Organization: The Aerospace Corporation
Distribution: world
NNTP-Posting-Host: armadillo.aero.org
Summary: How do I convert types via pastboard?
Keywords: fitlers pasteboard 3.0

I am trying to write an rtf to ascii converter using pasteboards and
filters under 3.0. If you've got a solution that produces good output
I'd also like hear about it, (rtf-ascii from 2.x was pretty ugly) but I
really want to understand why this code doesn't work.

So, I figured I would take the name of an rtf file on the command line
and produce ascii on standard out. The process would be to open a new
pasteboard by filtering the filename, check if this new pasteboard
contains the ascii type, grab the data from the pasteboard, and then
print it out. This isn't working. I get a new unique pasteboard with
ascii available, but reading the data from the pasteboard returns nil.
Nil is defined to mean either 1) the data changed out from under me. I
don't think this is possible, because it is a private pasteboard 2) The
owner of the pasteboard didn't respond to the conversion request. I
don't think this should happen, because the converter is NeXT provided
and seems to work for other applications such as Edit.

The code is included below. I don't see the flaw in my reasoning, can
anyone provide some insight?

					Thanks In Advance,
						- |Daryll
//
// File: rta.m
// Compile: cc -o rta -g rta.m -lNeXT_s
// Run: rta junk.rtf
//
#import <appkit/appkit.h>
#import <stdio.h>

BOOL
RTF_To_ASCII(const char *filename)
{
	Pasteboard *board;
	char *data;
	int i, length;
	NXAtom prefers[] = {NXAsciiPboardType};
	
	board = [Pasteboard newByFilteringFile:filename];
	if ([board findAvailableTypeFrom:prefs num:1]!=NXAsciiPboardType) {
		fprintf(stderr, "Couldn't convert to Ascii\n");
		[board free];
		return(FALSE);
	}
	if ([board readType:NXAsciiPboardType data:&data length:&length]) {
		for (i = 0; i < length; i++) putchar(data[i]);
		[board deallocatePasteboardData:data length:length];
		[board free];
		return(TRUE);
	} else {
		fprintf(stderr, "Couldn't read pasteboard data\n");
		[board free];
		return(FALSE);
	}
}

main(int argc, const char* argv[])
{
	if (argc<2) {
		fprintf(stderr, "usage: %s in\n", argv[0]);
		exit(1);
	}
	RTF_To_ASCII(argv[1]);
}
From: xepo@csd4.csd.uwm.edu (Scott R Violet)
Newsgroups: comp.sys.next.programmer
Subject: What does a task with priority -1 mean?
Date: 9 Nov 1992 22:38:28 GMT
Organization: Computing Services Division, University of Wisconsin - Milwaukee
Distribution: usa
NNTP-Posting-Host: 129.89.7.4
Originator: xepo@csd4.csd.uwm.edu


I am not sure if this fits properly in this group, but I have noticed
with a program that I am writing for the NeXT, and was figuring that
maybe it is something I am doing that I should be doing.  What
happens is that I run my program and after a while I ^C it to stop.
After that if I do a 'ps -aux' I notice that there is a extra -1 task
running under root.  What could cause this problem?  And, I found out
that it isn't a good idea to try an kill them...
-- 

		-Scott Violet (xepo@csd4.csd.uwm.edu)
From:  (slugg jello)
Newsgroups: comp.sys.next.programmer
Subject: Problems with Sound's didPlay: method (delegate), Sound optimization
Date: 8 Nov 92 17:43:53 GMT
Article-I.D.: mouthers.1992Nov8.174353.950
Reply-To: slugg@mouthers.wa.com
Organization: Mouthing Flowers

orion@proxima.cc.colorado.edu  writes:

>  I am working on a Juke Box program and am having a couple of problems.
> 
>  First, I do not always receive the didPlay: message that should be sent by
> a sound when it stops playing.  This causes my program to stop, and not play
> the next song.  This behavior is erratic, i.e. sometimes I get the message,
> sometimes I don't.  The more I am doing elsewhere (the more in the background
> the program is) the less likely it is to get the message).
> 
>  Second, I am getting a lot of drop outs when I play the songs.  This may be
> 
> unavoidable as the songs are stored in compressed format on a NFS mounted
> drive, but any suggestions would be appreciated.
> 

I've had similar problems to yours.  My repeated sounds were receiving TIMEOUT  
errors after a few repeats.  The problem for me seem to occur only with sounds  
I recorded using the microphone.  I discovered a solution by looking at the 3.0  
release notes (/NextLibrary/Documentation/NextDev/ReleaseNotes/Sound.rtf) where  
it says:

   "Compressed soundfiles must have either 22 kHz or 44 kHz sampling rates in  
order to be playable without first decompressing.  In particular, an 8 kHz  
CODEC file (such as from the built-in microphone) must be first resampled to 22  
kHz (e.g., by SNDConvertSound()) before compressing.   Since ATC format  
discards empty portions of the sound spectrum, upsampling does not increase the  
file size as you might expect."

I have fixed the problem by converting those sounds (at runtime) to a different  
format before playing them:

	if ([mySound samplingRate] < SND_RATE_LOW)
	{
		int err;
		
		err = [mySound convertToFormat 
			:SND_FORMAT_LINEAR_16
			 samplingRate:SND_RATE_LOW 
			channelCount:2];
#ifdef DEBUG
		fprintf(stderr,"Converted? %s\n",SNDSoundError(err));
#endif

	}

Performance still does not seem as good as with sounds that don't need to be  
converted.  I wonder whether some shenanegans are occuring where the main  
processor is being used instead of the DSP.

But this does seems to fix the main problem.


-- 
Doug Kent
slugg@mouthers.wa.com
Newsgroups: comp.sys.next.programmer
From: dglattin@trirex.com (Dennis Glatting)
Subject: problem with gdb
Organization: Trirex Systems Inc.
Date: Sun, 8 Nov 1992 02:32:18 GMT


A month or two back someone complained that gdb didn't worked when the  
*upgraded* to 3.0.  What was the resolution on this?  I have the same  
problem.

--
Dennis P. Glatting / Sr. Technical Manager / Trirex Systems Inc.
315 Post Road West / Westport, Connecticut 06880 / (203)221-4600
dennis_glatting@trirex.com (NeXTmail Ok)
Member League for Programming Freedom
Newsgroups: comp.sys.next.programmer
From: shiva@vega.Stanford.EDU (Marcos Javier Polanco)
Subject: Help with Distributed Objects!
Organization: DSO, Stanford University
Date: Fri, 13 Nov 92 00:11:22 GMT


Hi.
I cannot get callback to work. In my application, there is a server which  
holds proxy objects from client processes. When clients make calls to the  
server, these proxies may be messaged, resulting in a possible callback.  
At that point, I get the following message in the console:

Nov 12 14:17:20 rigel Snooper[910]: Unknown error code 11013 in  
NXReportError


So I thought maybe I have to [connection runFromAppKit] on the client, so  
the callback would have someone listening for it. Now the client code  
reads:

	server=[NXConnection connectToName:SERVERNAME onHost:NULL];
	[[server connectionForProxy] runFromAppKit];

and the error on the console becomes:

Nov 12 14:17:20 rigel Snooper[910]: Unknown error code 11013 in  
NXReportError
Nov 12 14:17:20 rigel MonitorManager[893]: received reply message from  
port 26 via dps

Has anybody seen the like?

-Marcos J. Polanco
-shiva@vega.stanford.edu

Newsgroups: comp.sys.next.programmer
From: alastair@hecate.hecate.phy.queensu.ca (A.B. McLean)
Subject: Numerical Programming in Objective C
Organization: Queen's University, Kingston
Date: Thu, 5 Nov 1992 14:04:11 GMT

I posted the following request in comp.lang.objective-c and got no  
responce. Either no one reads comp.lang.objective-c or no one is using
Objective C for numerical work. I find the latter hard to believe.
There was an interesting posting in comp.lang.c++ recently entitled

"Index of free C or C++ source code for numerical computation"

from Ajay Shah. My intent was to locate or collate a similar list for
Objective C. 

___________________________ Repeat Request_________________________

DO SCIENTIFIC OBJECTS EXIST ?
I am considering doing some numerical programming in objective C and I  
would be interested to find out to what extent libraries of scientific  
(i.e. non GUI) objects are already available. After all that is the idea  
behind reusable software components. I am particularly interested in  
implementations of matrices and vectors with corresponding method  
functions for accessing elements, changing elements, adding, subtracting,  
inverting etc. I am interested in both stand alone implementations or  
implementations that may use Stepstone's Foundation package or NeXTs  
objective C as a starting point (I will be working with a NeXT).
 
INFORMATION ABOUT SCIENTIFIC PROGRAMMING WITH Objective C ?
I would also be interested in any references, texts or articles, that deal  
with the problems associated with scientific programming, i.e interfacing  
with Numerical Recipes in C or other numerical libraries. 

I will collate the information and post it at later time.
Thanks
Alastair McLean
__________________________________________________________________________
alastair@hecate.phy.queensu.ca
NeXTmail accepted
From: sowa@amdew.llnl.gov (Erik C. Sowa)
Newsgroups: comp.sys.next.programmer
Subject: Re: RIBs, RenderMan, and Textures
Date: 12 Nov 92 18:05:26 GMT
Organization: LLNL Chemistry and Materials Science
In-reply-to: ambi@it-next2.bu.edu's message of 12 Nov 92 16:01:25 GMT

>>>>> "Michael" == Michael Amirault <ambi@it-next2.bu.edu> writes:
Michael>  Anyone noticed that the brick texture looks inside out?

Yes! I've noticed this on textures I have made from scanned images, too.
Is this covered in the Renderman Companion? Can someone in the know give
us a quick tip? Am I doing something ignorant?

--
erik sowa (sowa@amdew.llnl.gov)
From: isbell@cats.ucsc.edu (Art Isbell)
Newsgroups: comp.sys.next.programmer
Subject: DBKit Sybase adaptor limitation workaround needed.
Date: 9 Nov 1992 23:10:30 GMT
Organization: Cubic Solutions - NeXT software development and consulting
Distribution: world
NNTP-Posting-Host: si.ucsc.edu
Summary: Need a Sybase BLOB read/write method/function for datasize > 64k.
Keywords: DBKit, Sybase



The DBKit Sybase adaptor apparently limits image and text data to 64 kb.  Brent
Loschen has posted some gnarly Sybase DBLib code that will write image data to
a database.  However, one of the main reasons I'm using DBKit is to avoid
such database-specific stuff.  Not being a Sybase programmer, I don't want to
spend time learning DBLib calls so that I can read and write large image and
text data when this should have been supported in the adaptor (and probably
eventually will be).

So has anyone written read/write methods/functions that I can treat as a black
box that he/she would be willing to share?  I need to be able to allow users to
record comments that will be stored in the database, so I need to read and
write a sizable Sound object.  I need to be able to store scanned photos and
documents as well, so these will be tiff files (and maybe faxes which I think
are stored in some sort of tiff format).

Any help or suggestions would be appreciated.
-- 

Art Isbell                                                      Cubic Solutions
NeXT Registered Developer #745         NeXT software development and consulting
NeXTmail: isbell@cats.UCSC.EDU                             Voice: (408)335-1154
USmail: 95018-9442                                           Fax: (408)335-2515
From: n9240566@henson.cc.wwu.edu (Leif E. Harrison)
Newsgroups: comp.sys.next.programmer
Subject: Writing data from a Window to a file (I/O under NeXTStep)...Help!
Summary: Need help taking data from a Window and saving to a file
Keywords: I/O, NeXTStep, Help,
Date: 13 Nov 92 04:37:39 GMT
Organization: Western Washington University


     How does one go about taking data that has been entered in a group
 of objects in a window (say, 4 Forms, 1 Button, and 1 ScrollView) and
 saving them out to a file?

     My current almost-working solution is to use NXWriteRootObject() and
 a write method in a custom object that basically just does a [myWindow
 write:myStream].  Using this method, however, I can't seem to get it to
 use the correct filename...it uses the class name instead...?

     Would it be better to keep the data from the window in some sort of
 structure and using NXWriteType()?

     I s'pose listing my code might help, but my system isn't anywhere
 *near* a network, so I'd have to transcribe it by hand...
     Perhaps tomorrow I'll try that...

     Oh!  And how the heck do you refer to individual Forms/FormCells
 within a Window? I can't seem to understand how to get the id's of these
 objects...I tried putting some id instance variables in my class, but I'm
 not sure how it might "automagically" attach the forms to the id's in
 my class (the Window id seems to do this?).  This may be connected to
 my filename problem, as I'm using the StringValue from one of the Forms
 as my filename...or at least trying to...

     Help?!?

	- Leif Harrison
	  n9240566@henson.cc.wwu.edu
From: UTKD03@rhrz.uni-bonn.de
Newsgroups: comp.sys.next.programmer
Subject: True color? Modifying Color at Bit map ...
Date: 8 Nov 92 17:37:50 GMT
Organization: RHRZ Uni-Bonn

I really have a problem. When I was an unsatisfied User of an IBM Clone
I had a couple buttons at my screen, where I could adjust the red/blue/green
level. It was essential for true color scans. Now I have this nice little
box equipped with a dimension board (32 MB) , a couple different colour
modells, but without the possibility to adjust the colour after it left
the dimension board. I cannot recalculate the tiff image, becouse it will
be correct when printed. If I dont find any help, i probably have to switch
to a silicon graphic or such a thing. It is also no problem with a Mac.
Please give me a short e-mail note, If you have a suggestion.
         THANKS Markus Schroeder  (UTKD03@RHRZ.UNI-BONN.DE)
Newsgroups: comp.sys.next.programmer
From: silbar@mpx2.lampf.lanl.gov (Dick Silbar)
Subject: zombies (was Re: What does a task with priority -1 mean?)
News-Software: VAX/VMS VNEWS 1.41    
Organization: LAMPF Data Analysis Center, Los Alamos, New Mexico
Distribution: usa
Date: Tue, 10 Nov 1992 17:15:00 GMT

In article <1992Nov10.152955.21859@menudo.uh.edu>, sears@tree.egr.uh.edu writes...
#A process with a PID of -1 (also stated as <mnach-task>) is really a zombied  
#process.  A zombie doesn't not really cause any harm to the system, except  
#that it consumes 1 slot in the process table, of which there is a finite  
#number of slots.  When you run out of process slots, you will crash.
# 
#It seems that one of the major creators of zombies is NeXT's Terminal.app.   
#Generally whenever you close a terminal.app window, a zombie will be created.
# 
#Btw, the zombies can not be "killed" (even will kill -9).  Don't even bother  
#to attempt it.  But if you do, be prepared to reboot from a panic :-)

Interesting.  So why is it that Project Builder creates a NEW terminal.app
window EVERY time you click on "debug"?  (I do that a lot.)

Do they disappear when you log out?  Or, do you have to reboot?

      Dick Silbar (NeXTMail:silbar@whistler.lanl.gov)
From: clu@malihh.hanse.de (Carsten Lutz)
Newsgroups: comp.sys.next.programmer
Subject: Change App-Icon ?
Date: 5 Nov 92 14:28:50 GMT
Organization: malihh, Hamburg, Germany

Moin !

I want to change the Icon of one of my Apps at Run-time. I don't want to 
change it to a window displaying postscript ( there are enough NeXTexamples
for this ) but simply to another icon linked into my App. ( like NextMail does
it for example ). Are there any examples or code-pieces for this out there ?
Any pointers appreciated.

greetings,
		Carsten Lutz




-- 
* Carsten Lutz, Rellingen, FRG / clu@malihh.hanse.de ( NeXTmail accepted )  *
*   Voice : +49 4101 512493  Fax: +49 4101 27757  Traily : +49 4101 22306   *
Newsgroups: comp.sys.next.programmer
From: eric@skatter.usask.ca
Subject: printf g format still broken under NeXTSTEP 3.0 
Organization: University of Saskatchewan
Date: Wed, 11 Nov 1992 01:22:28 GMT

I reported this bug in December 1989, and when NeXTSTEP 2.0 came out,
and when NeXTSTEP 2.1 arrived, and now that NeXTSTEP 3.0 has arrived ...
IT STILL ISN'T FIXED!!!!!

Here's an example program:

#include <stdio.h>
int
main (int argc, char **argv)
{
	int i, d;
	double x, y;

	y = 3.141592654;
	for (i = 0, d = 1 ; i < 5 ; i++, d *= 10) {
		x = y / d;
		printf ("%12g %12.1g %12.2g %12.3g %12.4g\n", x, x, x, x, x);
	}
	return (0);
}

Here's what *should* print (according to the ANSI standard).  And it *does*
print this on our SUN 4.1.2, and HP-UX V8, systems:
     3.14159            3          3.1         3.14        3.142
    0.314159          0.3         0.31        0.314       0.3142
   0.0314159         0.03        0.031       0.0314      0.03142
  0.00314159        0.003       0.0031      0.00314     0.003142
 0.000314159       0.0003      0.00031     0.000314    0.0003142

And here's what the NeXT produces:
    3.141593          3.1         3.14        3.142       3.1416
    0.314159          0.3         0.31        0.314       0.3142
    0.031416            0         0.03        0.031       0.0314
    0.003142            0            0        0.003       0.0031
    0.000314            0            0            0       0.0003

For the umpteenth time, NeXT:
1. The precision specifier for %g format is supposed to set the number of
   significant digits in the printed number.

2. Non-zero digits to the left of the decimal point *do* count towards
   the number of significant digits (see the first line of the tables).

3. Leading zeroes do not count towards the number of significant digits,
   even when they are to the right of the decimal point (see the last
   three lines of the tables).

--
Eric Norum                     eric@skatter.usask.ca
Research Engineer              phone: (306) 966-6308
Accelerator Laboratory
University of Saskatchewan
Newsgroups: comp.sys.next.programmer
From: jeff@is.s.u-tokyo.ac.jp (Jeff McAffer)
Subject: NeXT CD drives.  Uses?
Reply-To: jeff@is.s.u-tokyo.ac.jp
Organization: University of Tokyo, tcejorP Project.
Distribution: comp
Date: Tue, 10 Nov 1992 07:10:05 GMT


I just got a NeXTstation and a CD rom (not 3.0 yet) and am a little
confused.  Now the CD Drive has the headphone jacks etc on the front
and I got the PD CDPlayer program so that works fine.  That's about
all I've been able to do.  My questions are:

1) Why is this not part of the OS?  Is it in 3.0?

2) Am I missing something or is there like basically no doc on CD Drives?
  I can't find anything (at all!) in the manuals that even mentions 'CD'
  The manual that came with the drive is pretty much useless.

3) Following the manual's instructions I inserted a High
  Sierra or ISO CD and contrary to the manual, I did not in fact get
  either an error message or a NEXTDISC appearing in my dock. Is there
  some other magic I must do?

4) The most important question of them all.  How do I pump the data
  from music CDs through the DSP?  Actually, for now, I'd be happy to
  just get a regular program to process it.

I'd really appreciate any info.  Email is best.  I'll post a summary
if reasonable.

--
--
ato de, |m         -- The cloud/haze/fog/icky grey stuff burnt off and 
                      sunlight filtered through.  It was daytime after all.