HDTenEightyP/NetNews huggingface dataset:
From: todd@liveware.com
Subject: Re: Next Concepts Docs
Keywords: Red Faced Sucker Wacko Weenie Technodweeb
Reply-To: todd@liveware.com
Organization: Liveware Corporation   Fort Collins, CO.  USA.
Date: Fri, 4 Sep 1992 20:03:29 GMT

In article <1992Sep3.165728.12753@pencom.com> dudney@broadway (William "Bill"  
A. Dudney) writes:
> The 3.0 concepts are brand new and improved. I have seen beta 3.0 and they  
> are a complete rework, very nice.
> 
> Bill Dudney
> my opinions are my own and no one elses.

Yeppers, I stand corrected.  I will have to read them now ;')
[red faced and all]...  

Todd
Newsgroups: comp.sys.next.programmer
From: jjfeiler@relief.com (John Jay Feiler)
Subject: "bind"ing sockets, -ObjC, and memset....A puzzle
Reply-To: jjfeiler@relief.com
Organization: relief consulting
Date: Wed, 26 Aug 1992 04:32:41 GMT

I had a strange problem today, and I thought I'd throw it out here to see if  
anyone had an explanation for it.  (at least one better than mine)

Background:

I'm doing some heterogenous ipc using internet sockets, so I wrote a small  
program to test my socket implementation, basically copied out of one of the  
Nutshell books.  Worked great.  Took the same code, and put in inside a  
method of an ObjC object.  No dice.  The call to bind failed, regardless of  
what port I gave it.  Hmmmm..., says I, what could be the problem?  Somehow,  
I got it down to the compiler flag -ObjC making the differnece.  The  
following (seriously incomplete) code, without the call to memset(&sin,...),  
will fail to bind correctly if compiled with -ObjC, but works fine without  
the -ObjC flag.

-------foo.m------------
#import <sys/types.h>
#import <sys/socket.h>
#import <netinet/in.h>
#import <netdb.h>
#import <stdio.h>
#import <libc.h>
extern int errno;

int main()
{
	char hostname[64];
	register int s;
	struct hostent *hp;
	struct sockaddr_in sin;
	int	i;
		
	gethostname(hostname,sizeof(hostname));

	if((hp = gethostbyname(hostname)) == NULL)
	{
		fprintf(stderr,"%s: unknown host.\n",hostname);
		exit (1);
	}

	if((s = socket(AF_INET,SOCK_STREAM,0))<0)
	{
		perror("server: socket");
		exit(1);
	}
	
	/********************
		if this memset is not performed, bind will likely fail
		with errno 49.
		could not bind to address.  Don't ask me why, It just
		does......
	********************/
	memset(&sin,0,sizeof(sin));
	
	
	sin.sin_family = AF_INET;
	bcopy(hp->h_addr, &sin.sin_addr, hp->h_length);
	
	/***********
		bind the address to the socket

		let's try all the ports we can think of, until we find one

		we should get #1024, because 1-1023 are reserved
	***********/
	
	for(i=1;i<30000;i++)
	{
		sin.sin_port = htons(i);
		if(bind(s, (struct sockaddr *)&sin, sizeof(sin)) == 0)
			printf("bound to port %d\n",i);
	}
	close(s);
	exit(0);
}
---------------------------

Now, it seems to me that bind shouldn't be looking at anything else in the  
sockaddr structure, other than the fields I'm setting, but somehow the memset  
call solves the problem.  Any ideas as to what might be causing things to  
fail without the memset and with the -ObjC flag?

	Puzzled,

		John
From: ppoh@amethyst.tcs.tufts.edu (Paul B. Poh)
Newsgroups: comp.sys.next.programmer
Subject: Re: Replacing NeXT cc with gcc-2.2.2
Date: 4 Sep 92 00:31:19 GMT
	<1992Sep01.163152.118004@zeus.calpoly.edu>
Organization: Tufts University - Medford, MA


In article <1992Sep01.163152.118004@zeus.calpoly.edu> Alex Raftis writes:
> From a previous (long) discussion on this topic, yes, gcc can and will work
> on a NeXT. You have to, however, make some slight modifications to the code
> to get it too work. GNU uses a slightly different naming methods on method
> calls, so you need to patch the code to use NeXT's method. Also, the don't,
> by default, support #import, so you have to turn this feature on. With these
> two items enabled, people reported that the Objective-C compiler worked quite
> well on a NeXT.

So that's the problem that I was having with g++ all afternoon. I just
moved all my c++ source off a Convex to my NeXT to continue development.
I spend the last 3 hours trying to figure out the deal the NeXT gdb. It
kept complaining about "invalid symtab info for method at symbol number
52". I guess it pays to take a usenet break. :=)

