HDTenEightyP/NetNews huggingface dataset:
From: michael@stb.info.com (Michael Gersten)
Subject: Re: The trouble with pointers.
Organization: STB BBS, La, Ca, 310 397 3137
Distribution: usa
Date: Sun, 27 Dec 1992 16:39:14 GMT

In article <1992Oct29.053402.9555@noao.edu> dkoski@noao.edu (David Koski) writes:
>Actually the best language ever made is BASIC.  It has no pointers, no
>unions, no structures, no var names larger than 2 chars, etc (this is
>referring to MS BASIC on my old trs-80 coco).  To top it all off, in
>extended basic, you actually had a line editor available!
>
>For you lisp fans who say that you don't have these fine features either,
>well, in BASIC, you can't have recursive funtions!  Top that!
>
>David Koski

Hey, I've done recursive programming in Basic (MS version 4? Trs-80 model 1)
All it takes is manually managing an array as a storage stack.

		Michael
(Besides, it lets you use more than two letters for a name, although
only the first two count. And, since it was interpreted, a given "next"
statement could match any "for" statement, depending on which goto you
took first! Great Fun!)
-- 
	Michael Gersten		michael@stb.info.com
NeXT Registered Developer (NeRD) # 3860 -- Hire me! Quick!
Will program computers for food (and net connection, health benefits, cash,...)
From: alex@laos (Alex D. Nghiem)
Newsgroups: comp.sys.next.programmer
Subject: setting a custom icon for custom documents
Date: 21 Dec 92 21:57:05 GMT
Reply-To: alex@pencom.com
Organization: Pencom Software

Hello there:

I finally figured out what the problem was when I tried to set a custom  
document icon for my application.  To recap: I created an application and a  
custom icon for its documents.  I then installed my application in ~/Apps.   
However, if I place my application on the dock, then the Worksspace would  
recognize my application as the one which created these documents. If I removed  
my application from the dock, then the Workspace would use Edit instead.  Many  
people responded that I should update the File Viewer after creating the  
document -- this may not, but that wasn't the problem here.

This happened because of the LaunchPaths and an AppilcationPaths defaults  
(owned by Workspace) did not include my home directory (which is where I  
installed my application).  By removing these two defaults from my defaults  
database, the Workspace looked for my application in the default directory,  
which is ~/Apps.


Best regards,


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 *
                           ****************************


Begin forwarded message:

Date: Wed, 16 Dec 92 16:35:04 -0800
To: alex@pencom.com
From: isbell@cats.ucsc.edu (Art Isbell)
Subject: Re: setting custom icons for custom documents

Alex,
   Well, you seem to have done everything I do.
   Just to clarify, when you say you dragged the document icon into IB, you do
mean that you dragged it into the "Document Icons and Extensions" ScrollView
and you did type the proper file extension (with no period) below the icon,
right?
   My Workspace has no ApplicationPaths defaults variable and Eric Scott's gdb
script that extracts defaults variables from NeXTSTEP apps doesn't report that
Workspace responds to such a variable, so I don't know what that means.  Have
you tried removing ApplicationPaths altogether?
   On an unrelated topic, I just spent about an hour trying to figure out why
Terminal didn't appear to be opening a new shell Window when I was logged in as
myself (worked fine as root).  I had previously experienced an involuntary
logout due to a Workspace error (probably due to a NetInfo problem), and the
Terminal's WinX value became -476!  Had I selected Terminal's Windows menu, I
would have probably realized what had happened.  I have had similar off-screen
coordinates written to the defaults database when apps close due to some sort
of error, so file that one away for the future when you "lose" a Window.

Art
From: arzt@dccs.upenn.edu (Noam H. Arzt)
Newsgroups: comp.sys.next.programmer
Subject: Re: DBKit adaptors and Ingres
Date: 23 Dec 92 19:30:30 GMT
Distribution: usa

