HDTenEightyP/NetNews huggingface dataset:
From: hans@dev01 (Hans Peter Geiser)
Newsgroups: comp.sys.next.programmer
Subject: Re: NXRectFill - How to use this correctly?
Date: 24 Jul 92 08:23:52 GMT

>  	NXSetColor( GaugeDat.backColor );
> 	NXRectFill(&bounds);
> 
> GaugeDat.backColor is just an NXColor.  However, this little ditty does  
> absolutely nothing that I can see, no matter how backColor is set.
> 

Are you doing the NXRectFill() in a drawSelf:: method, or - if not - have you  
done the lockFocus on the View you want to fill?

Hans-Peter Geiser
From: edlau@mitl.com (Ed Lau)
Newsgroups: comp.sys.next.programmer
Subject: freeing an object--when?
Date: 24 Jul 92 18:05:35 GMT
Distribution: na
Organization: Matsushita Information Technology Laboratory


	
I am writing an application that loads a document from a file and displays it  
in a window. My app has a controller object and document objects. Both  
controller and document are instances of Object subclasses. Each document  
instance has an outlet to its respective window and is the delegate for that  
window.

Here's my problem: I want to free my document object when the user closes its  
respective window. To do this, I have the following code in my windowWillClose:  
method in Document.m:

- windowWillClose:sender
{
    [controller rmDoc:self];

	...
}

in my -rmDoc method in Controller.m, I do:

- rmDoc:aDoc
{
    // docList is a List containing my document objects	
    [[docList removeObject:aDoc] free];

	...
}

However, since my document object is freed, its window is left without a  
delegate. What to do?

I suppose I can have the controller be each window's delegate, but I prefer to  
have each document be the delegate instead. The reason is mainly because each  
window may have different max and min sizes--information the document instance  
knows about.

What are possible solutions to this problem? Any suggestions appreciated. Thank  
you in advance.

--Edward Lau
edlau@chaos.mitl.com
Newsgroups: comp.sys.next.programmer
From: colin@agincourt.bsd.uchicago.edu (& Garrett)
Subject: Re: DBKit: TextFields as display objects
Organization: University of Chicago Computing Organizations
Date: Wed, 22 Jul 1992 16:24:00 GMT

In article <1992Jul21.195849.17469@midway.uchicago.edu> I wrote:
> Hmm, when it rains it pours.  Does anyone know what I need to do to get  
my  
> DBModule and its entourage to recognize editing I do to data I've got  
> displayed in TextFields?
> [blah blah blah]

And Art Isbell mailed me the following.  It works.  EOD.
>If you drag a connection from each attribute to both the DBTableView  
column and
>the TextField in which you wish to display and enter data (the  
DBTableView
>column connection is optional), and also make the DBModule the  
TextField's
>textDelegate, you should get the behavior you seek.
Newsgroups: comp.sys.next.programmer
From: thf@zelator.in-berlin.de (Thomas Funke)
Subject: Re: Any fixes for Sybase 1000 login bug?
Reply-To: thf@zelator.in-berlin.de (Thomas Funke)
Organization: NNU Corp. - NeXT is Not UN*X
Date: Thu, 23 Jul 1992 11:35:35 GMT

In article <1992Jul20.165845.10873@tamsun.tamu.edu> shill@emcnext.tamu.edu  
(Steven Hill) writes:

>      A few months ago, there was a lot of discussion about the bug in the  
> Sybase limited server that caused the Next to hang after about 1000  
logons.  I  
> went back through the postings, but could not find if anyone had come up  
with a  
> solution.  We are hitting this bug about once a week on NextStep 2.1 with  
> Sybase 4.01.   
>  
>      Is there any way to program around the bug, either in C or in a  
script  

After a lengthy discussion with NeXT-support (yes, when it was still free),
it came out, that this bug is a "feature" of NeXT-networking. Strange. that  
it happens only with Sybase so far. It's probably NOT a bug of Sybase !

So we can hope for 3.0 ?!

