HDTenEightyP/NetNews huggingface dataset:
From: aozer@next.com (Ali Ozer)
Newsgroups: comp.sys.next.programmer
Subject: Re: loadNibSection return value
Date: 10 Oct 92 19:18:01 GMT
Organization: Next Computer, Inc.

In article <BvrGB9.15x@oceania.com> chris@oceania.com writes:
>The method:
>window = [NXApp loadNibSection:"NibFile.nib" owner:self];
>currently returns a window pointer to one of the windows in the nib section.  Does anyone
>know if this is a stable "feature"?  Current documentation doesn't mention anything
>about the return value, other than it won't be nil if the nib section is loaded 
>correctly.

No! I mean, YES, I know if this is a stable feature or not, and NO, it isn't.
This method is not documented to return a window, so don't rely on it. Use outlets.

Ali, Ali_Ozer@NeXT.com






Newsgroups: comp.sys.next.programmer
From: gpoc@cube.sm.dsi.unimi.it (Gianfranco Pocecai)
Subject: Control a VCR
Keywords: VCR
Organization: Computer Science Dep. - Milan University
Date: Wed, 14 Oct 1992 18:07:23 GMT

Hi!!
I need something (object - or App) to control a VCR.
Any suggestion?? 
Thanks
Gianfranco

Please reply by e-mail, thanks

------------------
Gianfranco Pocecai
Coordinator of "NeXT2You", The Italian NeXT User Group
University of Milano - Computer Science Department
Via Comelico, 39/41
20135 Milano - Italy
E-mail : gpoc@cube.sm.dsi.unimi.it
Phone  : +39 2 55006.385
Fax    : +39 2 55006.373

Newsgroups: comp.sys.next.programmer
From: chris (Chris Larson)
Subject: loadNibSection return value
Reply-To: chris@oceania.com
Organization: Oceania Health Care Systems
Distribution: na
Date: Wed, 7 Oct 1992 16:54:44 GMT

The method:

window = [NXApp loadNibSection:"NibFile.nib" owner:self];

currently returns a window pointer to one of the windows in the nib section.  Does anyone  
know if this is a stable "feature"?  Current documentation doesn't mention anything about  
the return value, other than it won't be nil if the nib section is loaded correctly.

Chris
-- 
Chris Larson  <==>  chris@oceania.com  <==>  NeXT Mail is cool
Oceania Health Care Systems                      Palo Alto, CA
The Software Ranch                               Park City, UT

Newsgroups: comp.sys.next.programmer,comp.unix.internals
From: miron@extropia.wimsey.bc.ca (Miron Cuperman)
Subject: Looking for examples of device drivers/filesystems
Keywords: device filesystem
Organization: Immortal Freedom's Deck
Date: Mon, 12 Oct 1992 02:26:29 GMT

I'd like to write a ramdisk and/or an encrypted filesystem for the
NeXT (at first).  I assume there are two options open to me:  write
block and raw devices or write a filesystem.  I assume that writing
devices is easier.

I have the book "The Design and Implementation of the 4.3BSD UNIX
Operating System".  The problem arises because this book doesn't
have enough detail or examples.  Are there any examples that I can
use out there?  Are there better books?
-- 
	Miron Cuperman <miron@extropia.wimsey.bc.ca> | NeXTmail/mime ok
		       <miron@cs.sfu.ca>	     | Public key avail
	AMIX: MCuperman				     |
immortalcybercomputinglaissezfaire		     |
From: gordie@duts.ccc.amdahl.com (Gordie Freedman)
Newsgroups: comp.sys.next.programmer
Subject: Questions on inherited Text object in a ScrollView
Keywords: Text object ScrollView Interface Builder IB inherit
Date: 8 Oct 92 02:37:49 GMT
Reply-To: gordie@duts.ccc.amdahl.com
Organization: Happy hacker bait and tackle shop

I am trying to get a text object inside of a ScrollView to behave in
a custom way. I think the only way to do this is to subclass it, 
override the methods I want to modify, and of course add some instance
variables to use. I know how to do this, but I can't figure out how to
get IB to make a .nib with a window containing a ScrollView containing
my inherited CText object. I have some other related questions also.


