HDTenEightyP/NetNews huggingface dataset:
From: alex@cs.umd.edu (Alex Blakemore)
Newsgroups: comp.sys.next.programmer
Subject: Re: isKindOf: and IsKindOfClassNamed: problems
Date: 28 Sep 92 15:34:39 GMT
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742

In article <1992Sep28.062357.11948@doberman.uucp> doberman!mike@esunix.sim.es.com writes:> 
>-   First, in 2.x the second method was called isKindOfGivenName: and
>    is now isKindOfClassNamed: in 3.0.  No warning or anything that I'm
>    aware of indicated this change, and there is no backwards compatibility.

this and the other name changes are described in the developer
release notes which are on line.  rationale is provided.

the behavior you found in gdb may make more sense after you
read those notes. 

-- 
---------------------------------------------------
Alex Blakemore alex@cs.umd.edu   NeXT mail accepted
Newsgroups: comp.sys.next.programmer
From: Neil Greene <deepthought!neil@ms.uky.edu>
Subject: Re: Oracle only works under 'root' ...
Reply-To: Neil Greene <deepthought!neil@ms.uky.edu>
Organization: ARCI, Inc.
Date: Tue, 6 Oct 1992 17:08:32 GMT

In article <1992Oct6.101636.21539@bernina.ethz.ch> flog@open.ch (Florian  
Gutzwiller) writes:
> I recently installed Oracle 6 under NeXTSTEP3.0. First of all the  
installation  
> software that handles the thousands of diskettes and messages with  
Installer  
> doesn't work anymore. That wasn't a problem, Installer alone did it as  
well.
> 
> But after running the installation script 'oracle.install' and checking  
that  
> all the processes were running, I can only access Oracle from DBModeler  
when  
> logged in as root. 'sqplus' never worked.

DBModeler is going to attempt to find tables owned by the current user  
login id unless you have done the appropriate dwrites to look for tables  
owned by "SYSTEM", "SYS" or any other user.

Have you created additional oracle accounts??  Can you access oracle  
through sqldba or sql*plus??  If so, what accounts are you accessing  
oracle through?

I do not know what tables DBModeler is going to try and read when logged  
in as root.  Have you created additional tables under Oracle accounts??
Newsgroups: comp.sys.next.programmer
From: bmehlman@trirex.com(Ben Mehlman)
Subject: Re: Amazing info on NeXTSTEP 486!!!!!
Reply-To: bmehlman@trirex.com
Organization: Trirex Systems Inc.
Distribution: usa
Date: Sat, 26 Sep 1992 01:11:46 GMT

In article <1992Sep21.163842.20054@dvorak.amd.com>  
rpomeroy@aunext3.amd.com (Ron Pomeroy x(Coop)) writes:

> In article <19guc4INNn3o@agate.berkeley.edu> izumi@mindseye.berkeley.edu  
(Izumi  
> Ohzawa) writes:
> >>
> >>I certainly will not pay $2495 for the develpment system for 486.
.
> >>
> >> 
> >>-- 
> >>Izumi Ohzawa             [ $BBg_78^=;(B ]
> >>USMail: University of California, 360 Minor Hall, Berkeley, CA 94720
> >>Telephone: (510) 642-6440             Fax:  (510) 642-3323
> >>Internet: izumi@pinoko.berkeley.edu   (NeXTmail OK)
> 
> OK lets do some math... :-)
> 
> 	Let's see...$3328.00 for the station (edu price w/os)
>     minus the os....$2495.00 
> 		--------------
> 		     $833.00
> 	
> WOW - I guess NeXT hardware IS cheaper than a 486 ;-) 8-) ;-}
> 
> --
> Ronald Pomeroy		[Objective-Cruntime: [Smalltalk runtime]];
> Advanced Micro Devices	[self dream-on];
> CAM Applications Group
> rpomeroy@aunext3.amd.com (NeXTmail preferred)

--