> You should be able to get a copy of the discussion from archive sites. I 
> remember one post included patches to make it work.

I just check my favourite archive and they only have the FAQs. Anyone know
where I can find this patch for g++.

Thanks for the unsolicated tip. :=)

Just out of curiosity, I prefer to use the gnu compiler but can anyone give
a good comparision between cc++ and g++ as far as speed, code generation,
etc. And why isn't there a %&*^% man page for cc++.

--
Paul Poh                        Unix Systems Programmer
ppoh@amethyst.tcs.tufts.edu     Computer Services, Tufts University
Newsgroups: comp.sys.next.programmer
From: jolly@next2.cis.uni-muenchen.de ()
Subject: How to PANIC a NeXT (mach kernel bug )
Keywords: mach;threads;panic
Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
Date: Tue, 1 Sep 1992 21:11:33 GMT

Hi folks !

I think it is very useful to know, that the NeXT-Mach Kernel
does not support more than 2oo threads !
Running a program under the gdb doesn t change anything ! To solve
this little problem is to use not more than 2oo threads. I think
that the most applications won t use all threads at the same time -
some will die after a while - so that the thread_set_limt() makes
them only a little bit slowlier.
I don t know if 3.o solves that kernel-bug. ( using 2.1 )

				Jolly B)

Post Scriptum : Don t try to test the bug, cause it may damage some
		files ( 2 files were destructed on my host due to the
		fsck !!)

Post Post Scriptum : I think that NeXT should not publish files, which
		     will panic the system after inserting only one
		     character. ( The only thing you have to do is to
		     insert a "2" in front of the "15" in the NeXT 
		     Operating System thread-example ).
Newsgroups: comp.sys.next.programmer
From: frisinv@alleg.edu
Subject: Workspace Manager code
Organization: Allegheny College
Date: Sun, 30 Aug 1992 17:23:42 GMT

Is there any way I could get the code for Workspace Manager or at least  
see how it's set up?
From: Kathy_Walrath@NeXT.COM (Kathy Walrath)
Newsgroups: comp.sys.next.programmer
Subject: Re: status on Addison-Wesley books
Date: 29 Aug 92 00:44:15 GMT

Matthew Dillon writes
    
        I called up Addison-Wesley, this is what they told me:
    
    							    status
    
        0-201-63248-9   NeXTSTEP General Reference		CANCELED (split  
into 2)
    	  62220     NeXTSTEP General Reference Vol I	date not known
    	  62221     NeXTSTEP General Reference Vol II	date not known
	[ . . . ]    
    
To clarify, the General Reference will be available soon.  We plan to give both  
volumes to Addison-Wesley in September.  They should print and distribute it  
soon after.

Kathy Walrath
NeXT Technical Publications
Newsgroups: comp.sys.next.programmer
From: jolly@next2.cis.uni-muenchen.de ()
Subject: Re: Simultaneous Sound Recording & Playback via builtin mic
Keywords: Sound DSP
Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
Date: Sat, 29 Aug 1992 17:20:13 GMT

In article <1992Aug20.072214.22387@morrow.stanford.edu> hinds@cmgm.Stanford  
(Alexander Scott Hinds) writes:
> Hi-
> 
> 	I'd like to write a program that would play back the sound being  
> digitized by the builtin mic at the same time as the digitization (a  
> slight delay would be acceptable).  Is this possible?  If so, how??  Note,  
> I'm no DSP whiz (and don't really want to be, either), so any sample code  
> would be QUITE appreciated.  Thanks in advance!
> 
> --X


Hiho and a bottle rum B)

I can t mail to Scott B( So i have to use this device for replying.

There is the possibility to record and playback sound at the same time.

How to build an example :
Take the NeXTDeveloper/Examples/Sound/recordchaintest.c and paste
 the following
*********************************************---- ( copied from playtest.c)
play(int none)
{
    int size, err, i=1000;
    SNDSoundStruct *s;
    
    //
    // read each soundfile and queue it up for playing. The termination
    // function will free the sound
    //
    {
	err = SNDReadSoundfile(SNDFILE,&s);
	if (err)
	    fprintf(stderr,"playtest : Cannot read soundfile\n");
	else {
	    err = SNDStartPlaying(s,i,0,0,0,(SNDNotificationFun)SNDFree);
	    if (err)
		fprintf(stderr,"playtest : Cannot play soundfile \n");
	}
    }
    //
    // wait for the sounds to finish
    // Note that a tag of 0 means 'wait for all'
    //
    SNDWait(i);

    cthread_exit(0);
}
***********************************************

define the following:
#define SECONDS 20.0 // more time to see that it works B)
#define SNDFILE "your soundfile.snd"

and insert the following line in the main()
	cthread_detach(cthread_fork((cthread_fn_t)play,(any_t)0));


But I have problems in recoding and playing sounds under the NeXTStep  
Environment.It works a while ( btw. 0- 60 Seconds ), but then I get a " Can t  
require hardware resources ".
 			                                Jolly  B)