More explicitly:

I want to override keyDown and mouseDown so that I can get control and perform
some checking on these events. I also want to override the methods for 
underline and the alignment methods so I can change the X in the upper right
corner of the window to indicate the document needs saving. I can't seem to
get these to the delegate, although I know how to get messages to the
delegate for textDidGetKeys:isEmpty: (This doesn't report changes
due to underline, alignment, etc). I also couldn't figure out how to set
a Text object's delegate from within IB, I had to do it manually from in 
the init routine of the .nib's owner.


So here are my questions:

 1) Can I set the Text object's delegate from within IB? (Using ctrl-mouse-drag).

 2) How can I set an object outlet variable to a ScrollView object
	from within IB (it always sets it to the Text object within the
	ScrollView). I'm trying to do this so I can create a normal ScrollView
	from within IB and than in the init code of the .nib's owner I can
	do a setDocument (I think that is the call) on the ScrollView. I need to
	set one of the "file's owner" object's instance variables to the ScrollView
	so I can reference the ScrollView later. (On a related note, can I get
	the ScrollView from the Window object, which I can connect)?

 3) How can I use IB to set up a ScrollView containing my inherited CText
	object, rather than the Text object it usually contains? I started
	reading about Palettes, but I'm not sure if this is the way to go.

 4) Is there some way for the Text object's delegate to get notification
	when the alignment or underline attribute is changed? (I think I also
	don't get color changes either, so I need that too).

Thanks in advance, 

Gordie Freedman
gordie@kaleida.com
Newsgroups: comp.sys.next.programmer
From: bvrotney@ADS.COM (Bill Vrotney)
Subject: Re: Franz Allegro Common Lisp 3.1 under NeXTstep 3.0
Organization: Advanced Decision Systems, Mtn. View, CA (415) 960-7300
Distribution: world 
Date: Wed, 7 Oct 1992 05:26:49 GMT

In article <1992Oct6.062407.14336@csis.dit.csiro.au> pwm@csis.dit.csiro.au (Peter Milne) writes:

>   Problem is that all of us ACL 3.1 users who have moved to NS 3.0 are
>   without a running lisp until ACL 4.1 appears (and they pay for it).
>   Now Bill Vrotney has mailed to this list that "Some wonderful guys who
>   wish to remain anonymous have come up with a simple fix for ACL 3.1.20
>   work under NeXTstep 3.0 ..."  Apparently their fix gets ACL going but
>   not the Objective C interface.  Bill has asked them for the fix so
>   he could post details, but so far nothing has been posted.
>
>   Well what one group of wonderful guys can do another can do too.
>   My suggestion is that we work together to try and come up with a
>   fix.  Anyone interested?

Ok, you've squeezed it out of me.

I DO have the fix from those "wonderful guys" that makes ACL work under NS
3.0. It is a patched version of the file ucl.o. But I do not have 3.0 to
verify it, although they did send me evidence that it does in fact work.

So the obvious question your probably wondering, "why not just post the
ucl.o file?". Well the reason that I haven't done that is that Franz in very
certain terms has informed me that if I do that it would be in violation of
their license agreement. However, Franz said that it would be ok with them
if I were to post a method that patched an existing user's ucl.o file. And
that is what I have been working on. I have been very busy and only have
parts of weekends to work on this.

If anyone has another approach, feel free to pursue it, as it will take me
awhile to produce the above method. In the mean time if you need Common Lisp
on NS 3.0 you might try AKCL (see the FAQ).

--
Bill Vrotney
BAH/Advanced Decision Systems
Newsgroups: comp.sys.next.programmer
From: prim!dave@germany.eu.net (Dave Griffiths)
Subject: Re: Need a MINIMAL app for a speaker
Organization: Primitive Software Ltd.
Date: Tue, 13 Oct 1992 21:43:08 GMT

In article <1992Oct8.050012.25265@unlinfo.unl.edu> hickman@cse.unl.edu (Hubert B. Hickman) writes:
>I am attempting to write a simple program that uses speaker/listener.  This
>little program does not need to be a full-scale applcation, but simply 
>needs to be able to send some messages to a remote application.
>
>My problem is that the port is never found.  As of now, all of the
>code resides in the main.m file.  There is no need for a nib file 
>since this little executable has no user interface.
>
>Do I have to do somthing more to have a minimal "speaker"?
>
>Thanks,
>
>Hubert Hickman
>hickman@cse.unl.edu
>-----
>#import <stdlib.h>
>#import <appkit/appkit.h>
>#import <sys/port.h>
>
>void main(int argc, char *argv[]) {
>
>	
> 	port_t	websterPort;
>	int scode,tcode,flag;
>
> 	NXApp = [Application new];
>	websterPort = NXPortFromName("Webster",NULL);
>	if(websterPort == PORT_NULL) 
>		{
>		NXRunAlertPanel("Error",
>			   			"Webster port not found, %s.\n",
>						"OK",0,0,NXUserName());
>		}
>	
>[munch rest of code]
>

You have to do an [NXApp run]. At this point various initializations take
place which allow the NXPortFromName to work. So either put all your code
into the "appDidInit" method of some class, or create a class which sends
your NXApp a "stop:" message which will break it out of [NXApp run] so you
can fall through to the rest of your code.

Dave Griffiths
Newsgroups: comp.sys.next.programmer
From: orion@proxima.cc.colorado.edu (Orion Edward Poplawski)
Subject: Data transfer: DigEars -> DSP -> save it to disk
Keywords: dsp,sound,dma
Reply-To: orion@proxima.cc.colorado.edu
Organization: Colorado SuperNet, Inc.
Date: Thu, 15 Oct 1992 21:44:39 GMT

I'd like to start doing some data acquisition/processing on the NeXT using  
digital ears.  I pretty much understand how to get samples into the DSP from  
the ears (thanks to Jean LaRouche's text/code), but am much more shaky on how  
to get into to the host, and onto disk.  I want to be as flexible as possible  
with the data transfer, as I hope to do a little processing of the data on the  
DSP before sending it to the host, and therefore the data will not necessarily  
look like a standard stream of sound.
    If someone could point me to some documentation or some VERY well  
documented code, I would be very grateful.

     - Orion

ps - what about the possibility of a unit generator that got data from the dig  
ears and passed it on so that other unit generators could modify it?  It seems  
that the main problem would be setting up the SSI interrupts.  Is this  
possible?

--
Orion Poplawski
Physics Dept. Paraprofessional
The Colorado College
orion@proxima.cc.colorado.edu (NeXT mail OK)
(719)389-6750
Newsgroups: comp.sys.next.programmer
From: mrb@earth.wustl.edu (Mike Bray)
Subject: DBKit - How to force "select for update"?
Organization: Washington University, St. Louis MO
Date: Thu, 15 Oct 1992 03:39:14 GMT

After playing around with DBKit, I have discovered that it does a 
simple select to fill a DBRecordList, for example, to display in 
a DBTableView.  If you make changes to the data, it is made to the 
RecordList.  Sending the DBModule a "saveChanges" messages causes
the kit to do a "select for update" on the affected rows, and then
the SQL update or delete as appropriate.

The behavior I want in my user interface is different.  I want to 
do a simple read to display data, but then be able to press a 
button labeled "edit", which re-reads the data using a select for update
clause, so the rows affected are locked until I update the data or 
cancel the edit.

The question is, how can I do this without having to resort to
using a DBBinder and my own associations, etc.

Thanks for any and all help!

Mike Bray  mrb@earth.wustl.edu
From: alain@linguist.jussieu.fr
Newsgroups: comp.sys.next.programmer
Subject: application defined events (was Unlocking Focus on wrong View)
Date: 7 Oct 92 12:27:36 GMT
Followup-To: comp.sys.next.programmer
Organization: Universite Paris VI/Paris VII

Thanks to burchard@geom.umn.edu for helping me solve my previous
problem: I was getting "Unlocking Focus on wrong View" errors when
updating Views from a completion routine set by SNDStartRecording().  
It seems that the completion routine is executing in another thread
from that of the main loop, and that that was the source of the problem.

My present problem has to do with communicating from the completion
routine to the event loop.  

I tried posting an application-defined event from the completion
routine, and catching it in an applicationDefined: method in the
application's delegate.  The application-defined event is delivered 
all right, but only when other events appear (mouse, etc.).  Until
that happens, it stays queued.
I also tried overriding the sendEvent: message in Application, with
the same result: no events appear until I click somewhere.

The call to DSPPostEvent() specifies that the event should go before
all others (second parameter == 1).  What am I doing wrong?


Alain de Cheveigne,
alain@linguist.jussieu.fr
From: horde@reed.edu (Mr. Heiji Horde)
Newsgroups: comp.sys.next.programmer
Subject: Re: 2.0--3.0 binary compatibility
Date: 14 Oct 92 18:35:52 GMT
Article-I.D.: reed.1992Oct14.183552.7980
Organization: Twisted Genius Rehabilitation Center, a Division of MHE

In article <Bw4FrM.I5B@news.cso.uiuc.edu> jeffo@uiuc.edu (J.B. Nicholson-Owens) writes:
>The best solution (also the most costly but with the most rewards) is to get  
>all of your machines up to the latest (3.0) and use 3.0 to the fullest.

For those of us who don't have any money to upgrade, we can cheat.
There is always the option of booting your 2.x machines off the 3.0 machine.
  It'll be slow and you might need a machine with lots of disk space for swap.
  Of course, that means the disk on the 2.x machine doesn't get used for
  anything unless you tell it to.
NetBooting is covered in Chapter 9 of the Network and System Administration
  manual from NeXT. 

	-Heiji

===========================================================================
 Mr. Heiji Horde    (Non-NeXT mail only please)     e-mail: horde@reed.edu
   All insane acts are done in affiliation with Madd Hacker Enterprises
        Disclaimer: "WE are the people our parents warned us about!"
Newsgroups: comp.sys.next.programmer
From: BrianW@SoundS.WA.com (Brian Willoughby)
Subject: Re: (?) a shot in the dark concerning nextmail headers
Reply-To: BrianW@SoundS.WA.com
Organization: SoundSoftware, Bellevue, WA, USA
Date: Sat, 10 Oct 1992 06:44:24 GMT

Edward Murphy writes
| 
| i haven't been able to find much knowledge regarding the construction of  
| nextmail headers. specifically, what mechanism (field header, magic spell,  
| whatever) determined where a *read receipt* is returned to. anyone who has  
| any inkling and could drop me a note, i'd appreciate it.
| 
| pointers to where i might find it in the next documentation  
| (waaaaaahahahahahaa) would suffice, yea, even be preferred.
| 
| ed murphy
| grad slave from mars

No documentation, just something I noticed.  i.e. the line which says:

Received: by NeXT Mailer (1.63)

will be the following if a Read Receipt has been requested by the sender:

Received: by NeXT Mailer (1.63.RR)

Obviously, the actual mailer version number may be different, but the ".RR" is  
constant.  I search for the string ".RR)" on incoming mail and filter it to  
prevent receipts from being generated when I read the mail the first time.  I  
wouls assume that the mail is simply returned to the person or address listed  
in the header after From:, but I've never bothered to verify if that is always  
true.  I leave that test as an exercise for interested parties.
-- 
Brian Willoughby	Software Design Engineer, BSEE NCSU
BrianW@SoundS.WA.com	Sound Signal Processing Software and Consulting
NeXTmail welcome	- NO EMAIL SOLICITATION without prior permission
Newsgroups: comp.sys.next.programmer
From: rpruess@yoyo.weeg.uiowa.edu (Rex Pruess)
Subject: Finding Services my app provides
Organization: U of Iowa, Iowa City, IA
Date: Mon, 12 Oct 1992 23:19:23 GMT

I have an application which provides services to other apps.  These are
static services, determined at compile/load time using a "services" file.
In my app's Preferences, I give the user the option of enabling/disabling
individual Service items, per NeXT's recommendations.

Each time I change my app's "services" file, I must invoke InterfaceBuilder
& update my Preferences panel to reflect the changes.  I'd rather not do
that.  Instead, I'd like to build the Preferences list dynamically, based
on the contents of my static services file.  But, I can't figure out how to
find the contents of my static services file at run time.  I'd like
something along the lines of:

     myMenuServicesToOthers = [NXapp menuServicesMyAppProvides];

Note: I have no need to provide dynamic services.  I just need a way at
runtime to find the static services my app provides to other apps.

If it matters, I'm running NeXTSTEP Release 3.0.
--
----------------------------------------------------------------------------
    Rex Pruess, Weeg Computing Center, University of Iowa, Iowa City, IA
       NeXTmail: Rex-Pruess@uiowa.edu ......... Phone: (319) 335-5452
Newsgroups: comp.sys.next.programmer
From: dbbrown@eastrg2.cray.com (Dan Brown)
Subject: NeXTAnswers
Organization: Cray Research, Inc.
Distribution: usa
Date: 9 Oct 92 08:39:37 CDT

I used to get NeXTAnswers and the Support Bulletins off of the archives. I noticed that they
are no longer there. The latest I have are Spring 92. Is there a reason these answers are
no longer on the archives? Is there a way I can get issues later than what I have?

--
-----------------
   ____/    __  /   __  /  /   /               Dan Brown
  /        /   /   /   /     _/                Cray Research Inc.
 /           _/   __  /     /                  dbbrown@eastrg2.cray.com
Newsgroups: comp.sys.next.programmer
From: wfp@jupiter.claremont.edu (Frank Price)
Subject: Writing fax drivers?
Reply-To: wprice@pomona.claremont.edu
Organization: Harvey Mudd College, Claremont, CA 91711
Date: Sat, 10 Oct 1992 17:39:03 GMT

I'm trying to find out how to write drivers for fax modems.  I noticed that  
the Interfax and HSD both have drivers for their modems, but that is not the  
fax modem I have and I don't want to wait for the company to make their own  
fax driver.  Does anyone know of any example code for this or documentation?

Thanks!

-- Frank
__________________________________________________________________________
Frank Price               | wprice@pomona.claremont.edu
                          | "Nothing crashes like a Macintosh."
NeXTMail appreciated      |      - Guy Kawasaki
Newsgroups: comp.sys.next.programmer
From: emurphy@cs.uno.edu (Edward Murphy)
Subject: Re: (?) a shot in the dark concerning nextmail headers
Organization: University of New Orleans
Date: Wed, 14 Oct 1992 22:09:38 GMT

Brian Willoughby writes
> No documentation, just something I noticed.  i.e. the line which says:
> 
> Received: by NeXT Mailer (1.63)
> 
> will be the following if a Read Receipt has been requested by the  
sender:
> 
> Received: by NeXT Mailer (1.63.RR)
> 
> Obviously, the actual mailer version number may be different, but the  
".RR" is  
> constant.  I search for the string ".RR)" on incoming mail and filter it  
to  
> prevent receipts from being generated when I read the mail the first  
time.  I  
> wouls assume that the mail is simply returned to the person or address  
listed  
> in the header after From:, but I've never bothered to verify if that is  
always  
> true.  I leave that test as an exercise for interested parties.

brian,

you are quite correct. someone suggested this and so i played around and  
found it to be the case. i expect the problem i was having seeing this  
before was due to the density of my skull :) :).

indeed, someone sent a mail message to me indicating that there are  
actually 2 different mailers on the next. one designed to handle read  
receipts and the other not. the .RR that you mention inidcates which one  
is used.

as i've alluded, my problem has been solved. thanks for all who replied.

ed
Newsgroups: comp.sys.next.programmer
From: zeno@phylo.genetics.washington.edu (Sean Lamont)
Subject: CBDF files
Organization: University of Washington, Seattle
Date: Sun, 11 Oct 1992 09:30:13 GMT

does anyone have any example CBDF files (adobe bitmap font description)
or have any documents describing them, or have any mac font->cbdf
translation programs?

Thanks.



-- 
Sean T. Lamont                           |   "Don't oppress me, It's
zeno@genetics.washington.edu             |    'computer of color!' "
lamont@abstractsoft.com                  |_______________________________
Abstract Software                                                         
Newsgroups: comp.sys.next.programmer
From: C558172@mizzou1.missouri.edu
Subject: Interface Builder with straight C?
Organization: University of Missouri
Date: Sun, 11 Oct 92 14:35:16 CDT

I need to do a project in a Technical Writing class and I was wondering
if I could use the NeXT's interface builder with C. I don't know C++
or Objective C and doubt that I have time to learn (although I would like
too B-)). Could someone (who has used it please!) let me know:
1) if I can use the interface builder with C
2) How easy is it/ How long will it take a novice (to the builder)
   to learn it?
