HDTenEightyP/NetNews huggingface dataset:
From: ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson)
Subject: NXBrowser problem
Summary: Help with NXBrowser Problem
Organization: Monash University, Caulfield Campus
Date: Thu, 13 Aug 1992 01:57:31 GMT


Strange, 

As I explained I have this set up.

A list of employees and a list of rooms.

Say I create 3 rooms and each room appears at a branch in column 0
then I create 3 employees each in different rooms. As mentiond 
employees are leafs in column 1 hanging off a room branch.

The first employee I add gets loaded correctly and there in after
all other employees appear as "BrowserItem" off their corresponding
room branch.

Signed confused.

Another thing, I cannot accept the exception error im getting since
I have two multicolumn browser examples and they don't give me this
error.  Everytime I click on a branch I get an exception error.

Aug 13 11:36:42 steffi Romper[1788]: Exception handlers were not properly removed.

My browser fill method looks like this.

Code follows.

- (int)browser:sender fillMatrix:matrix inColumn:(int)column
{
    int row;
    int count = 0;
    NXBrowserCell *cell;    
    String *roomDescription; 
    List *employeesList;
    List *roomsList;
    
    employeesList = [[NXApp currentDocument] employeesList];
    roomsList = [[NXApp currentDocument] roomsList];

    if (column == 0) {        
        count = [roomsList count];    
        for (row = 0; row < count; row++) {
            [matrix addRow];
            cell = [matrix cellAt:row :0];
            roomDescription = [[roomsList objectAt: row] roomDescription];
            [cell setStringValue:[roomDescription str]];      
            [cell setLeaf:NO];
            [cell setLoaded:YES];
        }
        return count;
    }
    else {
        String *employeesRoom;
        int empCount = [employeesList count];
        const char *roomDescription;
        Employee *anEmployee;
                
        roomDescription = [[[sender matrixInColumn:column-1] selectedCell] stringValue];
        for (row = 0; row < empCount; row++) {
            anEmployee = [employeesList objectAt:row];
            employeesRoom = [anEmployee employeeRoom];
            if (![employeesRoom compareSTR:roomDescription]) {
                [matrix addRow];
                cell = [matrix cellAt:row :0];
                [cell setStringValue:[[anEmployee employeeName] str]];
                [cell setLeaf:YES];
                [cell setLoaded:YES];
                count++;
            }
        }
        return count;
    }

    return 0;
}

Any ideas?

Newsgroups: comp.sys.next.programmer
From: louie@sayshell.umd.edu (Louis A. Mamakos)
Newsgroups: comp.sys.next.programmer
Subject: Re: _IO, _IOR, _IOW and _IOWR functions
Keywords: low level NeXT system functions
Date: 19 Aug 92 21:07:23 GMT
Organization: University of Maryland College Park

In article <rabjab.11.0@golem.ucsd.edu> rabjab@golem.ucsd.edu (Jeff Bytof) writes:
>Does anyone have good documentation for the NeXT low-level system
>functions _IO,_IOR, _IOW and _IOWR?  They are mentioned extensively
>in various include files in /usr/include but not in sufficient detail
>to get a really good handle on them.

These are macros defined in /usr/include/sys/ioctl.h (at least until
3.0 comes out, when them move to some god-forsaken part of the file
system).  These macros are used to construct arguments to the ioctl()
system call.  That's all they are used for, generally, on UNIX
systems.

louie
Newsgroups: comp.sys.next.programmer
From: roberto@arrocha.charlotte.nc.us (Roberto Arrocha)
Subject: How to rebuild a .nib file from .nib~
Keywords: NeXT IB
Reply-To: roberto@arrocha.charlotte.nc.us
Organization: Roberto E. Arrocha
Date: Fri, 14 Aug 1992 15:11:16 GMT

Yes, I screwed up! I was copying icons from one nib file to another, ..and  
BaNG! IB crashed and both nib files disappeared from the corresponding  
directories. Vanished!

All I have left is an old backup (yeah, I should backup more often, I  
know), and the corresponding .nib~ files. For some reason these were not  
destroyed. Thanks IB!?!