Hehe :)  
Re: The subject of hardware.  All PC's are not created equal!  When you  
buy a NeXT you're buying quite a nice hunk of hardware.  Sure, you can get  
a good 486 cheap, but if you really want a consistent and dependable box,  
you have to pay a bit more.  That goes for PCs, workstations, whatever...

Re: Software Pricing
Let's not count our chickens just yet.  IMHO the developer package will be  
available at a lower price through many channels.  In the PC market,  
nothing sells for list price...

At minimum I think NeXT will do something to give current developers a  
break.

Let's face it - NeXTStep is a seriously good piece of software, and a lot  
of (expensive) work went into it.

A year ago, when I was preparing my employers system to do PC development  
(in MS-DOS), it cost over $1000 for the compiler/debugger, video library,  
network API library, utilities, editor, etc.  Not including the cost of  
the file server software which we already had.  

Now if you want to develop software on a cheap system, you can pick up the  
Microsoft C Compiler (which BTW, I think is a pretty good compiler)  
bundled with the MS Windows SDK for a couple hundred bucks...

Or deal with the mishmosh of free unix stuff out there.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
    \|/        Ben Mehlman                      Indigo..
   ^   ^       Trirex Systems Inc      
   #   #       bmehlman@trirex.com                   Indigoing..
     @
   \___/       >NeXTMail Welcome<                           Indigone.
From: wjs@blorf.omnigroup.com (William Shipley)
Newsgroups: comp.sys.next.programmer
Subject: A: How to set up equivalents without .rhosts (was Re: ... Projectbuilder ...)
Date: 6 Oct 92 09:38:55 GMT
Article-I.D.: u.1992Oct6.093855.2103
Organization: University of Washington

andrew@cubetech.com writes
> If you have the same
> hame-directory everwhere, just list all of the machines you like to
> work on in your .rhosts file.

Although it's more of a security risk, I really like setting up my  
/etc/hosts.equiv file on all my machines to contain the names of all my other  
machines, and that way any user can rsh to his account on any computer in my  
subnet without any sort of setup.

For the security minded, it also means you can run a script every night  
deleting everyone's .rhosts file without pissing them off too badly.

-William Shipley
The Omni Group
DBKit consulting
From: rgc@wam.umd.edu (Ross Garrett Cutler)
Newsgroups: comp.sys.next.programmer
Subject: ctags(1) bug -- is their a public domain replacement?
Date: 28 Sep 92 00:14:04 GMT
Organization: University of Maryland at College Park
Originator: rgc@rac2.wam.umd.edu

ctags(1) has a bug: it doesn't reconize globals that are used as indexes.
For example:

---
int a;

main()
{
	char c[1];

	c[a] = 1;
}
---

The global a is not shown in the tags file to be used in main.
Is there a good PD replacement?  One that does the cross-referencing that
NeXT's ctags(1) does?  Thanks, Ross.

-- 
Ross Cutler
University of Maryland, College Park
Internet: rgc@wam.umd.edu
Newsgroups: comp.sys.next.programmer
From: moose@svcdudes.com
Subject: shared memory (was Re: mmap - System call in 3.0 still there ???)
Reply-To: moose@svcdudes.com
Organization: Software Ventures, Inc.
Date: Mon, 28 Sep 92 17:19:46 GMT

In article <dillon.0oba@overload.Berkeley.CA.US> dillon@overload.Berkeley.CA.US  
(Matthew Dillon) writes:
> In article <1992Sep19.120245.1274@gamelan> thf@zelator.in-berlin.de (Thomas  
Funke) writes:
> >
> >Hi you lucky 3.0-owners ...
> >
> 
>     The only way, apparently, to share WRITABLE pages under mach is through
>     forking children and the use of vm_inherit().  This, unfortunately, is
>     also useless for many purposes.
> 


If this were the case, then you would be unable to attach a process using gdb.   
If you look at vm_read and vm_write, you can see how to transfer pages at will.   
While it's not as great as 1 physical page being used by two different tasks,  
it is functionally equivelant.