In article <1992Dec23.163534.24645@advtech.uswest.com> hern@barclay (Steve  
Herndon) writes:
> Does anyone know of suppliers of DBkit adaptors for the 4th Dimension DB  
> on the Mac, and Ingres DB?
> 
> Thanks.
> 

Rathe has created an Ingres adaptor to be used in conjuction with their  
middleware product that sits in front of the Ingres engine on the database  
machine. Contact Greg Noel at 612/225-1401 or rathe!gn@cs.umn.edu.

--
Mr. Noam Arzt                            215/898-3029 (voice)
Director, Special Projects               215/898-9348 (FAX)
University of Pennsylvania               arzt@dccs.upenn.edu
Data Communications & Computing Services (NeXTmail is OK)
Suite 221A, 3401 Walnut Street, Philadelphia, PA 19104
From: nwc@blackbox.cc.columbia.edu (Nick Christopher)
Newsgroups: comp.sys.next.programmer
Subject: Re: Object Standards
Date: 29 Dec 92 21:26:18 GMT
Organization: Columbia University

Please note the address on the post above is screwy use: nwc@ny.shl.com

__
\n
Nicholas Christopher
Systemhouse
nwc@ny.shl.com
Newsgroups: comp.sys.next.programmer
From: iwelch@agsm.ucla.edu (Ivo Welch)
Subject: Re: Problems using gcc 2.3.3
Organization: UCLA, Anderson Graduate School Of Management
Date: 1 Jan 93 11:03:08 PST

And, let's not forget that  some of us need to  debug programs, too. But  NeXT
gdb does not work with gcc 2.x.x, and NeXT  has not forwarded its  own changes
to gdb to   the FSF in their  standard  format; therefore, the  FSF's new  gdb
version does not compile on NeXTs.

So: either you can use NeXT's historic version of gcc with non-ANSI C++ syntax
and no libg++, or  you can use  FSF version of   gcc without  NeXT Objective-C
extensions and without a functional gdb.

A pathetic state of affairs.

/ivo welch


Newsgroups: comp.sys.next.programmer
From: greg@afs.com (Gregory H. Anderson)
Subject: Re: Custom Palette for FormCell?
Reply-To: greg@afs.com
Date: Mon, 21 Dec 1992 18:55:16 GMT

In article <1go48kINNre8@iskut.ucs.ubc.ca> paterson@gdss.commerce.ubc.ca  
(Toby Paterson) writes:
> In article <1992Dec16.190747.23282@ornl.gov> woo@ornl.gov (John W.  
Wooten)  
> writes:
> > How do I create a custom palette for a subclass of TeXT or of Form  
> > Cell?
> > 
> Text and FormCell are both subclasses of View.  Just follow the  
           ^^^^^^^^
> instructions for creating a CustomView palette.
> 

Incorrect. FormCell is a subclass of Cell. If you make a custom Cell  
class, you also have to make a custom View object to contain it. Then you  
set the +cellClass of the View class to be your cell. Actually, this is  
not bad general advice, because most of the interesting stuff happens  
inside Cells anyway. By pushing most intelligence there, you can drag out  
incredibly smart Matrices with clever Cells inside.

--
Gregory H. Anderson          | Thus spake the master programmer: 
Master Programmer / Manager  | "Let the programmers be many and  
Anderson Financial Systems   | the managers few; then all will be 
greg@afs.com  (Nextmail OK)  | productive." -- Tao of Programming
Newsgroups: comp.sys.next.programmer
From: nwc (Nick Christopher)
Subject: Object Standards
Reply-To: nwc@ny.shl.com
Organization: SHL Systemhouse. New York, NY, USA
Date: Tue, 29 Dec 1992 20:12:36 GMT


I am interested in this groups ideas about Object development standards. 