Anyhow, has anybody been able to rebuild a .nib file from a .nib~? Is this  
possible or should I just forget about it? It's only a couple of day's  
work, but I thought it would be nice to know, ..in case I decided screw up  
again! You never know..

Thanks.

-- 
Roberto
NeXTmail: roberto@arrocha.charlotte.nc.us
From: alex@laos (Alex D. Nghiem)
Newsgroups: comp.sys.next.programmer
Subject: where is putenv() and getenv()?
Keywords: comp.sys.next.misc
Date: 12 Aug 92 21:20:54 GMT
Reply-To: alex@pencom.com
Organization: Pencom Software

Hello there:

I need the putenv() and getenv() calls, and these have been removed with  
NeXTSTEP 3.0.  Supposedly, the source to these have been placed in libcs at  
cs.cmu.edu. However, that doesn't seem to be case.  Does anyone know where I  
can find the source to this?


Please e-mail me directly.


Thanks in advance,


Alex Duong Nghiem          Phone: (512) 343-1111
Pencom Software            Fax:   (512) 343-9650    
9050 Capital of TX Hwy N.  Mail:  alex@pencom.com
Suite 300                  Mail:  co-Xist_support@pencom.com
Austin, TX 78759           Mail:  co-Xist_info@pencom.com
USA
                           ****************************
                           * NeXTMail gladly accepted *
                           ****************************
Newsgroups: comp.sys.next.programmer
From: dcode@netcom.com (Paul Marcos)
Subject: Looking for public object like IB's Palette panel
Date: Sun, 16 Aug 92 20:59:28 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 

I'm wondering if anyone knows of a PD object that would let me 
implement (painlessly!) a panel like the Palettes panel in IB.
I want to have a horizontal scrolling view of 64 x 64 icons with
a view below that will display information about the selected 
icon.  Does such a thing exist?  

Thanks for any information.

Paul
-- 
--------------------------------------------------------------------------
Paul Marcos  | Internet:  dcode@netcom.com    |  (415) 960-3539 

NeXT Mail Happily Accepted
From: jjfeiler@relief.com (John Jay Feiler)
Newsgroups: comp.sys.next.programmer
Subject: Re: In 3.0 Examples
Date: 17 Aug 92 07:18:52 GMT
Reply-To: jjfeiler@relief.com
Organization: relief consulting

In article <1992Aug13.061051.7387@monu6.cc.monash.edu.au>  
ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson) writes:
> 
> I hope NeXT have used IB where they can in the examples rather than
> creating windows etc in code when they could have used nib templates.
> 
> Has draw been redone to support nib templates rather than c - functions
> setting up its windows for its documents.

Nope. =-(
Newsgroups: comp.sys.next.programmer
From: eps@futon.SFSU.EDU (Eric P. Scott)
Subject: Re: Packages
Reply-To: eps@cs.sfsu.edu
Organization: San Francisco State University
Date: Sat, 15 Aug 1992 00:19:00 GMT

In article <1992Aug13.220229.15234@sunova.ssc.gov>
	sapp@falcon.ssc.gov (Kevin Sapp) writes:
>How does one create a file package from an app?  

If you're using InterfaceBuilder under 2.x, go to the Project
Inspector, click on Attributes, and check the File Package
box in the lower left hand corner.  [Presumably ProjectBuilder
in 3.0 will offer something similar.]

>Once it is created is there any trick to the open/save panels recognizing
>it as a package and not a plain directory?

Yes.  The class is "hardwired" to treat directories with .app
suffixes specially.

					-=EPS=-
Newsgroups: comp.sys.next.programmer
From: ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson)
Subject: Drag and Drop in < NS3.0
Summary: Drag and Drop in < NS3.0
Organization: Monash University, Caulfield Campus
Date: Mon, 17 Aug 1992 10:44:53 GMT

I have to implement Drag and Drop behaviour in NS2.1, but I would also like
to know wether NS3.0 can do it properly. (Look forward to reading the
article on it simson)

OK, I would like to know wether drag and drop can be implemented such that
the application can determine specifically which window is under the cursor.

ie. if there are overlapping windows, I must be able to tell which is at the
top. ie. above all the rest