-- 
------------------------------------------------------------------
Thomas Funke  ** E-mail: thf@zelator.in-berlin.de
NeXT-Developer * Unix-Consultant
------------------------------------------------------------------
Newsgroups: comp.sys.next.programmer
From: sanguish@digifix.com (Scott Anguish)
Subject: Re: Problems implementing services
Reply-To: sanguish@digifix.com
Organization: Digital Fix Development
Date: Wed, 29 Jul 1992 19:21:48 GMT

 "For deposit only" writes
> In article <1992Jul29.042157.18366@morrow.stanford.edu> hinds@cmgm.Stanford  
> (Alexander Scott Hinds) writes:
> > I have a program in which I'd like to implement services.  That is, I'd  
> > like it available as a service to other programs.  As per the Appkit  
> > documentation in the release notes (2.0) I created a file that looks like  
> > this: (called services.txt)
> You have to add a Services Item to your menu before your application can  
> provide services to other applications.  Why? I'm not sure.  Maybe adding the  
> Services item forces the linker to bring in other code or maybe the services  
> menu communicates with the WorkSpaceManager.  All I know is that it works.   
To  
> add a Services item in IB, simply drag the Services item from the menu  
palette  
> to your main menu.

	I don't think so.  I just launched a service provider that I wrote, it  
has no services menu.  The services it offers are available in the Services  
menu.

	I think it more likely that the Service is not asking for a valid  
Pasteboard type.  Remember how different services show up in the menus  
depending on what Pasteboard objects are available...


	scott

-- 
- Scott Anguish -
sanguish@digifix.com (NextMail)
From: alex@cs.umd.edu (Alex Blakemore)
Newsgroups: comp.sys.next.programmer
Subject: Re: launching shell commands
Date: 23 Jul 92 03:47:59 GMT
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742

In article <92204.103326MKK2@psuvm.psu.edu> MKK2@psuvm.psu.edu writes:
> If someone has added a lot of
> functionality to Subprocess, it'd be a good candidate to the archives.

Opener includes an improved Process object - available from the archives.
The source is distributed and its freeware, but its also copyrighted.
I imagine its ok to reuse it but perhaps Mr. Hawley could elaborate
on that.

/*
 * Process -- manage i/o with simple subprocesses.
 * Considerably tweaked relative of /NextDeveloper/Examples/Subprocess.
 * M. J. Hawley
 * Copyright (c) MIT Media Laboratory
 * mike@media-lab.mit.edu
 */
-- 
-------------------------------
Alex Blakemore alex@cs.umd.edu
Newsgroups: comp.sys.next.programmer
From: slh@scire.hampshire.edu (Sean L. Hill)
Subject: DBKit programmers
Keywords: 3.0, DBKit, help, solutions
Organization: University of Massachusetts, Amherst
Date: Fri, 31 Jul 1992 12:40:22 GMT


If anyone who is an authorized beta site for 3.0r2 and is working with  
DBkit would be willing to provide some assistance and share  
problems/solutions, I would be grateful.
--
Sean L. Hill			Sean_Hill@ccsi.com(NeXTMail+)
Crystal Computer Systems	"The petrifications of a plodding brain."
E. Longmeadow, MA					--Lord Byron
Newsgroups: comp.sys.next.programmer
From: steggie!eric (Eric Fronberg)
Subject: how do outlets work?
Reply-To: eric@steggie.mtview.ca.us
Organization: Mountain View, Ca  USA
Distribution: ba
Date: Wed, 29 Jul 1992 16:34:10 GMT

This may be a naive question.  I'm confused about the workings of
outlets in interface builder. I understand what outlets are supposed
to do -- provide access to instances of other objects, but I'm 
confused how Interface Builder accomplishes this.

So if I have a interface definition to myobject

@interface myobject:Object
{
    id  outlet1;
    id  outlet2;
}
...
@end

I use IB to set outlet1 and outlet2 to some object instances in my 
application. Later when I invoke the app and send a message to 
myobject, outlet1 and outlet2 properly have object instances assigned 
to them.

How does the startup code gain access to what I believe are private 
variables in myobject to initialize them properly?  What syntax would 
I use if I were to try to do this manually?  


