HDTenEightyP/NetNews huggingface dataset:
From: colin@agincourt.bsd.uchicago.edu (& Garrett)
Subject: DBKit: TextFields as display objects
Organization: University of Chicago Computing Organizations
Date: Tue, 21 Jul 1992 19:58:49 GMT

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?  When I display the same data in an editable  
DBTableView, I have no problems saving changes I make back to the  
database.  Presumably my EditableFormatter is taking care of things.  But  
when I'm using TextFields, 'it' doesn't seem to go back to the RecordList  
and message setValue:forProperty: or whatever.
Any help?

Colin Garrett
colin@delphi.bsd.uchicago.edu
From: eps@futon.SFSU.EDU (Eric P. Scott)
Newsgroups: comp.sys.next.programmer
Subject: Re: NeXT TIFF question
Date: 26 Jul 92 06:05:36 GMT
Reply-To: eps@cs.sfsu.edu
Organization: San Francisco State University

In article <4481@rosie.NeXT.COM> aozer@next.com (Ali Ozer) writes:
>NeXTSTEP 2.x denotes alpha with the private MATTE tag; NeXTSTEP 3.0 uses
>the newly created standard ExtraSamples tag.

You mean alpha tiff format changed *again*???  [Before 2.0 NeXT
used PhotoMetricInterpretation=5.]  Arrgh!!!

					-=EPS=-
Newsgroups: comp.sys.next.programmer
From: bill@epnxt.jsc.nasa.gov
Subject: Does SoundView class exist in 2.1?
Reply-To: bill@epnxt.jsc.nasa.gov
Organization: nasa-jsc
Date: Wed, 22 Jul 1992 21:21:48 GMT

According to my docs, there is a SoundView class located at
View:Responder:Object.   I have ver 2.1 of the operating system and do not  
find that class in IB.  Was it taken out?

Thanks in advance.

		Bill
From: uli@aida.intellektik.informatik.th-darmstadt.de (Ulrich Grepel)
Newsgroups: comp.sys.next.programmer
Subject: Re: dynamic parsers?
Date: 28 Jul 92 12:25:57 GMT
Organization: TH Darmstadt

In article <1992Jul28.101919.15524@fcom.cc.utah.edu>, burchard@horizon.math.utah.edu (Paul Burchard) writes:
|> Anyone know of any decent dynamic parsers out there on the net?  (By "dynamic"  
|> I mean that grammar rules can be added while the parser is running.)
|> 
|> It seems that the bison source could be hacked up to do this, but that's a  
|> hefty wheel to reinvent and I'm hoping it's already been done...
|> 
Oops! ( ;-) double meaning...)

That would not be too easy, because normally you want to add actions to your
new rules. If you do not want to write an interpreter, you will have to 
run the compiler anyway. I think it is not possible to add a rule without
a complete rework on the tables.

Another thing is that I just went along and 'objected' (or, better, C++-ified)
Bison and Flex such that you have a 'main class' that has all the code that
is used for all parsers/scanners and several sub-classes that consists of
the tables and the special actions. If you have interest in these, e-mail me,
but be warned that this code is really not-yet-ready (working at the moment,
but not too-well tested...)

Uli Grepel
From: yu@cs.utexas.edu (Yeong-Ho Yu)
Newsgroups: comp.sys.next.programmer
Subject: How to deactivate an application AND activate the previous one?
Date: 30 Jul 1992 08:18:36 -0500
Organization: CS Dept, University of Texas at Austin
NNTP-Posting-Host: ai.cs.utexas.edu
Keywords: activate

When you quit an application, the application which was active
right before the quitting one gets activated.  I want to mimic
this behavior except that I want to deactivate, not quit, an application.
What I am trying to do is to develop a very small keymap change utility 
which has only a button and changes the keymap when a user pushes the button.
So, if a user is using WriteNow and wants to change the keymap to a foreign
language, the user can click on the button.  However, currently, if 
the user wants to continue on WriteNow, s/he has to click on WriteNow again
to activate it.  I want the utility to deactivate itself as soon as it
changes the keymap and automagically activate whatever application which
was active previously (WriteNow, in the example above), so that the user
does not have to click on it.

I tried 
[NXApp deactivateSelf]

but it only deactived itself; so no active application.

I tried to capture the postscript context of the previous application
by putting

int caller = [NXApp activeApp]

either in the action routine of the utility button or
appDidBecomeActive method of the utility application, but
the value seemed to have changed to that of the utility already.
(I wish they had a method called appWillBecomeActive.)