Anybody done this?
From: bill@epnxt.jsc.nasa.gov
Newsgroups: comp.sys.next.programmer
Subject: Question about assigning a SoundView to a ScrollView
Date: 14 Aug 1992 14:57:16 GMT
Reply-To: bill@epnxt.jsc.nasa.gov
Organization: nasa-jsc

The follow code is from a quick palette I put together in which I was  
attempting to make a SoundView palette.  It seems to work fine execpt in  
an actual application, I can not get the graphical portion of the sound  
file to show up on the the ScrollView.


from the palette:

-initFrame:(const NXRect *)frameRect
{
    NXRect tempRect = *frameRect;
    int borderType = NX_NOBORDER;
     
    [super initFrame:frameRect];
    [ScrollView getContentSize:&tempRect.size  
forFrameSize:&frameRect->size
    		horizScroller:YES vertScroller:NO borderType:borderType];
		
    theSoundView = [[SoundView alloc] initFrame:&tempRect];
    
    [self setHorizScrollerRequired:YES];
    [self setDynamicScrolling:YES];
    [self setDocView:theSoundView];
    
    [self setBackgroundGray:NX_WHITE];
    [self setBorderType:NX_BEZEL];
    [self setAutoresizeSubviews:YES];
    [self setAutosizing:NX_WIDTHSIZABLE|NX_HEIGHTSIZABLE];

    [[theSoundView superview] setAutoresizeSubviews:YES];
    [theSoundView setAutosizing:NX_HEIGHTSIZABLE];

  //  [self setBackgroundColor:NX_COLORWHITE];
    [self setBorderType:NX_BEZEL];
    [self display];
    return self;
}



from my application:

- openFile:(char *)fileName
{
    id aSound;
    
    mySoundView = [ScrollView1 docView];
    [mySoundView setSound:[[Sound alloc] init]];
    aSound = [[Sound alloc] initFromSoundfile:fileName];
    
    [mySoundView setSound:aSound];
    [mySoundView setDisplayMode:SK_DISPLAY_WAVE];
    [ScrollView2 setDocView:mySoundView];
    
    [MyScrollWindow setTitleAsFilename:fileName];
    [MyScrollWindow setMiniwindowIcon: "SoundIcon"];
    
    [mySoundView display];
    [ScrollView2 display];

    [NXApp stopModal];
   return aSound;
}

I have tied the above [display] both individually and in different  
combinatins.

Any help would be apprectiated.

Thanks much in advance.


Bill
From: hardy@golem.ps.uci.edu (Meinhard E. Mayer (Hardy))
Subject: Re: GNU cc features doc?
In-reply-to: tim@aplcen.apl.jhu.edu's message of Wed, 12 Aug 92 16:27:22 GMT
Newsgroups: comp.sys.next.programmer
Organization: Department of Physics, UC Irvine, CA 92717-4575, USA
	<1992Aug12.162722.28691@aplcen.apl.jhu.edu>
Date: 13 Aug 92 07:29:20 GMT

Like other gnu manuals, the gcc manual comes in Texinfo format, which
allows producing both the info files (accessible via emacs in
info-mode, or directly with the info program) and the dvi-file for a
printed manual. The Free Software Foundation also sells bound copies
of manuals.
Here is the top node of the info file:

File: gcc.info, Node: Top, Next: Copying, Up: (DIR)

Introduction
************

   This manual documents how to run, install and port the GNU C
compiler, as well as its new features and incompatibilities, and how to
report bugs.  It corresponds to GNU CC version 2.0.

* Menu:

* Copying::         GNU General Public License says
                     how you can copy and share GNU CC.
* Contributors::    People who have contributed to GNU CC.
* Boycott::	    Protect your freedom--fight "look and feel".
* Invoking GCC::      Command options supported by `gcc'.
* Installation::    How to configure, compile and install GNU CC.
* Trouble::         If you have trouble installing GNU CC.
* Service::         How to find suppliers of support for GNU CC.
* Incompatibilities:: Incompatibilities of GNU CC.
* Extensions::      GNU extensions to the C language.
* Bugs::            How to report bugs (if you want to get them fixed).
* VMS::             Using GNU CC on VMS.
* Portability::     Goals of GNU CC's portability features.
* Interface::       Function-call interface of GNU CC output.
* Passes::          Order of passes, what they do, and what each file is for.
* RTL::             The intermediate representation that most passes work on.
* Machine Desc::    How to write machine description instruction patterns.
* Machine Macros::  How to write the machine description C macros.
* Config::          Writing the `xm-MACHINE.h' file.
* Index::	    Index of concepts and symbol names.

