HDTenEightyP/NetNews huggingface dataset:
From: a74k110@titan.ucc.umass.edu (Chris Lloyd)
Subject: Re: 8 bits AND parity, please
Organization: University of Massachusetts, Amherst
Date: Thu, 17 Dec 1992 05:04:09 GMT

In article <1992Dec15.182315.6970@zetetic.uucp> philip@zetetic.net.netcom.com writes:
>In article <1992Dec10.093651.24156@netcom.com> abell@netcom.com  
>(Steven T. Abell) writes:
>> hwr@pilhuhn.ka.sub.org (Heiko W.Rupp) writes:
>> >weaver@kuttner.sfc.sony.com (Eric Weaver) writes:
>> >>I would like to set /dev/ttya to produce 8 bit characters and odd parity.
>> >>We have a device which requires said serial parameters.
>> 
>> No, he wants to stroke a pro VCR. So do I.
>> Pro video gizmos all speak 38.4Kbaud 8-bits odd parity.
>> NeXT ports won't do this with the current UNIXy drivers.
>> This really pisses me off.
>> It's not like an 8530 can't do this.
>> NeXT should supply appkit port objects that can be seized,
>> configured any which way, and used for more than just nerdy dialups.
>
>It is not because it is UNIX but because the NeXT is BSD. Systems  

Well, either way, nothing is preventing anyone from writing another serial
port driver that does whatevere their hearts desire. I understand MorningStar
has a HDLC driver for the serial ports and NeXT has the MIDI driver. 

There are two kernel routines zsacquire and zsrelease in
  /usr/include/nextdev/zscom.h
and the 8530 register information in
  /usr/include/nextdev/zsreg.h

With an 8530 manual and a kernel loaded server you're in business.  Just
somewhat of a pain to do...

la la la,
-- 
::   Christopher Lloyd  ::  a74k110@titan.ucc.umass.edu  ::  Yrrid, Inc.    ::
Newsgroups: comp.sys.next.programmer
From: jon@afs.com
Subject: N3DCamera -renderToTIFF
Organization: Anderson Financial Systems
Distribution: usa
Date: Wed, 16 Dec 1992 17:03:47 GMT


Okay. I tried to use N3DCamera's -renderToTIFF method.

What I got was an image which was 24 bit rgba. The problem is that the
shape in the picture is all black, while the rest of the image is transparent.
The effect is like a silhouette.