Newsgroups: comp.sys.next.programmer
From: ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson)
Subject: Re: NeXT Concepts: Software version
Keywords: CONCEPTS TREES ENVIRONMENT LIFE THE UNIVERSE AND EVERYTHING
Organization: Monash University, Caulfield Campus
Date: Thu, 3 Sep 1992 05:12:07 GMT

modman@liveware.com writes:

>In article <92246.110349MKK2@psuvm.psu.edu> <MKK2@psuvm.psu.edu> writes:
>> Even if you have 3.0, the 2.0 manuals will be of GREAT help while you wait
>> for the 3.0 manuals.  3.0 adds many nice capabilities, but 90% of what you
>> need, especially as a NeXT beginner, is the same as 2.0.
>> 
>>    In fact, do whatever it takes to get a copy of NeXTstep CONCEPTS.  Mine
>> is for version 1.0, but I still think it is the most useful manual I know
>> of for getting started.
>> 
>>    I had to beg for mine from a guy I know at NeXT.  So far as I know,
>> it isn't an Addison-Wesley pub.
>> 
>> good luck

>As far as I know concepts is included in 3.0 and it is
>also available on the archive sites.  Save a tree, by
>getting the digital Concepts 1.0.  As far as I know
>Concepts 2.x and 3.0 are the same as 1.0...

>I just checked the archives sites and it seems there is
>indeed the Concepts.README but no Concepts.  Maybe
>NeXT retracted that one also...

>Todd

No true, NextStepConcepts in still in pub/next/docs on sonata.

Newsgroups: comp.sys.next.programmer
From: eps@futon.SFSU.EDU (Eric P. Scott)
Subject: Re: Double Clicking
Reply-To: eps@cs.sfsu.edu
Organization: San Francisco State University
Date: Fri, 4 Sep 1992 08:00:14 GMT

In article <1992Aug31.151516.1902@wuecl.wustl.edu>
	brian@wucs1.wustl.edu (Brian) writes:
>How do I detect a Double click on a button?

The Button class doesn't treat double clicks specially.  The
Matrix class does.  (i.e. use a 1x1 Matrix of ButtonCell instead
of a Button--you can make these in IB by instantiating a Button,
Alt-dragging until a second one appears, release, then Alt-drag
back to one.)

(Yet another question that belongs in the c.s.n.p FAQ list)

					-=EPS=-
Newsgroups: comp.sys.next.programmer
From: ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson)
Subject: Re: New programmer needs buying help (manuals)
Organization: Monash University, Caulfield Campus
Date: Wed, 2 Sep 1992 22:55:48 GMT

MKK2@psuvm.psu.edu writes:

>Even if you have 3.0, the 2.0 manuals will be of GREAT help while you wait
>for the 3.0 manuals.  3.0 adds many nice capabilities, but 90% of what you
>need, especially as a NeXT beginner, is the same as 2.0.

>   In fact, do whatever it takes to get a copy of NeXTstep CONCEPTS.  Mine
>is for version 1.0, but I still think it is the most useful manual I know
>of for getting started.

>   I had to beg for mine from a guy I know at NeXT.  So far as I know,
>it isn't an Addison-Wesley pub.

>good luck

NextStep CONCEPTS (the old one 1.0) can be had from the archives
in pub/next/docs/NeXT
From: alvin@cse.ucsc.edu (Alvin Jee)
Newsgroups: comp.sys.next.programmer
Subject: NXRunAlertPanel
Date: 30 Aug 1992 06:16:49 GMT
Organization: University of California, Santa Cruz (CE/CIS Boards)
Distribution: world
NNTP-Posting-Host: arapaho.ucsc.edu

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
Newsgroups: comp.sys.next.programmer
From: ct54143@uxa.cso.uiuc.edu (Chris Trimble)
Subject: About Icon (the util)
Organization: University of Illinois at Urbana
Date: Sun, 30 Aug 1992 19:53:15 GMT

I have been trying to make an icon for an application I wrote using the
Icon utility made by Keith Ohlfs. Unfortunately, NeXT TOTALLY left out one
of the things that most standard NeXT Apps have : a help section. (I'm talking
about version 2.0 here.. I don't know about and don't have anything newer).