Maybe I'm off with some of my assumptions on how ObjectiveC works.  
In any case I'd appreciate if someone could enlighten me.

Thanks,

-- eric


--------------------------------------------------------------
| Eric Fronberg    |  email: eric@steggie.mtview.ca.us       |
| Mountain View CA |        ...!{sun,sgi,ultra}!steggie!eric |
| 415 957-2748     |  vmail: "Hey you!"                      |
--------------------------------------------------------------



Newsgroups: comp.sys.next.programmer
From: ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson)
Subject: Formcell behaviour
Summary: FormCell behaviour
Organization: Monash University, Caulfield Campus
Date: Mon, 27 Jul 1992 13:22:31 GMT

The rtf says this.

FormCell

A mouse click event in an entry starts text editing in that entry.  A mouse click event outside the Form or a RETURN key event while editing an entry causes the action of the entry to be sent to the target of the entry if there is such an action; otherwise the action of the Form is sent to the target of the Form.

I have a form and one of the formCells connected to a validateField method. I have a number of buttons which are enabled only if the fields are valid.  When I type in the formcell (not pressing return) or click into another cell or even _OUTSIDE_ the form the action is not sent. WHY!!!!!.

When I press return the action is sent as it should be.

Am I missing something here?

-- 
Quote of the day

  "If Andrew Stone can do it, well Im certainly gonna give it a try"

Newsgroups: comp.sys.next.programmer
From: mcconnap@NeXTwork.Rose-Hulman.Edu (Andy McConnell)
Subject: NXRectFill - How to use this correctly?
Keywords: NXRect, NXRectFill, Color, NXColor
Organization: Rose-Hulman Institute of Technology
Date: Wed, 22 Jul 1992 16:11:51 GMT


I need some help in drawing the background of an NXRect.  I have these two  
lines in my code:

 	NXSetColor( GaugeDat.backColor );
	NXRectFill(&bounds);

GaugeDat.backColor is just an NXColor.  However, this little ditty does  
absolutely nothing that I can see, no matter how backColor is set.

Is there something I'm missing?

				- Andy McConnell
Newsgroups: comp.sys.next.programmer
From: avsoft!jeff (Jeff Roberts)
Subject: signals and the appkit
Keywords: sigvec, event loop
Organization: Oceania Health Care Systems
Date: Tue, 28 Jul 1992 23:05:08 GMT

We've been having a bit of difficulty with the interaction of the UNIX  
signal facilities and appkit based applications.  Any help would be  
greatly apprecatiated.

We are using sigvec to set a handler to catch SIGCHLD. (wait?(2) is no  
good as this application has other tasks to perform.)  Since the handler's  
stack is finite, we want to post an event to notify the application and  
that there is work to be done and get off the stack.  The handler is  
getting called ok but we can't seem to find a way to let the application  
know that it should re-run the event loop.  timer events, delayed  
performs, etc do nothing. If you take on too ambitious a task in the  
signal handler itself, like sending appkit objects messages, the  
application seems to get hung in the event loop and we get an infinite  
wait cursor.(This condition applies to sending the activateSelf: message  
to NXApp)  I'm not sure why.  My guess would be that we've over ran the  
signal handler stack frame???

Other facts:
1. By design, at the time the signal handler is called, this application  
has no screen realestate;  no icon miniwindow, no nothing.  All windows  
have been ordered out.

2. any events we post in the handler appear to be getting queued up.  if  
we leave a window exposed and mouse down on that window we get a flood of  
all of the queued up timer events, etc.

This sounds strange, and believe me it is.  I'm a pretty familiar with  
UNIX systems in general but i must admit i'm left without a clue on this.   
Any ideas?

J Roberts
jeff@oceania.com
From: gsk@world.std.com (Geoffrey S Knauth)
Newsgroups: comp.sys.next.programmer
Subject: Re: usleep and efficiency
Date: 30 Jul 92 10:14:14 GMT
Organization: The World Public Access UNIX, Brookline, MA