3) Some tips etc about it
4) If it can't be used with C, how long would it take an experianced
   programmer to learn objective C/C++ (I only learned C last year)
Thanks for any info...
--Shannon (c558172@mizzou1.missouri.edu)  NeXT mail coming soon? B-)
From: gmk@pegasos.ccsr.uiuc.edu (Gottfried Mayer-Kress)
Subject: device independent PostScript?
Reply-To: gmk@pegasos.ccsr.uiuc.edu (Gottfried Mayer-Kress)
Organization: University of Illinois at Urbana
Date: Fri, 9 Oct 1992 22:49:09 GMT

I just got a message from matthew@pencom.com (Matthew D. Waters)
with a bunch of .ps files. 
They were displayed on the screen with overlapping text such that I
couldn't read anything. I assume it is a font problem, since I
had encountered this with my own files before.
Can this be fixed? E.G. can the printing device be forced to use fonts of 
the same size? The way it is right now it is a disaster for "interpersonal  
computing".

--
Gottfried Mayer-Kress
Center for Complex Systems Research, Department of Physics
3025 Beckman Institute, 405 N Mathews, Urbana, Il 61801
gmk@pegasos.ccsr.uiuc.edu (NeXT-Mail)
gmk@goshawk.lanl.gov, gmk@santafe.edu 
(217)-244-5877 (voice/fax modem),x8371(fax), x1994 (msg)
From: ivo@NEXT.AGSM.UCLA.EDU (Ivo Welch)
Newsgroups: comp.sys.next.programmer
Subject: cc problem and cure: comparison among doubles can produce wrong results
Date: 17 Oct 92 00:21:33 GMT