--
Michael Rutman			|	moose@svcdudes.com
Cubist				|	makes me a NeXT programmer
Software Ventures		|	maker of MicroPhone Pro
#include <std.disclaimer>	|	really offensive political statement
From: yackd@utah.et.byu.edu (Don Yacktman)
Newsgroups: comp.sys.next.programmer
Subject: Re: The Appkit-Class *Form* does't take *setIntValue:at:* any more under 3.0
Date: 2 Oct 92 18:21:34 GMT
Article-I.D.: byu.l&#
Distribution: world
Organization: Brigham Young University, Provo UT USA


In article <1992Oct02.163647.20446@infko.uucp>, benz@infko.uni-koblenz.de (Hartmut Benz) writes:
>Hi you gurus out there!

I'm no guru, but I'll take a stab at this...

>I'm absolutely new to NeXT-programming so this question might be really  
>stupid, but ...
>I have a small application running under 2.1 with a Form inside a Window like
>		Field 1 [        ]
>		Field 2 [        ]
>I have a connection 'fields' to this form and used to set values like this:
>		[fileds setIntValue:someValue at:1];
>and everything worked fine until THE UPRGRADE TO 3.0!
>After that (and the rebuilding of the application of course) nothing happens  
>with this fields. Also the documentation on Form tells me not to use this  
>method on it?
>
>Two Questions:
>1.	How do I do it?

I always use tags...

	[[someMatrix cellWithTag:xxx] setIntValue:yyy];
                     ^^^^^--I might not have the method name quite
				right, since I haven't done this for
				a while, but you get the idea.

The tags may be a bit slower, but it has one advantage that I really
like:  the tag numbers can be #defines, and once I tag the cells,
they can be in any order, so I can shuffle around the fields nice
and easy in IB _without_ haveing to recompile.  All I have to do is
change the tag in the .nib file.  The tags always seemed a better way
to go, to me at least.  It's flexible and doesn't hard code to location
in the matrix, which I feel is useful.  (Of course, IB's default lays
out the tags predictably, you you can still code to position if
you don't muck with the tags.)

>2.	Why has this been changed?

I don't know.
From: fermat@fermat.dartmouth.edu (Michael Glenn)
Newsgroups: comp.sys.next.programmer
Subject: unistd.h?
Date: 3 Oct 92 22:02:39 GMT
Organization: Dartmouth College, Hanover, NH


I remember this being asked before, but I don't remember the reply.  Where  
is the unistd.h file, and/or what substitude file should I use when this  
is asked for?  On several occasions I've tried to compile some standard  
distribution of some program, and it failed to compile because it can't  
find unistd.h.  I've checked on other machines, and they all seem to have  
this file.  Why doesn't the NeXT, and what should I do to fix?

fermat@dartmouth.edu (NeXTmail welcome)
From: mikem@afs.com (Mike Matlack)
Newsgroups: comp.sys.next.programmer
Subject: Re: rtf to ASCII filter...replies
Date: 30 Sep 92 12:20:16 GMT
Article-I.D.: afs.1992Sep30.122016.298

rtf-ascii can be found in 
	/usr/bin/rtf-ascii in NeXTSTEP 3.0 
	/usr/lib/indexing/rtf-ascii in NeXTSTEP 2.0

In addition, someone sent me a simple lex grammar for rtf if anyone is  
interested.

I'm still interested in hearing if anyone has used rtf in their code  
(including rtf documentation inline) and then used rtf-ascii as part of  
the make process.  The problem we are facing is the importing of .h files,  
which if rtf, will cause minor:-) problems...unless, of course, 2 files  
are kept for each source file, e.g. a .h and a .h.rtf...but then one runs  
the possibility of developers editing the wrong file.

Thanks!