I am working in a group mandated to come up with a set of standards for the  
development of Objects. Our goal is to come up with guidelines in areas such  
as:

		Naming Conventions 
			name spaces
			classes
			methods
			instances
			functions
			etc.
		Design
		Coding Standards
			style
			non-use of globals
			etc.
		Documentation
			The H file as a document
			inline documentation
			etc.
		Robustness
			debug-ability, assert.h etc.
			exception handling
		Portability
		Postscript
			wraps and naming
			optimizing
			
The guidelines we come up with will be used for our own object certification  
program (i.e. acceptance of objects written by distributed developers) but will  
also be published and discussed in open forums such as this news group. 

I am interested in any comments readers of this group might have on these  
topics as well as references to relevant published materials.

I am open to discussions here, or by email and will publish my groups results  
as they become useful.
-- 
\n
Nicholas Christopher
Systemhouse
nwc@ny.shl.com
Newsgroups: comp.sys.next.programmer
From: irving@Happy-Man.com (Irving_Wolfe)
Subject: Re: Request: info on learning NeXTStep
Reply-To: Irving_Wolfe@Happy-Man.com
Organization: Happy Man Corp., Vashon Island, WA 98070-7399
Date: Wed, 23 Dec 1992 07:32:06 GMT

In <1h62lvINNcaf@darkstar.UCSC.EDU> isbell@cats.ucsc.edu (Art Isbell) writes:

>The only book that covers some of the the latest NeXTSTEP version, 3.0, is
>NeXTSTEP Programming, Step One:... by Garfinkle and Mahoney (ISBN
>0-387-97884-4).

>However, I was told that it is just being published so may not be available in
>bookstores yet.  

Supposedly, our first order for 45 copies is about to arrive.  Our
second order, however, will not ship until after New Year's Day
because the publisher's actual operations are closed for Christmas.

If anyone hasn't ordered his copy yet, we're still accepting e-mail 
orders with credit card and shipping info.  Our (roughly 6%) 
discounted Usenet price is $40 including U.S. shipping.  (Foreign 
orders are at $50.)  

The Addison-Wesley NeXTSTEP Developer's Library is also still 
available, with a 15% discount and free shipping.  
-- 
 Irving_Wolfe@Happy-Man.com      Happy Man Corp.  206/463-9399 x101
 4410 SW Pt. Robinson Rd., Vashon Island, WA  98070-7399   fax x108
 We publish SOLID VALUE for the intelligent investor.   NextMail OK
Info free; sample $20.  Send POSTAL addrs: Solid-Value@Happy-Man.com
From: bungi@stein.u.washington.edu (Timothy J. Wood)
Newsgroups: comp.sys.next.programmer
Subject: Re: dbkit and sybase server connections
Date: 28 Dec 1992 23:13:58 GMT
Organization: University of Washington
NNTP-Posting-Host: stein.u.washington.edu

estrin!kswanson (Kevin Swanson) writes:

>I'm working on an application that uses dbkit along with sybase.
>I've come across the problem that my application makes two and sometimes
>three connections to the sybase server, when it really should only need
>a single connection.

>Has anyone who has worked with dbkit experienced any problems like this?

  Yes, actually.  The problem is that DBBinder defaults to use non-shared
context (this is where the connection is stored) when you really want it to
share the context.  You can set the context sharing with 

  [aBinder setSharesContext: flag];

  What I did to get around this problem was to impelement a subclass of
DBBinder called SharedBinder that goes something like:

#import <dbkit/dbkit.h>

@interface SharedBinder : DBBinder
{
}
- init;
- setSharesContext: (BOOL) flag
@end

@implementation SharedBinder
- init
{
  return [[super init] setSharesContext: YES];
}

- setSharesContext: (BOOL) flag
{
  return [super setSharesContext: YES];
}
@end

   To get this to effect the binders that DBKit sets up for you, you will
have to do a:

   [SharedBinder poseAs: [DBBinder class]];

  before they are allocated.  The best place is probably in you *_main.m
file or in your appWillInit: method. 
   
   You will want to note that sharing context with other DBBinders disables