--
Hardy 
-----
Meinhard E. Mayer,  Department of Physics, UC Irvine 
e-mail: hardy@golem.ps.uci.edu (preferred) or MMAYER@UCI.BITNET

Newsgroups: comp.sys.next.programmer
From: qureshi@unixhub.slac.stanford.edu ("For deposit only")
Subject: Re: matrix class question (SOLUTION)
Reply-To: cooldude@elaine49.stanford.edu
Organization: DSO, Stanford University
Date: Fri, 21 Aug 92 21:08:19 GMT

In article <988m58_.yikes@netcom.com> yikes@netcom.com (Jenny Doll) writes:
> Nader Sahyouni writes:
> 
> >I vaguely remember seeing a posting about someone developing a 
> >matrix that could have different size text fields in it. That
> >would be enormously beneficial to me. If anyone remembers this
> >or can tell me where to get it, I'd appreciate it.
> 
> I too am quite interested in such a thing.  I have a matrix that contains a
> matrix of cells which are names of tasks.  I would like to have the height of
> each cell correspond to the duration of each task (short task->short cell, 
> long task->tall cell).  I'd be happy to try the thing myself if someone could
> point me in the right direction.
> 
> Michael Brill
> yikes@netcom.com
> 

I wrote a class called "VarMatrix" that does this.  It should be available in  
the submissions directory of sonata.cc.purdue.edu as VarMatrix.tar, unless  
someone moved it.

The class is FREEWARE so the price is right!

Here is an excerpt from the README file.
-------
The VarMatrix class is a subclass of Matrix that allows variable sized columns  
and rows.  However the overall shape of the matrix has to be a rectangle.  For  
example,

----------------------
|  |          |   |   |
-----------------------
|  |          |   |   |
-----------------------
|  |          |   |   |
|  |          |   |   |
-----------------------
|  |          |   |   |
-----------------------

Column 2 and Row 3 have different sizes from the rest.

Full functionality of Matrix class should be available since VarMatrix is a  
subclass.

An example program is also included which shows how to use the class.   
Basically you need to know 2 new calls.

-setWidth:(float)width forCol:(int)col;
-setHeight:(float)height forRow:(int)theRow;

They change the width of a column and the height of a row.

Future: I am planning to make this class into an IB palette that you could use  
from inside Interface builder.
	I am going to add the functionality to have cells of different type in  
this matrix.

This class is FREEWARE.  All the standard stuff applies.  You are free to use  
it as you wish. If you decide to use it, I would like to hear from you.  Just  
send me email.

--------

Ciao,

Imran
Newsgroups: comp.sys.next.programmer
From: rademach@alumni.cs.colorado.edu (SIMON RADEMACHER)
Subject: select() broken?
Summary: does select() break after a disconnect?
Organization: University of Colorado, Boulder
Date: Tue, 18 Aug 1992 04:20:06 GMT


Hopefully, this should be easy, but perhaps a bit dull--no graphics
nor even Objective C here.

We've developing a suite of programs here that use tcp sockets for
communications.  Select() is used to multiplex communications.  Everything
goes ok until one program disconnects from another. Then, select() in the
second program never detects any furthur events on any file descriptors,
including ones that it was detecting events on before the disconnect.
So, does select() have a bug?

Here's a more complete description of what happens with one of the programs:
1) The program opens three tcp socket services and one client. The client
   successfully connects.
2) It then does a select() in the main loop.  It uses a timeout in the
   select() so that it can do other, clock-based work.  The timeout has
   ranged from 100 microseconds to over 1 second with the same results.
3) The select() correctly identifies connection requests on the services
   as well as data arriving on the client.  When a connect request is
   seen, an accept() is done, and the new fd is added to the read fd_set.