Please reply to yu@cs.utexas.edu
Any help would be appreciated very much.

Yeong Yu
-----------
From: wilcox@hera.Sbi.Com (Charles Wilcox)
Newsgroups: comp.sys.next.programmer
Subject: sun to NeXT missing ()s
Date: 22 Jul 92 17:14:25 GMT
Organization: Fulcrum - Salomon Brothers, NY

I'm currently porting an application that was developed
on a Sun to the NeXT.  I've noticed that the NeXT doesn't
support, what i thought to be, standard functions.

Can anyone tell me why?

i'm using:

	strdup()
	putenv()
	on_exit()       [ok so the sun man pages say this
			isn't portable, but shouldn't it
			be available?]

i've created my own putenv and strdup, but on_exit i skipped.

thanks for the insite.

Charles Wilcox

Fulcrum                                               voice:  (212) 747-7167 
Salomon Inc                                           uunet:  wilcox@fulcrum.sbi.com 
2 New York Plaza                                      e-mail: cwilcox@salomon 
New York, New York 10004                            
Newsgroups: comp.sys.next.programmer,comp.sys.next.hardware
From: lee@pipe.cs.wisc.edu (Soo Lee)
Subject: Re: serial communications on NeXT computer
Organization: U of Wisconsin CS Dept
Distribution: comp
Date: Thu, 30 Jul 1992 00:57:33 GMT

In article <KARTHY.92Jul23115350@xiv.iesd.auc.dk> karthy@iesd.auc.dk (Karsten Thygesen) writes:
>
>Hi.
>
>I am forwarding this question for a friend, but please send any
>help/comments to me.
>
>Problem: We are currently developing a program to control a
>professional video recorder. The video recorder has a serial RS 232
>interface which communicates at 38400 bit/s, 8 data bits and odd
>parity (i.e. 9 bits per character plus start/stop bits). These
>communication parameters cannot be changed in the video recorder. We
>have suceeded in producing a C program which reads and a writes to one
>of the Next's serial ports at the required speed, but we can't get the
>program to send 8 bit data followed by the parity bit. We guess this
>is due to limitations in the standard serial drivers (/dev/tty) which
>can only generate a parity bit when 7 data bits are used (i.e. max. 8
>bits per character plus start/stop bits). To solve the problem, we
>would like to know:
>
>1) Are we correct in assuming the above limitation regarding the
>standard driver? If not, how do you set it to the required parameters.
>
>2) If the standard driver cannot be set to the required parameters,
>how do you access the hardware (SCC chip)? 
>
>In both cases, pieces of sample code would be very helpful. (We have a
>technical description of the SCC chip itself).
>
>Thanks in advance,
>
>Karsten.
>
>--
>--------------------------------------------------------------------
>Karsten Thygesen              I Aalborg University                 I
>Korsgade 48 2. th             I Institute for electronic systems   I
>9000 Aalborg                  I                                    I
>InterNet: karthy@iesd.auc.dk  I Fredrik Bajers vej 7, 9220 Aalborg I
>Phone (HOME): +45-98124259    I DK-Denmark.                        I
>--------------------------------------------------------------------

My favoite solution for this kind is just one 68HC11. It has EEPROM inside
which can take care of conversion as a snap.

Soo
lee@cs.wisc.edu
Newsgroups: comp.sys.next.programmer
Subject: Re: Shouldn't there be a NXObjectPBoard pasteboard type?
From: scott@nic.gac.edu (Scott Hess)
Date: 23 Jul 92 14:03:55
Organization: Gustavus Adolphus College
In-reply-to: burchard@horizon.math.utah.edu's message of 23 Jul 92 05:50:26 GMTLines: 43

In article <1992Jul23.055026.17206@fcom.cc.utah.edu>
	burchard@horizon.math.utah.edu (Paul Burchard) writes:
>Wouldn't it be nifty to copy and paste objects between windows or
>even apps? This could easily be done using the Objective-C's built-in
>archiving capabilities.  To copy, just archive the object onto the
>Pasteboard.  To paste, unarchive it.  (Multiple objects can be
>placed into a List for transfer.)
>
>However, to make this work between apps there would need to be a
>standardized Pasteboard type registered with NeXT and included in
>the appkit header files.  Anyone know how I could register an
>NXObjectPBoard type with NeXT?

You'd need more than that.  This would allow you to copy NeXT-supplied
objects, which wouldn't be all that useful.  I could care less if
I can copy a Button between applications.