In article <2A778A16.26787@noiro.acs.uci.edu> rmyers@dec5200.acs.uci.edu (Richard Myers) writes:
>2. Is there an EASY way of finding out which way to code a line faster.
>eg. should I say if 'fabs(x) > 2' or '(x > 2.0) || (x < -2.0)'?  I'd like
>a faster way to test this than doing a full profile run!
>[BTW, the second way is faster].

The easiest way is to remember that fabs() is a function, not a macro,
and hence has more overhead than the second, more explicit expression.
-- 
Geoffrey S. Knauth, Marble Associates, Inc.                Member BCS-NeXT, LPF
gsk@marble.com, (617) 891-5555 work, (617) 547-5247 home   Standard Disclaimers
Newsgroups: comp.sys.next.programmer
From: hubt@umich.edu (Hubert Chen)
Subject: Re: lines, arcs, curves in RenderMan?
Organization: University of Michigan
Date: Tue, 28 Jul 1992 19:49:52 GMT

> RenderMan is a scene description language. 

Out of curiosity, I assume that Renderman files are 
transferrable between mac and next versions, right?

--
***** Hubert Chen :: hubt@umich.edu :: NeXTMail welcome *****
Maybe in order to understand mankind, we have to look at the word
itself: "Mankind". Basically, it's made up of two separate words -
"mank" and "ind". What do these words mean ? It's a mystery, and
that's why so is mankind.
 --Deep thoughts by Jack Handey
From: David.Basiji@f236.n104.z1.FIDONET.ORG (David Basiji)
Newsgroups: comp.sys.next.sysadmin
Subject: Re: TURNING OFF SCSI DEVICES AND REL 2.1
Date: 24 Jul 92 20:11:00 GMT
Organization: FidoNet node 1:104/236 - MacCircles, Genesee CO

--  
David Basiji - via ParaNet node 1:104/422
UUCP: !scicom!paranet!User_Name
INTERNET: David.Basiji@f236.n104.z1.FIDONET.ORG
From: root%net23@spectrx.saigon.com (Brian Policky)
Newsgroups: comp.sys.next.sysadmin
Subject: Images/People/Person.tiff
Date: Wed, 22 Jul 1992 05:49:30 GMT

How do you set up the mail system to display the proper person's picture  
from /LocalLibrary/Images/People/person.tiff? I understand how to set this  
up for a local user, but what about setting this up for someone from a  
different domain?

I am running NeXTStep 2.1 on an '040 cube.

Thanks!
--
coke%net23@spectrx.saigon.com  |  Life without
..szebra!spectrx!net23!coke    |  Coca-Cola
                               |  wouldn't be
NeXTMail now GLADLY accepted.  |  worth living.
From: anwar+@cs.cmu.edu (Anwar Mohammed)
Newsgroups: comp.sys.next.sysadmin
Subject: Networking Problem
Date: 23 Jul 92 05:27:41 GMT
Organization: School of Computer Science, Carnegie Mellon


I have the following problem getting a two station netinfo
network going:

This setup works for me:

1> Turn on netinfo and configuration server in the following 
network configuration:

        T----C----T
             |
             |
             N (netinfo server)
	     
        T:  50 ohm thin ethernet terminator
        C:  ethernet "T" connector
        N:  NeXT machine

2> I then rewire (with the n&c server still on) to get the following configuration
and power on the second machine:

        T----C--------------------------C----T
             |                          |
             |                          |
             N                          N

        T:  50 ohm thin ethernet terminator
        C:  ethernet "T" connector
        N:  NeXT machine



This works fine, but obviously, I shouldn't have to rewire the thing.

I should be able to use the following configuration, boot up the server,
then boot up the client:

        T----C--------------------------C----T
             |                          |
             |                          |
             N  (netinfo server)        N (netinfo client)

        T:  50 ohm thin ethernet terminator
        C:  ethernet "T" connector
        N:  NeXT machine

However, when I turn on the server, I get a "cannot find parent server" message.

Blecch.

thanks,
anwar