4) Data arriving on the newly accepted fd is noted and read.
5) When one of the accepted fd's disconnects, the read fd_set shows an
   event on the fd.  A read is done resulting in EOF.  The fd is closed()
   and removed from the read fd_set.
6) From then on, the select() always waits for the duration of the time-
   out, and returns 0, eg. no events in any of the sets.

Note, the following possible causes have been checked.
a) The read fd_set IS rebuilt before each select() call.  The except fd_set
   is also built and is the same set as the read.  The write fd_set is set
   to NULL 'cause I don't care about writes.  Although the except is sent to
   select(), any exceptions are currently ignored.  (Shouldn't be a problem,
   right?)
b) The number of fds select() should look at (nfds) is larger than the
   greatest fd number.
c) The socket fd given from socket() is not closed, just the fd given by
   the accept call.

Another program behaves similarly, but includes stdin in the read fd_set
for user input.  When it looses its client connection, it also ignores
input on other inputs, including stdin.

Any clues?  Oh, BTW, this occures on 2.1 and 3.0PR2.
Thanks in advance for any help.
-- 
Simon Rademacher
rademach@alumni.cs.colorado.edu

Newsgroups: comp.sys.next.programmer
From: jeffo@ux1.cso.uiuc.edu (J.B. Nicholson-Owens)
Subject: Re: Display Tiff Images as a background screen
Reply-To: jeffo@ux1.cso.uiuc.edu
Organization: University of Illinois at Urbana
Date: Sat, 15 Aug 1992 15:33:23 GMT

tristen@cs.UAlberta.CA (Rasmussen Tristen J) writes:

>Unless I am mistaken, Background2 in the source directory needs to be
>compiled.  Is there a version that doesn't need to be compiled for those
>of use who have the limited version of NeXTSTEP? (ie., I don't have the
>C compiler)

How about using the Scene app that came with your machine?  No FTP'ing
necessary and it will do backgrounds even though Scene isn't running.
I think this will also work on the loginWindow.
-- 
-- Jeff (jeffo@ux1.cso.uiuc.edu)
-- No NeXTmail please
Organization: Penn State University
Date: Fri, 21 Aug 1992 23:16:19 EDT
From: <MKK2@psuvm.psu.edu>
Newsgroups: comp.sys.next.programmer
Subject: Highlighting a Selected Cell

I don't seem to be able to figure out how to highlight selected cells in
a matrix in a scrollview.  I've RTFMs til Digital Librarian is burned into the
monitor 8-)

I have a subclass of TextFieldCell which I putCell into a Matrix.  The Matrix
has a LT_GRAY background, and I've tried LT_GRAY and -1 for the Cells.