So, at the least, you'd have to be able to send object code across
so that custom objects will work.  If you put the objects in a
dynamic-load object file, this would be trivial.  Perhaps you could
just send a reference to the object file, rather than the actual
object code.  That way you'd save space on the Pasteboard, and also
the pasting program can more easily determine if it has already
loaded the file in question.

Of course, this brings in many other problems.  It's a lot of work
(sometimes even impossible) to have important Views and the like
stand completely on their own.  In most cases, they need a lot of
support from the Window they are in, or the Window's delegate, or
the Application, or somewhere.  So, overall, I think a much more
likely method would be to somehow transfer a remote object over a
Pasteboard, and let the originating program handle the actual
object.  I don't believe that NS3.0 "hot links" give you this
capability (I believe they use a different method to transfer image
data, not actual objects, between apps.  Please correct me if I'm
wrong.  And please don't just say "You are wrong", tell me how it
_does_ work).

Later,
--
scott hess <shess@ssesco.com>  <Who's now in a programming Berserker-frenzy>
12901 Upton Avenue South, #326  Burnsville, MN 55337 (612) 895-1208 Anytime!
<I want to become so famous that people buy tapes of me reading source code>
Newsgroups: comp.sys.next.programmer
From: ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson)
Subject: Highlighting an area in a docView
Summary: Highlighting an area in a docView
Organization: Monash University, Caulfield Campus
Date: Sun, 26 Jul 1992 11:08:22 GMT


I have a docView of my scrollView in which I wish to highlight an area.  When
I use the scrollers and move that current clipview off so that it isn't visible
and bring it back the highlighting goes away.

I know I have to use scrollClip but what I would like to know is how restorationis achieved.  Do I take a copy of what's highlighted and then composite that in
scrollClip?


-- 
Quote of the day

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

Newsgroups: comp.sys.next.programmer
From: eps@futon.SFSU.EDU (Eric P. Scott)
Subject: Re: Does SoundView class exist in 2.1?
Reply-To: eps@cs.sfsu.edu
Organization: San Francisco State University
Date: Thu, 23 Jul 1992 05:48:52 GMT

In article <1992Jul22.212148.26961@aio.jsc.nasa.gov>
	bill@epnxt.jsc.nasa.gov writes:
>According to my docs, there is a SoundView class located at
>View:Responder:Object.   I have ver 2.1 of the operating system and do not  
>find that class in IB.  Was it taken out?

IB's class browser initially shows common classes and public
AppKit classes.  SoundView is part of SoundKit.

Click on View.  Select Subclass from the Operations pulldown
menu, then type SoundView and press Return.

If you double-click on the .h icon IB will message Edit to open
the interface file--and it *will* find it.  You can also use
CustomView to instantiate SoundViews.

Note that IB won't have parsed the interface definition, so you
won't be able to connect directly to the "reduction" or "sound"
ids.