-- 
Anwar Mohammed                           Graduate Student
anwar+@cs.cmu.edu  (NeXTmail welcome)    School of Computer Science
Voice: +1 412 268 3043                   Carnegie-Mellon University
Fax:   +1 412 681 5739                   Pittsburgh, PA  15213-3890
Newsgroups: comp.sys.next.sysadmin
From: garyc@eecs.nwu.edu (Gary I. Chang)
Subject: Re: Rebuilting the INTERNAL HD with 3.0
Organization: EECS Department, Northwestern University, Evanston, Il., USA
Date: Thu, 30 Jul 1992 20:45:51 GMT

m@crito.Stanford.EDU (M Carling) writes:
> 
> I don't think so. I recommend that you boot from a floppy or from a  
> NetBoot server in order to do your low-level formatting. Then boot from  
> the CD-ROM and install 3.0.
> 
	I don't get it! What's the difference between booting from a floppy
and a CD-ROM? There's no point that you can NOT perform low-level format when
boot from a CD-ROM  other than from a Floppy...... To me , the CD-ROM is more
of a floppy drive reading those write-protected FDs with huge capacity.
Besides, what's the low-level format command and proper device name for the 
internal HD?

Thanks in advance. :-)

Gary

Newsgroups: comp.sys.next.sysadmin
From: tswan@trirex.com (Todd M. Swan)
Subject: Installing Kerberos
Reply-To: tswan@trirex.com
Organization: Trirex Systems Inc.
Date: Fri, 24 Jul 1992 18:51:27 GMT

I've been assigned the task of installing Kerberos on our NeXT's here.  If  
anyone has done this before I would appreciate any tips you could forward  
my way.  I've run into some pretty strange errors and I figure I should  
check here before I go tearing things apart... :-)

Todd
--
  "We're only immortal,   | Todd M. Swan
  for a limited time..."  | tswan@trirex.com
    -- Neil Peart,        | Trirex Systems, Inc.
    "Dreamline," Rush     | Westport, CT-New York, NY
From: simsong (Simson L. Garfinkel)
Newsgroups: comp.sys.next.sysadmin
Subject: Error in NeXTWORLD
Date: 31 Jul 92 17:52:21 GMT
Reply-To: simsong@next.cambridge.ma.us
Organization: NeXTWORLD Mazgazine

In the last issue of NeXTWORLD, there is a serious technical error on page 89.

In the article "Sysadmin Hints and Tips," by Daniel Miles Kehoe and Seth T.  
Ross, readers are instructed to put their machine into single user mode by  
pressing "both Command keys and the tilde (~) key simultaniously to get the NMI  
monitor."  The users are then instructed to type "monitor" to get the NeXT into  
ROM monitor.

This is wrong.  You should type "halt" to get the machine to do a clean  
shut-down.  

We're sorry for the missprint.

-simson
-- 

................................................................simson
Newsgroups: comp.sys.next.sysadmin
From: lemson@ux1.cso.uiuc.edu (David Lemson)
Subject: Re: A non-root user running UserManager?
Organization: University of Illinois at Urbana
Distribution: na
Date: Sat, 25 Jul 1992 15:56:01 GMT

gungner@cs.ucla.edu (David Gungner) writes:

>Does anybody know of a way to reconfigure UserManager so that a few
>non-root users (but they are in the group "wheel") can add new users?
>I want to grant a few maintenance people the ability to add new users
>without giving out the root password.

Couple ways to do it:
Theoretically, if you make UserManager mode 4750, and make its group
'wheel', then anyone in wheel can run it and it should think that
you are root (it's setuid).  I haven't tried this, though.  It's
possible that this won't work, though (as a security precaution
inside UserManager).