flushing.  I haven't experienced any problems with this, but depending upon
what you are doing, you might.

>thanks,
>kevin


>kswanson@rdr.com


Timothy J. Wood
The Omni Group
DBKit Consulting
Newsgroups: comp.sys.next.programmer
From: gary@nshade.uah.ualberta.ca (Gary Ritchie)
Subject: Re: How to open a connection without PublicWindowServer set?
Organization: University Of Alberta, Edmonton Canada
Date: Tue, 22 Dec 1992 22:08:07 GMT

> 
> Now, how can I get around this?  I want to write a one of
> the aforementioned special system processes that can write
> to the Workspace without Public Window Server being set but
> have no idea what the Workspace is looking for...
> 

I have found one way to do this.  It's not particularly elegant, but it  
works, and it allows each user to enable/disable the feature.  I mention  
using Speaker/Listener because I know it works under these circumstances,  
but Distributed Objects would probably be the best way to go.

First, write a Workspace daemon that has a known public Listener.  To do  
this, you will need the publicCheckInAs: method documented in the latest  
NeXTanswers, otherwise you cannot create a public Listener without turning  
on Public Window Server.

Workspace daemons are non NeXTSTEP programs with a .daemon extension that  
are launched by the WS at login time.  You use the LaunchPaths default to  
get this to happen.  The most elegant way is to have the daemon install  
the default the first time it is run.

Anyway, the user logs in, and the daemon is run as a user process.  Now,  
you write a command-line utility that looks for the known Listener port,  
and sends it a predetermined message (ie. displayMessage:(char *)msg.  The  
daemon pops up a panel, and the job is done.

The only problems I can think of are that (1) each user must install the  
daemon and (2) this won't display a panel on the login screen.  Still, I  
think it would be a handy way to broadcast a message to logged-on users.

Hmm. It's the last day before my XMas holiday, I'm bored, and I realize  
that my answer is a bit obscure.  I'll see if I can get this working in  
the next couple of hours and post it on an archive site.  No promises :-)

---

Gary Ritchie
gary@nshade.uah.ualberta.ca
NightShade Software
From: dillon@overload.Berkeley.CA.US (Matthew Dillon)
Newsgroups: comp.sys.next.programmer
Subject: Re:  Using the serial # in ROM as a copy protection mechanism...?
Distribution: world
Date: 22 Dec 92 21:04:10 PST
Organization: Not an Organization

In article <1992Dec19.122423.632@uunet!cbmvax!xmws!kripalu> harit@kripalu.com writes:
>In article <1992Dec17.230932.16643@jarvis.csri.toronto.edu>
>
>alone machines copying the software: as an administrator I would prefer some
>kind of plug in key off the serial port to being tied to a motherboard serial
>number.
>
>That is my two cents.

    AARRRGRG!! :-)  No serial or parallel port dongles!  They are a mess...
    a huge mess.  I have to deal with them on our IBM's and, frankly, it is
    WORSE then machine-id keys.

					-Matt

--

    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: gmecchia@toimpossible.Princeton.EDU ()
Subject: setting stringValue of several columns in a matrix
Originator: news@nimaster
Organization: Princeton University
Date: Mon, 21 Dec 1992 16:42:37 GMT


hi,

I am experiencing poor performance in setting string values to textfields in a matrix.

With a 6x20 matrix of TextField instances, and calling the method clearMatrices (below), the task of clearing the textfield is noticeably SLOW.  Is there room for improvement?

- clearMatrices
{
	int i;

	for (i = 0; i < ROWS_PER_PAGE; i++)		// ROWS_PER_PAGE = 20
	{
		// dateMatrix built using IB

		[[dateMatrix cellAt: i: 0] setStringValueNoCopy: ""];
		[[dateMatrix cellAt: i: 1] setStringValueNoCopy: ""];
		[[dateMatrix cellAt: i: 2] setStringValueNoCopy: ""];
		[[dateMatrix cellAt: i: 3] setStringValueNoCopy: ""];
		[[dateMatrix cellAt: i: 4] setStringValueNoCopy: ""];
		[[dateMatrix cellAt: i: 5] setStringValueNoCopy: ""];
	}
	return self;
}