If this disturbs you, there are two workarounds:

	(1) Attempt Save As... to /usr/include/soundkit/UNTITLED
	    [This SHOULD fail for lack of permissions!]
	  -or-
	(2) Create a symlink from /usr/include/soundkit/SoundView.h
	    into your project directory (or home directory if you
	    haven't created a project directory yet).

	THEN Parse will work.  (If you used (2), you can remove the
	symlink now.)

					-=EPS=-
Newsgroups: comp.sys.next.programmer
From: a74k110@titan.ucc.umass.edu (Chris Lloyd)
Subject: Highlighting an area with no light gray or white?
Organization: Yrrid, Inc.
Date: Sun, 26 Jul 1992 21:38:20 GMT

Anyone have suggestions on how to go about highlighting text which
has a black background and dark gray text? i.e. text which has no
white or light grey.  The highlight operator on compositerect seems
to totally lose with this respect, particularly when you start using color.

or am I just being braindead?
-- 
:: Christopher Lloyd :: a74k110@titan.ucc.umass.edu :: Yrrid, Inc. ::
:: AAAAAAAAAAAAAAAAAAAIIIIIIIIIIIIIIIIIIIIIIIGGGGGGGGHHHHH!!!!!!!! ::
From: aozer@next.com (Ali Ozer)
Newsgroups: comp.sys.next.programmer
Subject: Re: NeXT TIFF question
Date: 26 Jul 92 21:23:21 GMT
Organization: Next Computer, Inc.

In article <1992Jul26.060536.22698@csus.edu> eps@cs.sfsu.edu writes:
>In article <4481@rosie.NeXT.COM> aozer@next.com (Ali Ozer) writes:
>>NeXTSTEP 2.x denotes alpha with the private MATTE tag; NeXTSTEP 3.0 uses
>>the newly created standard ExtraSamples tag.
>
>You mean alpha tiff format changed *again*???  [Before 2.0 NeXT
>used PhotoMetricInterpretation=5.]  Arrgh!!!
>
>					-=EPS=-

But Eric, what's the problem?  Our 3.0 images (with alpha) load under
2.0 just fine, and that was certainly the biggest concern...

Our 1.0 alpha format was real crufty. 2.0 fixed that by using a
private tag registered by SGI and used by Sam Leffler's library. As far
as I know, no one but SGI and NeXT used that format. The TIFF 6.0 spec
(just recently finalized) adopted a standard for alpha that was different 
and in NeXTSTEP 3.0 we decided to follow that.

Ali
Ali_Ozer@NeXT.com







Xref: sparky comp.sys.next.programmer:5235 comp.object:3004
Organization: Penn State University
Date: Sat, 25 Jul 1992 10:46:41 EDT
From: <MKK2@psuvm.psu.edu>
Newsgroups: comp.sys.next.programmer,comp.object
Subject: Re: NeXT JOINS OMG, NeXTSTEP Objects Fully OMG Conformant
FollowupTo: comp.object

So, just what does it mean that NS objects are "fully OMG conformant?"
What specs has OMG produced?
Newsgroups: comp.sys.next.programmer
From: nijenhui@nex001 (Wim Nijenhuis)
Subject: More info on subprojects wanted
Organization: PTT Research
Date: Wed, 29 Jul 1992 16:21:06 GMT

Hello,

As a novice on the Next I started to write my own applications. At the  
moment I have a rather big application. Since it tends to grow even more,  
I thought it would be convenient to use subprojects.

The only information on subprojects I have at the moment is from the 2.0  
Release Notes.

I would like some information about connections between different projects  
and for example how to import .h into subprojects.

Any clues or references? Or is it a bad idea using subprojects?

Thanks in advance,

			Wim

e-mail: R.W.Nijenhuis@research.ptt.nl
Newsgroups: comp.sys.next.programmer
From: msb@chromagrafx.com (Michael S. Barthelemy)
Subject: Re: Stupid question:  What does ** mean?
Organization: Chromagrafx Imaging Systems, Hauppauge, NY
Date: Fri, 24 Jul 1992 13:37:29 GMT

In article <1992Jul22.225838.13892@vlsisj.uucp>  
smadsen@leland.Stanford.EDU (Steve Madsen) writes:
> Here's an easy one. . .I'm stumped by the double asterisk declaration, 
> for example:
> 
> (int **)
> 
> I've tried to locate it in Chapter 3, 6 and 7 of NextStep Concepts, as 
> well as two different C manuals, so it's not a pure RTFM question (I 
> hope). . .

It's a double pointer.  (i.e. A pointer to another pointer.)  If you were  
to write:

	int	**temp;

It can be referenced several ways though.

	temp[x] would give you the x'th element of the pointer array.
		(which would be another pointer)

	temp would give you the first element (pointer)
		(such that temp has not been changed)

When mallocing one of these structures by yourself you will have to first  
malloc for the first pointer to the array and then malloc off all of the  
pointers to fill the array:

extern struct foo;
extern int numElements;
struct foo **fooItems;

{
	int i;

	fooItems = (struct foo **) malloc(sizeof(struct foo *) *  
numElements);
	for (i = 0; i < numElements; i++)
		fooItems[i] = (struct foo *) malloc(sizeof(struct foo));
}

You can procede down the pointer path a long ways.  The most I have ever  
used are five and I am not sure if there is a limitation as to how many  
one can have.

It happens to be referenced on pages 107-110 in K&R but they do not use a  
terribly good example to show a double pointer.

Mike Barthelemy
msb@chromagrafx.com
Newsgroups: comp.sys.next.programmer
From: sanguish@digifix.com (Scott Anguish)
Subject: Re: how do outlets work?
Reply-To: sanguish@digifix.com
Organization: Digital Fix Development
Distribution: usa
Date: Wed, 29 Jul 1992 19:19:12 GMT

Eric Fronberg writes
> 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


	That brings up a question that I have about outlets...

	In the preliminary 1.0 documentation interface builder also generated
methods that would initialize these like