The lights I'm using are on at decent levels, so I know it's not that. And, the image looks fine on screen. (What I did was I modified the Teapot Backspace module so that it will render a number of frames photorealistically and save them as JPEG-compressed tiffs in an .anim folder.. I know, I should use an N3DMovieCamera, but I thought I'd start slow.)

What am I doing wrong?

Newsgroups: comp.sys.next.programmer
From: carol@media.com (Carol Deihl)
Subject: Is there an IconPath class somewhere?
Reply-To: carol@media.com
Organization: Multimedia Learning, Inc.
Date: Thu, 17 Dec 1992 06:45:25 GMT



	Does anyone know of an IconPath class available? e.g. one that  
works like the IconPath in the File Viewer?

	Thanks in advance...

carol
From: cm601@cleveland.Freenet.Edu (Bradley Alexander Derrick)
Newsgroups: comp.sys.next.programmer
Subject: NeXT and Universities
Date: 15 Dec 1992 22:51:33 GMT
Organization: Case Western Reserve University, Cleveland, OH (USA)
Reply-To: cm601@cleveland.Freenet.Edu (Bradley Alexander Derrick)
NNTP-Posting-Host: slc10.ins.cwru.edu


	I am "lucky" I would say to have exereinced enough computer
knowledge to run circles around most of the people who publish articles for
magazinse like _Comuter Shopper_ and _PC World_.  I seem to be able to pick
up on these things easil :>.  Earlier this semester I got a hands on
experience with a NeXT which blew me away..  I had seen SUN's and Mac
Quadra's and wasn't really imressed.  But the NeXT's ease of programing and
open system was ver impressing.  I posted a message (8501) were I tried to
find out a little more about the NeXT(12/14/92).  So I went down to the
bookstore and picked up NeXTWorld and perused it.  Steve Jobs is one smart
cookie.  I would like to professionally developing software after college,
or at least doing something computer related.  Either way I would like to
do what ever I plan on, on the NeXT.  So I guess it is reasonable to ask
what universities offer programs(classes that is) that revolve around 
application development on Steve Job's machine.

	I have developed aprox. 10 apps on the
IBM which are written in Turbo PASCAL(which is very laughable compared to
the NeXT's Obj-C).

-  Al  -
P.S. I guess its kinda good to still be a junior in high school, because I
still have many doors open.
Newsgroups: comp.sys.next.programmer
From: gvh@metrosoft.com (Gordon Van Huizen)
Subject: Re: How do I really flush a window?
Reply-To: gvh@metrosoft.com (Gordon Van Huizen)
Organization: Metrosoft
Date: Sat, 12 Dec 1992 18:42:39 GMT

In article <Bz2BwJ.6sz.2@cs.cmu.edu> rwb@alexander.VI.RI.CMU.EDU  
(Robert Berger) writes:
> 
> I have a method that changes a view. I need the changes to be
> visible immediately, and not wait until my method returns.
> 
> How do I flush the new data to the display? I've tried various
> combinations of flushWindow, buffering/non-retained, etc. With every
> technique I tried, the new data does not become visible until my
> method exits.
> 
> How do I make the changes visible immediately?

You need to use NXPing() to cause the running app to pause
and wait for the Window Server to execute all PostScript
sent to it. I have found that this is required in more cases
than those eluded to by the NeXT docs. 
  
Gordon
-- 
----------------------------------------------------------------
Gordon Van Huizen           vox: 619.488.9411  fax: 619.488.3045
Metrosoft                   gvh@metrosoft.com [NeXTmail welcome]
----------------------------------------------------------------
Xref: sparky comp.sys.next.programmer:7768 comp.sys.next.misc:23099
From: arzt@dccs.upenn.edu (Noam H. Arzt)
Newsgroups: comp.sys.next.programmer,comp.sys.next.misc
Subject: Interface Builder for Macintosh?
Date: 16 Dec 92 04:20:00 GMT
Followup-To: comp.sys.next.programmer

I thought I heard some time back the Interface Builder was originally a  
Macintosh product. Any information on this? If so, is it still viable on  
the Mac?

--
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
Newsgroups: comp.sys.next.programmer
From:  (slugg jello)
Subject: Re: experienced NeXTSTEP programmer shortage
Reply-To: slugg@mouthers.wa.com
Organization: Mouthing Flowers
Date: Sat, 12 Dec 1992 07:24:13 GMT

In article <2B27CD4C.3212@deneva.sdd.trw.com> thomsen@spf.trw.com (Mark  
Thomsen) writes:
> Art Isbell writes
> > So now's the time for you to go for it!  Unfilled positions are begging for
> > your expertise (in NeXTSTEP software development) ...
> 
> I have had similar experiences - lots and lots of opportunities for  
experienced  
> and skilled NeXTSTEP software developers. Especially if you are willing to  
> locate to SF Bay Area, Chicago, New York area, LA, or Texas. Buying NeXTs and  
> believing in the vision is easier than finding the talent to create those  
> custom applications.
> 
> A sellers market at this moment.

Sigh.  I did the same thing as Art Isbell.  I've been working a 'day' job  
biding my time until my NeXT programming expertise came into demand.  Now the  
time has come, but not here in Seattle.  We've got a thriving software industry  
here, including many small start-up companies.  But Seattle seems dominated  
either by Microsoft or by spineless entrepreneurs.  There is very little NeXT  
development happening for a place with so much talent and such a large software  
industry.  I don't want to relocate to any of the places you name and perhaps  
others feel the same way.  Come on NeXT, sell a few computers in some more  
interesting places.  I'd jump on a job in Hawaii!!
-- 
Doug Kent
slugg@mouthers.wa.com
Newsgroups: comp.sys.next.programmer
From: jacobsen@tpki.toppoint.de (Joerg Jacobsen)
Subject: customized adaptor and 'update'
Organization: Toppoint Mailbox e.V.
Date: Wed, 16 Dec 1992 21:46:52 GMT

Hi Guys,

don't seem to be able to solve this by myself...

I'm currently writing a customized adaptor and have a hard time getting
the 'update' mechanism to work.  This is the scenario:

Let's say you have a DBRecordList object set up like in the 'AddressBook'
example. Excerpt from Controller.m:

   	recordList = [[DBRecordList alloc] init];
	
		/* A unique key is needed if you want to update or insert new
		 * data via the record list into the database. If no key is defined,
		 * the data retrieved via the  record list is read-only.
		 */
	keyList = (List *)[[List alloc] init];
	[keyList addObject:authId];
	[recordList setKeyProperties:keyList];
	[keyList free];
	
	[recordList setProperties:propertyList ofSource:authorEntity];
	[recordList setDelegate:self];

	[recordList addRetrieveOrder:DB_AscendingOrder for:lastName];
	[recordList addRetrieveOrder:DB_AscendingOrder for:firstName];					
	[recordList fetchUsingQualifier:nil];
	
Then you do a bunch of changes to the records of this list and finally
execute

	[recordList saveModifications];
	
But instead of just letting the adaptor quitly modify its data source
the recordList's delegate gets bugged with a DBFailureCode

	DBRecordKeyNotUnique.
	
(In my DBModel I have set the authId property also to be 'unique key'.
 Needless to say that my table does _not_ have duplicate keys.)
 
 I know that my description of the problem leaves room for a lot of
 speculation but maybe it still resembles some pattern?
 
 Question:
     Should I hold my adaptor responsible for this symptom or could the
     DBModel already screw things up like this (unfortunatly I have neither
     Oracle nor Sybase to check it out)?

thanks,

Joerg Jacobsen.
 

-- 
Jacobsen Softwareentwicklung	jacobsen@tpki.toppoint.de (NeXTmail)
W-2300 Kiel			Voice:	(+49) 431 805467
Germany				Fax:	(+49) 431 553623
From: alex@laos (Alex D. Nghiem)
Newsgroups: comp.sys.next.programmer
Subject: setting custom icons for custom documents
Keywords: iconheader, PB, IB, icon
Date: 14 Dec 92 15:57:43 GMT
Reply-To: alex@pencom.com
Organization: Pencom Software

Hello there:

I've built an application under 3.0 and have created a custom document icon for  
the documents which my application creates.  However, even though I've already  
installed the application in ~/Apps, the Workspace still doesn't associate my  
icon with my documents unless the application is docked.  Likewise, the WS  
doesn't allow me to set my application as the default application for my custom  
document unless the application is also docked.

Under 1.0 and 2.0, the Workspace searched all path that's specified the the  
ApplicationsPaths default (owned by Workspace).  Even if this is not set, I  
would have thought that the WS would at least search ~/Apps.  Is there  
something different under 3.0 that I'm overlooking?

Thanks for the help and I'll summarize if there's any interest.

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 *
                           ****************************
Newsgroups: comp.sys.next.programmer
From: greg@afs.com (Gregory H. Anderson)
Subject: Re: Colored Button
Reply-To: greg@afs.com
Date: Wed, 16 Dec 1992 19:24:24 GMT

Mail to the referenced address bounced, so pardon my bandwidth for posting  
the answer here. It's short and sweet, and maybe you'll learn something  
you didn't know about Buttons and ButtonCells anyway.  8^)

In article <U3S9T0P@gwdu03.gwdg.de> mzeller@gwdg.de writes:
> I'd like to have a colored button - I don't want to use a TIFF Icon for  
it.

This is harder than you realize. You would have to subclass ButtonCell,  
not Button, because that's where the actual drawing gets done. In fact,  
the -setXxxColor methods in the View classes, like TextField, are actually  
cover methods for the underlying Cells. To get what you want, you would  
need to add an instance variable for the color(s) and subclass the -read:  
and -:write methods to store it. You would need to add set/return methods  
for the color(s) in the ButtonCell and Button classes. You'd probably want  
a custom IB inspector with a color well, so you wouldn't be forced to set  
the colors programatically.

Here's the really difficult part. You would need to completely replace the  
-drawInside: method of ButtonCell, using your color(s) as the foreground  
and/or background fill color(s). The ButtonCell draw code is complicated.  
There are numerous combinations of text/icon placements, on/off states  
(which may have different icons and/or text), highlighting, etc. You'd  
have to get it all exactly right if you wanted the perfect substitute for  
a ButtonCell. That would take some patience and iterative testing. Plus,  
you'd have to be prepared to enhance its capabilities as new releases of  
the AppKit appear.

I know a lot (not all) about how to do it, but I wouldn't want to replace  
ButtonCell's draw code from scratch on a deadline. I think the best  
solution is to lobby NeXT for this behavior in a future release.
--
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: jpm@lanl.gov (Pat McGee)
Subject: Can't get OpenPanel to display *.wksp.Z files
Keywords: OpenPanel
Organization: Los Alamos National Lab
Date: Sat, 19 Dec 1992 00:11:22 GMT


I'm working with an application that creates files with names that
end in .wksp.Z (yes, they are compressed). I'd like to use
OpenPanel to allow me to choose one of these files, with the
other files not visible.

When I put "wksp.Z" in the types: parameter of the  
runModalForDirectory:file:types: method, these files don't show
up. I also have "wksp" in the list; these files show up just like I'd  
expect.

Is there any way I can use OpenPanel to do what I want?

Has anyone written an equivalent of OpenPanel that I could get the  
source code to?

Do you have any other suggestions? (except the obvious one of not  
using .wksp.Z. That's outside my control.)

Thanks,

--

Pat McGee
jpm@lanl.gov, (505) 667-4196
Distributed Computing Environments Group, Los Alamos National  
Laboratory
MS B272, P. O. Box 1663, Los Alamos, NM 87545
Newsgroups: comp.sys.next.programmer
From: alberto@parsec.mixcom.com (Manuel Alberto Ricart)
Subject: Re: Using the serial # in ROM as a copy protection mechanism...?
Organization: Is the act or process of organizing or of being organized.
Date: Sun, 20 Dec 1992 02:18:00 GMT

Recently there was law introduced to discourage this sort of behaviour.
If I recall correctly, anyone caught with $2500 or more worth of
pirated software, will receive a faily harsh fines (100K+) and
mandatory prison.

Naturally this type of legislation is difficult to enforce on a
'small' pirate. However, it is inteded is to make companies honest
when it comes to software licensing issues, which is IMHO where the
biggest loss can happen. Just imagine an office that has 10 computers.
They buy one copy of your favorite word processor, and then install it
on all of their machines. If this is done for say 3 packages at each
averaging $250 that = $6700 of lost revenue. A lot for many smaller
companies.

I'll dig out the information, and post it in full detail, I believe there's 
even an 800 number for people to squeal on the pirate(s).

I believe that the best way is to have a combination of what Louis
Mamakos presented. I like the idea of run-time licesing. This way,
you have freedom to run them in your computer. In an office environment,
you can buy 4 licenses, you try to run a 5th, and "please call
800 ... to purchase an additional license.." a neat remider/sales pitch.

Later,


 
-- 
Manuel Alberto Ricart
alberto@parsec.mixcom.com <NeXTMail Welcome>
Newsgroups: comp.sys.next.programmer
From: derek@slab.slip.uiuc.edu (Derek Taubert)
Subject: Re: 8 bits AND parity, please
Reply-To: derek@slab.slip.uiuc.edu (Derek Taubert)
Organization: Damage, inc.
Date: Sat, 19 Dec 1992 22:05:22 GMT

> of the hardware.  The DSP and serial ports are the easiest IMO to write drivers
> for, as all you need is in header files hanging around on the system.

That WERE hanging around.  Read on...

> /usr/include/nextdev/zscom.h has the kernel entry points for a driver to
> acquire and install interrupts for each of the serial ports. At driver open
> you call zsacquire(0 or 1 (a or b), ZCUSER_LOADABLE, intrsw) with
> intrsw filled in (see zscom.h) with a tx/rx and line state change interrupt
> routine. 'chan' would be the device port (0 or 1).  and zsrelease is done
> when the device is close'd.
> /usr/include/nextdev/zsreg.h has all the defines you probably need for
> accessing the 8530 hardware directly. ZSADDR_A = serial port A's hardware
> registers. ZSADDR_B = serial port B's hardware registers. An 8530 manual
> would be a must at this stage...  ZSREAD_A et al are handy macros for accessing
> the hardware and such.

Great.  Except for one thing.  Under 3.0, zscom.h has disappeared, and zsreg.h
has this to say:

 * 22-May-91  Gregg Kellogg (gk) at NeXT
 *	Split out public interface.

No ZSADDR_A anywhere in all of /usr/include, no P_SCC in any of the cpu.h.
Anybody have suggestions so that I don't have to set up all of the 2.x header
files?  Thank you NeXT, for making it this much harder for me to hack into
your kernel segments!!!  I would really like an ACCEPTABLE explanation for
this from them.

struct zs_intrsw {              /* interrupt switch */
        int (*zi_xint)(int chan);       /* transmitter interrupt routine */
        int (*zi_rint)(int chan);       /* receiver interrupt routine */
        int (*zi_sint)(int chan);       /* status change interrupt routine */
};

I assume the interrupt routines are passed the SCC channel that generated them
(same as unit in the zsacquire call?), but what to return from them?

> And disassembling the MIDI driver and kernel is a good idea for pointers...

Yup.  HAD I spoken to anybody at NeXT about this, they MIGHT just have said
this as well (ahem).  Is there a 68040 disassembler shipped with NS, if not,
where to get one?  I assume not, since no man page for 'dis'.

Derek
Newsgroups: comp.sys.next.programmer
From: bwebster@pages.com (Bruce F. Webster)
Subject: Re: experienced NeXTSTEP programmer shortage
Reply-To: bwebster@pages.com
Organization: Banzai Research Institute
Date: Wed, 16 Dec 1992 17:34:53 GMT

In article <1992Dec15.195018.5227@afs.com> greg@afs.com (Gregory H. Anderson)  
writes:
> In article <Bz6wo3.Jz6@ux1.cso.uiuc.edu> lemson@ux1.cso.uiuc.edu (David  
> Lemson) writes:
> > 
> > You wouldn't believe how many headhunters call me in search of
> > NeXTSTEP programmers. 
> 
> Well, the joke's on them and anyone else who thinks experience is a  
> pre-requisite for all employees hired. AFS has 9 programmers now, only two  
> of whom (recent arrivals) had ANY NeXT experience at all. Dave and I  
> taught ourselves NeXTSTEP programming in less than three months (and I had  
> only programmed in ... BASIC ... before), although I'll admit it takes  
> almost a year to get really fluent at it. Since then, we have taught  
> everybody else in amazingly short periods of time.
> 
> My point is that you only need one or two people who really, really know  
> NeXTSTEP to build a programming shop, corporate-internal or third-party.  
> Everyone else just has to be reasonably smart and open-minded. As I've  
> stated innumerable times, the difficulties learning NeXTSTEP relate to  
> information volume, not concepts. The AppKit, DBKit, IndexingKit, etc.,  
> are just plain BIG, not hard. If you have even one or two person around  
> who know how to navigate them, you can keep a whole shop moving forward.  
> We do it. So can you.
> 
> *soap box on*
> Why won't anyone invest in training their employees anymore? Why must  
> everyone come pre-programmed for the specific job available? I'd rather  
> teach programming to smart liberal arts majors who know how to think, than  
> teach thinking to a bunch of computer linguists who only know how to code.
> *soap box off*
> 
> Thank you. I feel better now.
> 

I'll second Greg's comments. Only about half of our engineering staff had  
NeXTSTEP programming experience before coming to work at Pages; the rest  
learned on the job (most went to DevCamp, but one didn't even bother with that  
and is doing a great job). It's critical--or, at least, extremely helpful--to  
have a few NS gurus around (for example, Bruce "the Spud" Henderson), but after  
that, it's more important to hire the right people than to seek after  
particular coding experience. Of course, if you can get a great person with the  
right coding background, all the better.... :-)    ..bruce..

-------------------------------------------------------------------------------
Bruce F. Webster             | No! I am not Bill Gates, nor would I want to be;
Chief Technical Officer      | I'd rather parse the fish than own the knife;
Pages Software Inc           | (Imagine! Having moby bux but chained
bwebster@pages.com           | to forty million lusers, what a life...)
#import <pages/disclaimer.h> |     -- Jeff Duntemann
-------------------------------------------------------------------------------
Newsgroups: comp.sys.next.programmer
From: C471040@mizzou1.missouri.edu (Toejam)
Subject: Where are those jobs?
Organization: University of Missouri
Date: Mon, 14 Dec 92 11:28:58 CST

Aloha.
 
Someone mentioned a shortage of NeXT programmers in LA.  How do I
find out where those jobs are?  I'm in Missouri and have been
programming on the NeXT for the past year.  Any assistance would
be greatly appreciated.
Newsgroups: comp.sys.next.programmer
From: dave@prim.demon.co.uk (Dave Griffiths)
Subject: Re: finding version numbers
Organization: Primitive Software Ltd.
Date: Wed, 16 Dec 1992 11:29:11 GMT

In article <1992Dec8.145024.23485@fnbc.com> drew@fnbc.com writes:
>In article <1992Dec8.024303.29691@msuinfo.cl.msu.edu> lebay@mercury.cl.msu.edu  
>(Jim LeBay) writes:
>> How can my program find out which version of NeXTStep it's running 
>> under?  The only thing I've found so far is to call the Mach function  
>> host_kernel_version() and parse the return string.  But is the Mach  
>> kernel version number always the same as the NeXTStep version number?
>
>One crude solution, if you want to find out just the revision level of  
>NeXTSTEP, is to look in /usr/lib/NextStep/software_version.
>

That file doesn't exist on my 2.0 system!

BTW, are developers out there trying to maintain software that will run on 
both 2.x and 3.0, or is the feeling that everyone will eventually upgrade?

I was thinking of trying to maintain common source for both 2.x and 3.0 
versions of the app I'm writing - is there any point?

Dave Griffiths
Newsgroups: comp.sys.next.programmer