Another way to do it would be to whip up a little perl script that
takes userid, name, uid, password in from the user and then does a
call to nu -A that creates users from the command line.  The perl
script would have to be setuid.  That ought to work, too.
(I say do a Perl script because it's more secure than a shell
script - or put a C wrapper around a shell script and that would be
OK too)
-- 
David Lemson                                                 (217) 244-1205
University of Illinois NeXT Campus Consultant  / CCSO NeXT Lab System Admin
Internet : lemson@uiuc.edu                 UUCP :...!uiucuxc!uiucux1!lemson 
NeXTMail accepted                                   BITNET : LEMSON@UIUCVMD
From: hardy@golem.ps.uci.edu (Meinhard E. Mayer (Hardy))
Subject: Re: DOS Drive is Slow!!!!!#%$@#&^#@$
In-reply-to: sdavis@laforge.ksc.nasa.gov's message of Sun, 26 Jul 1992 17:22:29 GMT
Newsgroups: comp.sys.next.sysadmin
Organization: Department of Physics, UC Irvine, CA 92717-4575, USA
	<1992Jul26.172229.14177@dale.ksc.nasa.gov>
Date: 27 Jul 92 01:06:59 GMT

If it is any consolation to you: copying a 1.2 MB file to a DOS
formatted 1.44 MB diskette on a SONY MIPS portable took about as long
as copying from the DOS disk to the NeXT filesystem. 
--
Hardy 
-----
Meinhard E. Mayer,  Department of Physics, UC Irvine 
e-mail: hardy@golem.ps.uci.edu (preferred) or MMAYER@UCI.BITNET
From: jimc@tau-ceti.isc-br.com (Jim Cathey)
Newsgroups: comp.sys.next.sysadmin
Subject: Re: DOS Drive is Slow!!!!!#%$@#&^#@$
Date: 29 Jul 92 00:33:11 GMT
Organization: ISC - Bunker Ramo, Spokane, WA

In article <1992Jul28.050403.6348@trilithon.mpk.ca.us> henry@trilithon.mpk.ca.us (Henry McGilton) writes:
>Gosh -- I didn't mean to impugn the Apple ][.  What I meant was that
>Apple used a serial interface to the floppy drives way back in the
>dawn of time, and somehow managed to get as good -- you say even
>better -- performance than ``modern'' super high-speed-ten-VAX-
>equivalents-on-your-desk-workstations.

Untrue.  Apple never used a serial interface to the disk, except insofar
as almost _all_ disks are serial devices at some level (there's usually
only 1 magnetic gap in the head).  _Commodore_ had the bozo 9600 baud
serial interface to their C64 disk drives. 

-- 
+----------------+
! II      CCCCCC !  Jim Cathey
! II  SSSSCC     !  ISC-Bunker Ramo
! II      CC     !  TAF-C8;  Spokane, WA  99220
! IISSSS  CC     !  UUCP: uunet!isc-br!jimc (jimc@isc-br.isc-br.com)
! II      CCCCCC !  (509) 927-5757
+----------------+
			"PC's --- the junk bonds of the computer industry"
Newsgroups: comp.sys.next.sysadmin
From: m@crito.Stanford.EDU (M Carling)
Subject: Re: ROM versions
Organization: DSO, Stanford University
Date: Thu, 23 Jul 92 19:04:08 GMT

In article <1992Jul23.053058.79322@cs.cmu.edu> anwar+@cs.cmu.edu (Anwar  
Mohammed) writes:
> 
> I have two 'stations, one with ROM monitor version 2.1 v59, one with
> ROM monitor version 2.4 v.65.   Can I get the PROM updated in the old
> station?  How? How much $$?  Could this old PROM be wreaking havoc with 
> my network setup (see my previous post, the older 'station is acting as
> the netinfo server)?

NeXT's policy is not to sell the ROMs. If you would like NeXT to change  
thier policy, you should contact hardware marketing.

The only difference between those two ROM versions is that v65 supports  
some minor changes to the PC board design. Your older slab would not do  
anything differently were you to install a newer ROM--well, if you were to  
install a ROM version 3.0 or higher, it could boot directly from a CD-ROM.

I would be surprised if there were any bugs in the ROM code. It is not  
terribly complex, there are a finite number of things that it needs to  
support, and NeXT thoroughly tests all of these. NeXTSTEP is a different  
matter.

M Carling
Director, Bay Area NeXT Group
--
Bill Clinton lied to his wife. How can his country trust him?
George Bush lied to his country. How can his wife trust him?