Alexis Rzewski
gmecchia@phoenix.princeton.edu
rzewski@northstar.com
From: aozer@next.com (Ali Ozer)
Newsgroups: comp.sys.next.programmer
Subject: Re: locking focus
Keywords: lockfocus, flushWindow
Date: 2 Jan 93 20:25:57 GMT
Organization: Next Computer, Inc.

In article <78766@hydra.gatech.EDU> Ray Spalding writes:
>Or, you could do something like the following:
>	BOOL isfv = [self isFocusView];
>	if (!isfv) [self lockFocus];
>	// drawing code goes here
>	if (!isfv) {
>		[self unlockFocus];
>		[[self window] flushWindow];
>	}

It's more efficient to do the flushWindow before you unlockFocus;
otherwise flushWindow has to temporarily focus on the window containing 
the view. Of course there isn't a noticable hit unless you are doing this
in a time critical situation.

Ali, Ali_Ozer@NeXT.com
From: cc100aa@xray.gatech.edu (Ray Spalding)
Newsgroups: comp.sys.next.programmer
Subject: Re: locking focus
Keywords: view, lockfocus, pswrap
Date: 23 Dec 92 17:40:40 GMT
Organization: Georgia Institute of Technology

In article <1992Dec23.162156.1556@netcom.com> vin@netcom.com (Vin Locke) writes:
>I have a another method that draws to the view that I want to call from 
>a menu, also a pswrap-ped function.  However, when I execute this from the
>menu, the graphics are drawn in the menu itself!  yuck-o!  

You could have the method that is the target of your menu item do a
[self display], assuming the method is in your View and that your
View does the right thing in drawSelf::.  ("display" takes care of
focusing for you.)

Or, you could do something like the following:
	BOOL isfv = [self isFocusView];
	if (!isfv) [self lockFocus];
	// drawing code goes here
	if (!isfv) {
		[self unlockFocus];
		[[self window] flushWindow];
	}
-- 
Ray Spalding, Office of Information Technology
Georgia Institute of Technology, Atlanta Georgia, 30332-0715
Internet: ray.spalding@oit.gatech.edu (NeXT Mail accepted)
Newsgroups: comp.sys.next.programmer,comp.graphics,alt.cd-rom,comp.sys.next.misc
From: rlp@lanl.gov (Dick Phillips)
Subject: Photo CD viewer for NeXT (needs 3.0)
Keywords: Kodak, Photo CD
Organization: Los Alamos National Lab
Date: Mon, 21 Dec 1992 15:49:54 GMT

pCD, a Photo CD viewer, has been submitted to sonata.cc.purdue.edu.
It's in /pub/next/submissions. An excerpt from pCD.README says,

Thanks to Hadmut Danisch of the University of Karlsruhe, who deciphered Kodak's 
Photo CD file format by reverse engineering, I have been able to put together a 
Photo CD viewer for the NeXT.  The app ain't perfect and there still lurks a 
bug or two, but I wanted get it out to beat the Christmas rush.  In addition to
my source code for the user interface, I have included Hadmut's original 
software, hpcdtoppm (v0.3).

Dick Phillips
rlp@lanl.gov

P.S.  Be sure to take the file pCD.tar.Z.TAKEME.  It's got a few improvements
over pCD.tar.Z.   Also, for the Photo CD-disadvantaged, there's a pseudo CD
in photo_cd.tar.Z.  It has a single image.
From: fermat@fermat.dartmouth.edu (Michael Glenn)
Newsgroups: comp.sys.next.programmer
Subject: Re: A few small changes for 3.1 (Edit and gdb)
Date: 25 Dec 92 20:07:29 GMT
Organization: Dartmouth College, Hanover, NH