mikem
--
Michael J. Matlack
Anderson Financial Systems
mikem@afs.com (NeXTmail is OK)
Newsgroups: comp.sys.next.programmer
From: ale!jeremy (Jeremy Slade)
Subject: Activating another app
Reply-To: jeremy@liveware.com
Organization: Liveware Corporation   Fort Collins, CO.  USA.
Date: Tue, 29 Sep 1992 05:51:29 GMT


Given a PostScript context number of another app, stored when my App  
receives a kit-defined application-activate event, how do I obtain a port  
for the other app so I can send it messages though the Speaker/Listener?   
I want to send this other application an -unhide message when my app is  
done doing its thing.

Please respond to me personally.

Thanks,
Jeremy Slade
jeremy@liveware.com
From: dillon@overload.Berkeley.CA.US (Matthew Dillon)
Newsgroups: comp.sys.next.programmer
Subject: MMAP Works (was Re:  mmap - System call in 3.0 still there ???)
Distribution: world
Date: 26 Sep 92 12:23:33 PST
Organization: Not an Organization

>In article <1992Sep25.115239.12000@odi.com> benson@odi.com (Benson I. Margulies) writes:
>
>mmap works.
>
>But the rules are different.
>
>First, call vm_allocate to make the space.
>
>Then, call mmap, passing in the address you got.
>
>Don't expect to get the address back from mmap. MAP_FIXED is, of
>course, implied.
>
>--
>Benson I. Margulies

    Thank you sir!

    mmap() does indeed work when you use vm_allocate() ... and you can
    indeed share WRITABLE pages across unrelated processes.

    NeXT -- For Gods sake, DOCUMENT IT!

    Here's my test program...

					-Matt

/*
 *  MMAP()
 *
 *
 *  Create a junk file greater then 8K, bring up two shells and run
 *  this program in each one as follows:
 *
 *  % mmap junk_file
 *
 *  % mmap junk_file xxx
 *
 *  note that you can't simply use file descriptor 0 and redirect because
 *  the descriptor is open read-only.
 */

#include <sys/types.h>
#include <sys/mman.h>
#include <mach/mach.h>
#include <fcntl.h>