- setOutlet1:sender
{
	[ some method call I can't remember ]
	return self;
}

	Is this still supported?  I can't find it anywhere in the current  
documentation.

	If it is still supported, and is pretty certain to be supported in the  
future, I have a few places i could really use this.

	thanks

	scott

-- 
- Scott Anguish -
sanguish@digifix.com (NextMail)
From: asd@sage.cc.purdue.edu (Kareth)
Newsgroups: comp.sys.next.programmer
Subject: Re: Can't get Backspace.tar off of Sonata...
Date: 28 Jul 92 00:31:56 GMT

In <1992Jul27.170804.8063@cs.cornell.edu> freimer@cs.cornell.edu (Robert Freimer) writes:

>bill@epnxt.jsc.nasa.gov writes:

>>I am unable to use Gator+ to acquire Backspace.tar off of Sonata.

>The last time I looked, this file was read protected for some reason.

Some time back, NeXT got complaints about Sam Streeper having done
Backspace and made it free.  Bunch of bullshit about level playing
field type of stuff.  Pretty bogus all around.  If you have to have a
level playing field in order to sell your product, then I wouldn't
consider it to be all that good.  Sorta like the auto industry
bitching about level playing field.  If they made better cars, then
we'd buy them.  Anyways, all copies at archives were supposed to be
frozen or removed so folks couldn't get them.  Then NeXT decided that
they'd leave it out there, but that Sam couldn't update it or make any
changes.  I heard that it'll be included in 3.0 developer examples,
after all it's pretty good one for dynamic loading of .o files.  I
wish I knew were to get a copy because I'd really like to study it and
see how it works.

-k
Newsgroups: comp.sys.next.programmer
From: chris@quay.ie (Christopher Davey)
Subject: shared memory & semaphores
Date: Tue, 21 Jul 1992 15:52:03 GMT
Organization: Quay Financial Software

2 Questions:
1. Can anyone recommend a good book on the subjects of either or both of
    * Shared Memory
    * Semaphores
   for programming on a NeXT?
2. In the meantime, can anyone tell me what the calls are, because I can't 
   seem to track them down with "man" and "apropos".

Thanks in Advance,
Chris
-----
chris@quay.ie
Newsgroups: comp.sys.next.programmer
From: colo@odie.ee.wits.ac.za (Illan Colombick)
Subject: Re: freeing an object--when?
Organization: Wits Electrical Engineering (Novell Users).
Distribution: na
Date: Sun, 26 Jul 1992 13:18:41 GMT

In article <1992Jul24.180535.18214@MITL.COM> edlau@mitl.com (Ed Lau) writes:



>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];

>        ...
>}

[stuff deleted]

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

>--Edward Lau
>edlau@chaos.mitl.com

Surely it does not matter that the window is without a delegate? The Window 
is about to close. Unless you have setFreeOnClose: NO (default is YES), so 
that the window just disappears from the screen, but remains in existence. 
In that case, have windowWillClose check  the dontFreeOnClose value to 
decide whether or not to free the Document. 

If I have missed something here about doomed delegateless windows, please do 
tell me, I am (very) far from being an expert NeXT programmer.

Bye.
Illan

   ......
  \\\\\///
  C o l o     {textmail, NeXTmail} to colo@{odie, TuRInG}.ee.wits.ac.za
   %% - %
    ~%%%~
From: alex@laos (Alex D. Nghiem)
Newsgroups: comp.sys.next.programmer
Subject: what is the API to mail in 3.0?
Keywords: API, mail, distributed objects, 3.0
Date: 28 Jul 92 16:30:16 GMT
Reply-To: alex@pencom.com
Organization: Pencom Software

Hello there:

I'm trying to message Mail under 3.0 and am encoutering various problems (more  
from a lack of knowledge about distributed objects than anything else really).  
I know how to do this using speakers and listeners, but I want to learn how to  
use remote objects.  Since I don't want to post 3.0 specific information to the  
net (it may violate our 3.0 contract with NeXT), I would like to ask if anybody  
has successfully done this under 3.0 -- if so, please e-mail me and we can  
discuss the problema/solutiona in private.

Sorry about this....


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 *
                           ****************************
From: wjs@blorf.cpac.washington.edu (William Shipley)
Newsgroups: comp.sys.next.programmer
Subject: Re: DBKit: TextFields as display objects
Date: 22 Jul 92 21:25:41 GMT
Article-I.D.: u.1992Jul22.212541.2259
Organization: University of Washington

& Garrett writes:
>  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.

Note also that if you have a UI control that doesn't have a textDelegate (like  
a DBImageView, or a switch with a custom connection) you should make the module  
that control's target, sending the "takeValueFrom:" method.

Note also that Text objects are 'magic' in that you don't have to set either  
their delegate or their target to get them to propogate changes.  This is  
because Text objects have neither targets nor delegates.

-William Shipley
The Omni Group