>  One addition that should be both easy to make and quite
>  useful is to follow the example set by the Stuart terminal
>  emulator by adding an "extent" option to the print pannel.
>  This allows one to print: all, selection, visible.  I
>  have found this to be extremely useful.

Not to detract from "Stuart"s cleverness, but the Terminal.app does this  
as well.

Michael
Newsgroups: comp.sys.next.programmer
Subject: NextMail on MS-DOS
From: afavela@eis.calstate.edu (Alonso Favela)
Date: Sun, 3 Jan 1993 23:39:28 GMT
Organization: Calif State Univ/Electronic Information Services

	Is the NextMail format documented?  I so, is there an FTP site
where I could get the file(s).  I am attempting to write in a program for
Novell network that will allow reading and sending NextMail on IBMs under
MS-DOS.
	I am not too familiar with NextMail, is it only voice & text, or
does it also include graphics?  Is the mail sent in uuencoded, or binary
format?  When NextStep 486 comes out, how will it handle NextMail, with a
Sound Blaster or such type card? 
	I am familiar with sound programming on IBMs, Amigas, and Atari
STs, and they have similar sample formats for recorded audio, is the same
true for Next?

Thanks,
Alonso Favela
Advanced Software Design
afavela@eis.calstate.edu
From: bjorn@darmok.uoregon.edu (Bjorn S. Fjeld Pettersen)
Newsgroups: comp.sys.next.programmer
Subject: Prolog interpreters/compilers?
Date: 21 Dec 1992 11:33:24 GMT
Organization: University of Oregon Network Services
NNTP-Posting-Host: cisco-ts2-line75.uoregon.edu
Keywords: prolog

Are anyone out there using Prolog on their NeXT. Does anyone have a Prolog that  
works?

Bjorn
Newsgroups: comp.sys.next.programmer
From: tacchi@ccu.umanitoba.ca (Mark G. Tacchi)
Subject: Re: experienced NeXTSTEP programmer shortage
Organization: University of Manitoba, Winnipeg, Canada
Date: Tue, 22 Dec 1992 02:17:20 GMT

In <2B364F98.6320@deneva.sdd.trw.com> thomsen@spf.trw.com (Mark Thomsen) writes:

>Lots of the hiring going on now is quick response stuff - immediate opps.


I have been watching what is available for NeXT type jobs and it appears to
me that there exists mostly database apps related positions.  Is anyone aware
of any sort of manufacturing or CAE application positions?  I have experience 
in writing commercial engineering software packages on machines other
than the NeXT, but now feel that this is the platform on which I wish to
focus.

My preference is to work in the south-west (California, Texas, Utah) and
would like to move early in the new year.  If anyone knows of a company that
is writing engineering apps (graphical modelling, integrated manufacturing,
and/or solid mechanics finite elements), I would be grateful if you would 
drop me a line and let me know.  Thanks.

-Mark


-- 
Mark G. Tacchi                                    tacchi@next01.cc.umanitoba.ca
  Unix Support Group                                        (NeXT Mail Welcome)
  University of Manitoba Computer Services
 "My opinions are my own, and do not necessarily reflect those of my employer."
Newsgroups: comp.sys.next.programmer,comp.graphics,alt.cd-rom
From: rlp@lanl.gov (Dick Phillips)
Subject: pCD, Photo CD viewer
Organization: Los Alamos National Lab
Date: Mon, 21 Dec 1992 21:32:39 GMT

Folks:

Sorry, but I have been unable to upload either pCD.tar.Z.TAKEME, the
latest pCD, or photo_cd.tar.Z, the pseudo CD to either sonata or orst.
The versions of those files at sonata are incomplete and corrupted.  I'm headed
out of town, but my colleague, Pat McGee, will continue trying and notify
you when he's successful.  In the meantime, pCD.tar.Z at sonata (dated
12/19) is usable.  Sorry for the inconvenience.

Dick Phillips