When I press the mouse button, the cell under the cursor highlights, which
is good.  When I release the mouse button, it turns gray again, which is
not what I want.  I want it to stay white.  (The whole cell, not just the
text, which isn't editable).

The cell *is* selected OK, since when I push other buttons that cause things
to happen to [theMatrix selectedCell] they happen to the right one.  So,
how do I get the cell to stay highlighted?  (Oh yeah, theMatrix is RADIOMODE.)

A related (??) problem is that though setDoubleAction: behaves as I think it
should, I cannot get setAction to work.  When I double click a Cell, I
call the targets action, but when I single click it, I don't

I am figuring that I DON'T UNDERSTAND.  That happens sometimes, know what I
mean?

thanks for listening, I feel better already.
Newsgroups: comp.sys.next.programmer
From: wjs@blorf.cpac.washington.edu (William Shipley)
Subject: Re: Request for DBkit Information
Organization: University of Washington
Date: Sat, 22 Aug 1992 13:35:32 GMT

I don't think anyone has any written summary of DBkit; heck, the last I knew  
even the DBkit guys didn't have one.

If you have specific questions, post them to the Net or mail them to  
next-prog@cpac.washington.edu.  I know several DBkit developers are ready to  
answer if they can.  I know I've answered dozens myself.

But as for explaining the whole thing, well, that's a job for a better man than  
I.

-William Shipley
The Omni Group
DBKit developers, party animals
Newsgroups: comp.sys.next.programmer
From: Gregory Gee <gee@gaul.csd.uwo.ca>
Subject: remote mounting program?
Cc: gee@gaul.csd.uwo.ca
Organization: Relayed-by-Sendmail
Date: Thu, 20 Aug 1992 16:27:16 GMT
To: comp.sys.next.programmer@newshost.uwo.ca


I am a fairly new user for NeXT.  I was wondering if there are any 
programs that are available and public domain that allow my directories
in my cs account to be mounted to my NeXT at home through my modem.

  I've heard of such programs but cannot find.  I have an Intel 14.4 EX 
if it's important. 

  Thanks in advance for any help.

  Greg Gee           Honours computer science, University of Western Ontario.
  gee@gaul.csd.uwo.ca
From: cgb@count0.cmhnet.org (Charles G. Bennett)
Newsgroups: comp.sys.next.programmer
Subject: Renderman
Keywords: Renderman and Text
Date: 20 Aug 92 17:12:32 GMT
Reply-To: cgb@count0.cmhnet.org
Organization: BenaTong

I thought I was finally getting comfortabe with Renderman, until
I decided to display some text.    Just how does one get Renderman
to produce a letter.   The HARD way?   Gosh, I hope that I don't have
to model every letter...  In the book "Renderman Companion" the author 
really blows buy how text "texture maps" are created.   Kinda like the
old Math professor's  "assuming" that a text map exists, such that....

Chuck
-- 
Chuck Bennett, BenaTong Consulting
Harem Security (UNIX Consulting :-) )
cgb@count0.cmhnet.org
From: rabjab@golem.ucsd.edu (Jeff Bytof)
Newsgroups: comp.sys.next.programmer
Subject: _IO, _IOR, _IOW and _IOWR functions
Date: 19 Aug 1992 19:23:17 GMT
Organization: sio
NNTP-Posting-Host: lutherlab.ucsd.edu
Keywords: low level NeXT system functions

Does anyone have good documentation for the NeXT low-level system
functions _IO,_IOR, _IOW and _IOWR?  They are mentioned extensively
in various include files in /usr/include but not in sufficient detail
to get a really good handle on them.
From: bill@epnxt.jsc.nasa.gov
Newsgroups: comp.sys.next.programmer
Subject: What command do I use to make a ".a" file?
Date: 13 Aug 92 17:57:07 GMT
Reply-To: bill@epnxt.jsc.nasa.gov
Organization: nasa-jsc

I wish to make a library file (somefile.a) encompassing a palette I just  
designed.  What command do I use?  I could not find anything mentioned in  
the QA section on this topic.

Thanks in advance.

		Bill
From: tom@ennex1.eng.utsa.edu (Tom Arnow)
Newsgroups: comp.sys.next.programmer
Subject: Window Window on the Screen
Date: 21 Aug 92 21:15:59 GMT
Reply-To: tom@ennex1.eng.utsa.edu (Tom Arnow)
Organization: Univ of Texas at San Antonio

I have a .nib with a window. In the window there is a customView within a  
scrollView. When I have several windows on the screen, I want to be able to  
find the id of the customView object for the current key window. Is there  
an elegent way to do this, or do I need to store the IDs of the windows and  
customViews as the nibs are loaded?

Thank,
Tom Arnow
From: yikes@netcom.com (Jenny Doll)
Newsgroups: comp.sys.next.programmer
Subject: Re: matrix class question
Keywords: matrix
Date: 16 Aug 92 23:38:09 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest)

Nader Sahyouni writes:

>I vaguely remember seeing a posting about someone developing a 
>matrix that could have different size text fields in it. That
>would be enormously beneficial to me. If anyone remembers this
>or can tell me where to get it, I'd appreciate it.

I too am quite interested in such a thing.  I have a matrix that contains a
matrix of cells which are names of tasks.  I would like to have the height of
each cell correspond to the duration of each task (short task->short cell, 
long task->tall cell).  I'd be happy to try the thing myself if someone could
point me in the right direction.

Michael Brill
yikes@netcom.com
Newsgroups: comp.sys.next.programmer