I designed my Icon using PhotoShop on the Macintosh, then I brought it over
to the NeXT via TIFF format. What I can't get to work right here is the
alpha channel so part of the icon can be transparent. 


Please reply in mail. Thank you.

	Chris Trimble


-- 
 Chris Trimble 	    | I bought you drinks ; I brought you flowers ; I read you
 SGI - NeXT - Mac   | books and talked for hours. And every day so many drinks
 Univ. Of Illinois  | such pretty flowers. So tell me : what've I - what've I -
 chris1@uiuc.edu    | what've I done to deserve this? 	  - Pet Shop Boys
Newsgroups: comp.sys.next.programmer
From: sritchie@cs.ubc.ca (Stuart Ritchie)
Subject: Re: Interface builder Run mode
Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
Distribution: usa
Date: Fri, 4 Sep 92 08:23:54 GMT

In article <1992Sep4.014007.7808@dvorak.amd.com> rpomeroy@aunext3.cam.amd.com writes:
 [ about dynamic loading of palettes into IB ]
> Just imagine - highlight a little Obj-C and "accept" and  
>presto! -  A NeXTstep window magically appears in your screen...

This same idea of highlighting code and executing it is captured
by Eval.  You can find the program some where on the archives,
perhaps named as source/Eval.tar.Z.  Glen Diener (grd@ccrma.stanford.edu)
is the author of this cool little app.

Eval provides itself as a service.  When you highlight any text,
you can ask Eval to execute it as Objective-C or execute it as
PostScript.  The PostScript is the easy part.  When Eval has a
request to execute some Objective-C, it forks off cc with a
minimal environment and Eval-library, then dynamically links
the object into itself and executes it.

Mind the $2,500,000.00 shareware fee though...

Stuart

Newsgroups: comp.sys.next.programmer
From: zenon@resonex.com (Zenon Fortuna)
Subject: Re: ld not recognizing ar/ranlib archives
Organization: Resonex Inc., Sunnyvale CA
Date: Thu, 3 Sep 1992 00:05:37 GMT