There is a floating point comparison problem with the C compiler, resulting
from the  interaction of compiler switches  with the 68040 CPU. If  you run
this program through /NeXTStep_3.0/bin/cc (July 21, 1992):

	#include <stdio.h>
	int main() {
	  double omega;  double decay= 0.02, rev=0.05;
	
	  fprintf(stderr, "Code Starts");  omega = (rev)/(decay);

	  fprintf(stderr, "\n OMEGA = %f ==> %d\n", omega, omega!=omega);
	  fprintf(stderr, " OMEGA = %f ==> %d\n", omega, omega!=omega);
	  fprintf(stderr, " OMEGA = %f ==> %d\n", omega, omega!=omega);
	}

the output is

	Code Starts
	 OMEGA = 2.500000 ==> 1
	 OMEGA = 2.500000 ==> 0
	 OMEGA = 2.500000 ==> 0

If you use #define isNaN(x) ((x)!=(x)), chances  are your  code may produce
incorrect results.

The cure is to use the compiler switch -m68040-only (on  the C compiler) or
-ffloat-store (either on the C or the C++ compiler).   (I believe the cause
of  the    problem  is  how  differences in   internal  and external/stored
precisions interact with  compiler optimizations.)  Of course, your  MFLOPS
rating may go down...

/ivo welch