main(ac, av)
int ac;
char *av[];
{
    void *addr;
    long r;
    int fd;

    fd = open(av[1], O_RDWR);
    if (fd < 0)
	perror("open");

    if (vm_allocate(task_self(),(vm_address_t *)&addr,8192,TRUE)!=KERN_SUCCESS)
	perror("vm_alloc");
    printf("addr %08lx\n", addr);

    r = mmap(addr, 8192, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
    printf("r= %d\n", r);

    if (ac == 2) {
	for (;;) {
	    sleep(1);
	    printf("%d\n", *(volatile char *)addr);
	}
    } else {
	for (;;) {
	    sleep(1);
	    printf("write\n");
	    ++*(volatile char *)addr;
	}
    }
}



--

    Matthew Dillon		dillon@Overload.Berkeley.CA.US
    1005 Apollo Way		uunet.uu.net!overload!dillon
    Incline Village, NV. 89451	ham: KC6LVW (no mail drop)
    USA 			Sandel-Avery Engineering (702)831-8000

Newsgroups: comp.sys.next.programmer
From: julie@next.com (Julie Zelenski)
Newsgroups: comp.sys.next.programmer
Subject: Developer Support "core dump":  Developer bugs
Date: 29 Sep 92 19:25:18 GMT
Reply-To: julie@next.com


Starting with two oft-reported bugs that you might run across:

#14996:  This is verification that tmpnam(), contrary to its charter to  
produce a unique file name, returns the same filename each time it's  
called.  I recommend using mktemp() or NXTempFilename().

#25247:  A late-breaking bug specific to Release3.0 - The IB palette  
Makefile doesn't pay attention to OTHER_LIBS so you can't link a library  
into a palette. As a workaround, you can add your library to OTHER_OFILES. 

#6196: For historical and entertainment purposes, a bit of ancient history  
from Release 1.0, but a true classic.  I had this friend who liked to tear  
off his "Windows" menu in Edit.  (it was called "Activate" back then,  
remember back that far?)  Sometimes in the process of opening and closing  
windows, his Windows menu would grow upward in such a way that the title  
bar was completely off the screen.  You couldn't move the menu or close  
it, you had to quit and restart Edit to get that menu back.  He called me  
up and told me this and I tried unsuccessfully to reproduce it.   He then  
sent me a screen shot of his orphaned Windows menu, trying to convince me  
he wasn't imagining things.  I tore off my Windows menu and left it out  
for a week and no matter how many windows I opened and closed, my menu  
always grew downward and never off the screen.  The bug got filed anyway  
and the famous and talented Ali Ozer tracked down.  There are two menu  
items ("New" and "Open") which add an item to the Windows menu and cause  
it to grow.  You can get to these menu items in two ways: click-dragging  
in one motion through the File menu or click-clicking to get the File menu  
up and then selecting.  When you click-click, the menu always grew down  
like it should.  When you click-drag, the menu grew upward and off the  
screen.  Once you know the secret, it's infinitely reproducible.  And also  
fixable, as was done for the 2.0 release.

Julie Zelenski		julie@next.com
Developer Support
Newsgroups: comp.sys.next.programmer
From: andrew@cubetech.com
Subject: Re: Ports and the net name server
Organization: Cube Technologies, Inc.
Date: Sun, 4 Oct 1992 20:54:37 GMT

In article <1ai1udINNl94@news.aero.org> strauss@Aero.org (Daryll Strauss) writes:
>I've got a few questions about mach/next ports and their interactions
>with the netname server, that I'm hoping someone out there in netland
>can help me with. I want to make sure I'm not missing something obvious.
>
>First, is there a way to store "persistent" information about a port
>other than through the net name server? For example, I have an
>application that wants to set up a private port and pass that along to
>other applications (probably via the other applications publicly
>registered port) Is there some set of information that it can pass to a
>second application so that the second application can write the
>information to disk, exit, be restarted some time later, reread the
>information off the disk and establish a connection to that private
>port? I get the impression that the answer is no. Ports and access
>rights are stored in the kernel and when the application quits they are
>gone forever. Is that correct?
>
>Second, is there a way to ask the net name server for all the registered
>ports that it knows about? Again, I think the answer is no. You have to
>know the port you are asking for in advance. This provides a potential
>solution to my first question. If my private port is registered with the
>net name server with a randomly generated name, then it can pass that
>randomly generated name to the other applications and they can use that
>to reestablish the connection. That all works if I can be sure that
>someone can't query the net name server and find my random name.
>
>Finally, is there is a way to request all the ports on the local net
>that match a certain name? Using the "*" parameter to one of the net
>name lookup routines will give me one port (the first to answer the
>broadcast request I would guess) Is there a form that gives me all the
>ports that answer? If not, why not? Are the broadcasts unreliable? Is
>there a better way?

I think what you are trying to do is setup a port that can only be
used by 'authorized' apps.  I would just make the port public, but use
some sort of higher level authentication on top of it.  So the first
message on the port by an app would include a credentials structure
which you would check along with it's task_self() (or thread_self()).
Then you would associate each app with it's task port.  So when the
app sends subsequent messages, it only needs to include it's task port
and won't have to be authenticated again.


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
Newsgroups: comp.sys.next.programmer
From: jgg@proforma.com (J. G. Gregory)
Subject: Using mousemoved events vs. GDB
Keywords: gdb event
Organization: Pro Forma
Date: Sat, 26 Sep 1992 16:09:41 GMT

I'm having a problem turning off mousemoved events while my application is  
stopped in GDB.  Any help or suggestions would be greatly appreciated.

My application has a mode that turns on mousemoved events (and it's on most of  
the time).  Unfortunately, the application is not yet bug-free, and so  
occasionally crashes into the debugger while in this mode.

Now after moving the mouse for a little while,  I start getting zillions of  
messages like the following in the Console window.  Since the system is  
spending so much time generating the messages, it's hard to do much debugging.

Sep 14 11:22:37 proforma WindowServer[150]: Event discarded: window 39: 5 @  
(1.090716e+15,1.660258e-308), 0.

I can understand that the events aren't being processed, and so the event queue  
fills up.  What's puzzling is that calling the following method from within GDB  
doesn't turn them off:

- gdb
{
   [window removeFromEventMask:NX_MOUSEMOVEDMASK];
   // Desperation move
   DPSDiscardEvents(DPSGetCurrentContext(), NX_ALLEVENTS);
   return self;
}

Executing this method does change the window's event mask, but it doesn't seem  
to stop the events from being generated.  This same code (without discarding  
the events) executed while the app is actually running will stop the mousemoved  
events.

Thanks in advance,
--J Gregory
Newsgroups: comp.sys.next.programmer
From: gary@batslab.ucs.ualberta.ca (Gary Ritchie)
Subject: DBBasicAdaptor
Organization: University Of Alberta, Edmonton Canada
Date: Sun, 27 Sep 1992 18:23:49 GMT

Where is the interface file for the DBBasicAdaptor class?  This is needed  
(as far as I can tell) to build custom DBKit adaptors, but doesn't appear  
to be included with the 3.0 release.

Gary Ritchie
gary@niagara.ucs.ualberta.ca
Newsgroups: comp.sys.next.programmer
From: C579819@mizzou1.missouri.edu
Subject: Help needed on Zilla.app (Distributed processing)
Organization: University of Missouri
Date: Thu, 01 Oct 92 20:45:48 CDT

Does anyone on the group or net know something about Zilla.app? I
would like to do some distributed programming and would like some
information on using Zilla. I would appreciate if you could email
me to my personal account if possible as I have little access to
the newsgroup. Any information would be appreciated. Thanks
Kevin Yoon
c579819@mizzou1.missouri.edu
"GO TIGERS!!!!!"
 
Newsgroups: comp.sys.next.programmer
From: cpf@broca.med.virginia.edu(Chris Fall)
Subject: NextDeveloper Books?
Organization: University of Virginia
Date: Tue, 6 Oct 1992 19:26:49 GMT

I've heard that there are several good books out htere about the  
NextDeveloper/nextStep programming envronment. Does anyone know the  
titles/authors?

Chris Fall
cpf@broca.med.virginia.edu
Newsgroups: comp.sys.next.programmer
From: chaneysa@nextnet.csus.edu (Stephen A Chaney)
Subject: Fido - help!
Organization: California State University Sacramento
Distribution: world 
Date: Tue, 29 Sep 1992 00:33:07 GMT


I have imported FIDO (the monitor program that tells you when someone
logs on) onto my NeXTnet account. It is from some Volume 25 directory. 

However, when I run it, I get a:

--------------------------------------------------------------------------------
fido: bad line in /Users/chaneysa/.fido: (user address)
Mon Sep 28 17:30 <<<<<<<<< uts386 is down (22w4d4h33m)
--------------------------------------------------------------------------------

I have created a .fido file like it asked, yet it continues to give me
this error. 

Does anyone know how to fix it? 


=============================================================================
 If you want to find a culprit for your data troubles, it's overpopulation!
                             Time to colonize!
=============================================================================
BBBBBB     OOOOOOOO   SSSSSSS   SSSSSSS    Founder: Steve Chaney 
B    B     O      O   S         S          <chaneysa@nextnet.ccs.csus.edu> 
BBBBBBBB   O     OO   SSSSSSS   SSSSSSS    
BB     B   O     OO        SS        SS    Borg Operating 
BBBBBBBB O OOOOOOOO O SSSSSSS O SSSSSSS O  Space Systems, Revision 2.0 
	       The B.O.S.S. does not speak for CSUS. 
Newsgroups: comp.sys.next.programmer