In article <1992Sep1.151041.15826@micrografx.com> sstaton@micrografx.com (Steven R. Staton) writes:
>When I build an archive (library) using 'ar r <objectfilelist>' and then  
>run ranlib on it, I cannot link the object modules into any code.  ld  
>reports:
>
>/bin/ld: table of contents for archive: /usr/lib/libTest.a is out of date;  
>rerun ranlib(1) (can't load from it)
>
>When I build the f2c package, it does the exact same thing except that I  
>can link the libF77 and libI77 libraries without incident.  The only  
>difference between how f2c makes it's libraries is in the source; ie. no  
>difference in the methodology.
>
>Does anyone know what secret ingredient I am missing?
>-- 
>     Steven R. Staton      |   The two most common things in the
>     Micrografx, Inc.      | Universe are Dark Matter and Stupidity
>  sstaton@micrografx.com   |

It may happen, that you had copied your *.a file from temporary location, after
calling your ranlib. If this is the case, the time change caused by copying
results in the linker problems you quote.

You can use "cp -p ..." to preserve the date/time.

	-Z.
From: rpomeroy@aunext3.cam.amd.com (Ron Pomeroy x(Coop))
Newsgroups: comp.sys.next.programmer
Subject: Re: Interface builder
Date: 28 Aug 92 23:04:58 GMT
Reply-To: rpomeroy@aunext3.cam.amd.com
Distribution: usa
Organization: Advanced Micro Devices, Inc.; Austin, Texas

In article <1992Aug28.132641.1923@pellns.alleg.edu> frisinv@alleg.edu writes:
>>In article <17jslcINNqou@overload.lbl.gov> seidl@next1.lbl.gov (Peter  
>>Seidl) writes:
>>> I am beginning to learn about the interface builder and have been  
>>working the  
>>> examples in chapter 8 of the Nextstep Concepts manual.  I have more or  
>>less  
>>> succeeded in doing Examples 1-3.  However, one thing seems puzzling:   
>>The  
>>> calculator examples (2 and 3) run fine as applications, but when I try  
>>to test  
>>> them using the Test Interface command in IB, nothing happens when I tell  
>>it to  
>>> do a calculation.  However, the 'edit' functions seem to work fine in  
>>Test  
>>> Interface mode.  Did I make a mistake or is it a quirk of the IB?
>>> 
>>> --
>>> Peter Seidl
>>> Heavy Ion Fusion Accelerator Research 
>>> Lawrence Berkeley Laboratory
>>> Berkeley, CA 94720
>>> 
>>> seidl@next1.lbl.gov
>>
>>It's a quirk.

Now wait a minute.  When you tell it to do a calculation you're
actually making a method call (that you typed in in Controller.hm) right ?
How can InterfaceBuilder invoke a method that hasn't been compiled ?  
Am I missing something here ?

Confused !
--
Ronald Pomeroy
Advanced Micro Devices
CAM Applications Group
rpomeroy@aunext3.amd.com
Newsgroups: comp.sys.next.programmer
From: hoffmann@fzi.de
Subject: Problem with NXImage
Keywords: NXImage,compositing
Reply-To: hoffmann@fzi.de
Organization: FZI Forschungszentrum Informatik, Karlsruhe, Germany
Date: Wed, 26 Aug 1992 09:16:15 GMT

I have a problem with NXImage that is hurting me for days
now and I cannot find a solution.
I'm working on a drawing program which allows you to draw
on top of a background representing a map. The map is a tiff
image hold in a NXImage object.

[self convertRect:&mapDrawRect toView:[window contentView]];

....// now I'm calculating a offset for mapDrawRect  

[mapImage composite:NX_SOVER fromRect:&mapDrawRect toPoint:&aPoint];

is causing the following problem:
Since NXImage specifies its rects in base coordinates and my 
drawing view can be scaled I have to convert mapDrawRect to the
base coordinate system and then do the compositing.
Everything works fine when the drawing view is scaled to 
50%,100%,200%,400%,...

When scaled to 25%,75%,150%,300%,...
the result of the compositing differs from the one I wish 
by one pixel row (or sometimes column, I couldn't find a rule in this).
Sometimes it's the size that's too small (or too large) sometimes
the offset is offset with one pixel row(or column).

aPoint is in drawing view coordinates (which is focused, BTW
this is part of the drawSelf method).

Everytime I scale the drawing view (and resize it accordingly)
I resize the NXImage object such that it has the same size with the
drawing view in base coordinates (the NXImage is set to scalable).

I'll appreciate any help or example code using NXImage in similar
situations.

Uwe,

hoffmann@fzi.de
From: cdb@codex .oz.au (Cameron Bromley)
Newsgroups: comp.sys.next.programmer
Subject: Re: NXRunAlertPanel
Date: 31 Aug 92 08:11:55 GMT
Organization: Codex Software Development Pty Ltd

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
From: kls30@cd.amdahl.com (Kent L. Shephard)
Newsgroups: comp.sys.next.programmer
Subject: Re: 10Band
Date: 31 Aug 92 18:26:18 GMT
Distribution: na
Organization: Amdahl Corporation, Sunnyvale CA

could somw kind soul either tell me where to find 10band or mail me a
copy of the sources?

I lost my only copy (I thought I had a backup) a few months ago.  I need the 
sources because I'd like to do some modifications.

10Band is a 10 band graphic EQ that works  via the DSP port, for those of you
that don't know.

-- 
/*  These are only my opinions.  Whose else could/would take credit? */
/*  - If you are anti-abortion you are passing out condoms and doing */
/*  - birth control education, right?  You also aren't trying to     */
/*  - impose your moral views on anyone, right?  I didn't think so.  */
From: andrew@cubetech.com (Andrew Loewenstern)
Newsgroups: comp.sys.next.programmer
Subject: Re: prserver
Keywords: NeXTstep_3.0
Date: 2 Sep 92 05:08:14 GMT
Organization: Cube Technologies, Inc.

In article <1992Aug29.091324.181@kocher.cube.de> roland@kocher.cube.de (Roland Kocher) writes:
>Who knows, how the new prserver in NeXTstep_3.0 works.

It works very well.


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: pchin@fraser.sfu.ca (Patrick Keng Seng Chin)
Newsgroups: comp.sys.next.programmer
Subject: Reusing a Text Object
Date: 29 Aug 92 05:08:03 GMT
Article-I.D.: sfu.pchin.715064883
Organization: Simon Fraser University, Burnaby, B.C., Canada

How does one reuse a single text object?
For example, several TextField objects in one window
will use one Text object. In the Concepts manual,
it says:
(Under the heading "Reusing a Text Object", page 9-34 of the NeXTStep 1.0
 Concepts manual)
"As an efficiency, a single Text object can be reused: It can be made
to draw in various Views or various locations within one View. In fact,
you can make use of a Window's field editor, the Text object that
the Application Kit uses to draw text within standard Kit objects. 
Using one Text object rather than several saves both startup time and memory."

-P.C.