HDTenEightyP/NetNews huggingface dataset:
From: izumi@pinoko.berkeley.edu (Izumi Ohzawa)
Newsgroups: comp.sys.next.programmer
Subject: How to prevent other apps from becoming active ?
Date: 14 Oct 92 09:27:51 GMT
Organization: University of California, Berkeley
NNTP-Posting-Host: moomin.berkeley.edu

Keywords: Music, sound, DSP, real-time
Reply-To: izumi@pinoko.berkeley.edu
Distribution: world



Music, sound recording/playback, and other DSP apps that
do real-time work often need to get as much processing power as
possible.

As an option to my real-time app, I would like to add a capability
to disable GUI of all other applications (including Workspace/Dock),
so they don't get activated inadvertently during a heavy real-time
activity. 
Could anyone point me to an example code that does this
or relevant section of the doc?

Also, how do I lock down windows and panels of my app so
that they can't be moved during real-time activity?  Dragging
a large window around is very bad for real-time processing.
I still need mouse-dragged and other mouse events in views within a
window which is locked down.  Again, any examples? 

I incorporated "fixed policy"  and maximum priority code by
David A. Jaffe (available as file fixedpolicy.tar.Z from
ccrma-ftp.stanford.edu), but dragging windows still causes
bad things to my app.   Users shouldn't be dragging windows and
scrolling large regions at a critical moment, but our kind of apps
should be able to prevent these unwanted activities which result
in a disaster.

Thanks,

---
Izumi Ohzawa
USMail: University of California, 360 Minor Hall, Berkeley, CA 94720
Telephone: (510) 642-6440     Fax:  (510) 642-6341
Internet: izumi@pinoko.berkeley.edu (NeXT Mail OK)
gging
a large window around is very bad for real-time processing.
I still need mouse-dragged and other mouse events in views within a
window which is locked down.  Again, any examples? 

I incorporated "fixed policy"  and maximum priority code by
David A. Jaffe (available as file fixedpolicy.tar.Z from
ccrma-ftp.stanford.edu), but dragging windows still causes
bad things to my app.   Users shouldn't be dragging windows and
scrolling large regions at a
Newsgroups: comp.sys.next.programmer
From: sam_s@NeXT.com (Sam Streeper)
Newsgroups: comp.sys.next.programmer
Subject: Re: Does IB impose a rigid design?
Date: 14 Oct 92 00:28:28 GMT
Reply-To: sam_s@NeXT.com

Robert D. Nicholson writes:
> Does NeXT's Interface Builder impose a rigid design on applications?

No, it makes it very easy to create a bad user interface!  8^)

-sam

--
Opinions expressed herein are not those of my employer.  They're not even
mine.  They're probably wrong besides.  How did they get in here, anyway?
Xref: sparky comp.sys.next.programmer:6655 comp.sys.next.misc:20949
From: bizarre@clients-r-us.tamu.edu (Tom Swanner III)
Newsgroups: comp.sys.next.programmer,comp.sys.next.misc
Subject: windowserver dies when image meets machportdevice in 3.0
Keywords: windowserver image machportdevice 3.0
Date: 14 Oct 92 16:22:30 GMT
Article-I.D.: tamsun.1992Oct14.162230.26678
Organization: Texas A&M University, College Station

I have a set of programs (derived from Eric P. Scott's IWF 2.0) which receive  
PostScript files from a main server on the net, rip them using the  
machportdevice operator, create Xerox 9790 interleaved graphic files and send  
the graphic files back to the main server to be printed.  I use the  
machportdevice operator and the NeXTLaser-300 pixel encoding dictionary.  Under  
NeXTStep 2.1 this setup worked fine...  Now I have upgraded to 3.0.  When I get  
certain files which have the image operator in them, I get this error on the  
console:

Oct 14 10:52:11 clients-r-us WM[process#]: DPS client library error: Error  
while writing to connection, DPSContext context#, data -102

for each process that is using the windowserver.  The cursor disappears and  
then BANG!...I'm logged out.

If I use the NeXTCBJ pixel encoding dictionary everything seems to work o.k.
In <mach/message.h> -102 is defined like this:

#define SEND_INVALID_PORT	-102	/* Reference to inacessible port */

Have I stumbled on a bug in NeXTStep 3.0?  Am I even looking in the right  
direction?  Is there a way I can rip PostScript files with PostScript Level 2  
without even using the machportdevice operator?  Are there any examples out  
there?  Am I asking too damned many questions?
Please reply to bizarre@clients-r-us.tamu.edu
Thanks.

Tom Swanner III
bizarre@clients-r-us.tamu.edu
From: cc100aa@xray.gatech.edu (Ray Spalding)
Newsgroups: comp.sys.next.programmer
Subject: Re: Questions on inherited Text object in a ScrollView
Keywords: Text object ScrollView Interface Builder IB inherit
Date: 8 Oct 92 21:14:13 GMT
Organization: Georgia Institute of Technology

In article <73182@apple.Apple.COM> gordie@duts.ccc.amdahl.com writes:
> 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.

Rather than use the scrolling text palette object, try this:
Drag in a CustomView from the Views palette.  Change the class
of the CustomView to your CText subclass.  Then, choose
"Group in ScrollView" from the "Layout" menu.

> 1) Can I set the Text object's delegate from within IB?

If you set things up as above, this should be no problem.
Just select the ScrollView, then double-click your CText View.
"delegate" should appear in the Connections inspector.

> 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 had no trouble with this.  Just be careful where you drag to.
As you control-drag into the ScrollView, first the ScrollView itself
will be highlighted; release here to connect to it.  If you continue
dragging, the Text object becomes highlighted.
-- 
Ray Spalding, Office of Information Technology
Georgia Institute of Technology, Atlanta Georgia, 30332-0715
Internet: ray.spalding@oit.gatech.edu (NeXT Mail accepted)
From: wierda@ltb.ltb.bso.nl (Gerben Wierda)
Newsgroups: comp.sys.next.programmer
Subject: How do I get the key equivalent of a button working?
Date: 15 Oct 92 16:52:26 GMT
Reply-To: gerben@rna.indiv.nluug.nl
Organization: BSO/LT, Baarn, The Netherlands

See subject. I added a value in the Key field of the button inspector, but it
just doesn't work, and since It Just Works (TM) I must be doing something
wrong.

So: simple question: How do I get a button to respond to a key (like for
instance the '5' key).

Thanks,

-- 
wierda@ltb.bso.nl (Gerben Wierda)     ||    #include <std/disclaimer.h>. Support
NeXTmail: gerben@rna.indiv.nluug.nl   ||    the League for Programming Freedom!
    "If you don't know where you are going, any road will take you there."
    (From the Talmud(?), rephrased in) Lewis Carroll, "Alice in Wonderland".
Newsgroups: comp.sys.next.programmer
From: BrianW@SoundS.WA.com (Brian Willoughby)
Subject: Re: Help with C-News
Reply-To: BrianW@SoundS.WA.com
Organization: SoundSoftware, Bellevue, WA, USA
Date: Thu, 8 Oct 1992 02:32:19 GMT

john a mastrolia writes
| For those familiar with installing c-news!  I need some help/advice on  
| installing c-news on my NeXTStation Turbo system.  I tried to execute the  
| scripts (with the guidance of the Canada NUG .ps file) under both 2.2 & 3.0.   
| Both reported the same problem in the second script file executed (not exact  
| output):
| 
| putenv.c number of parameters did not match prototype.
| Exit 1 *******
| + Stop

Here is the diff of the changes I made to putenv.c to compile a working C-News  
under 3.0:

diff -r /tmp/O_c-news/libfake/putenv.c /LocalLibrary/C-News/libfake/putenv.c
19c19
< char *var;
---
> const char *var;

While I'm at it, I might as well mention the rest of the changes I had to make  
(expire.c was the only other file which I had to modify):

diff -r /tmp/O_c-news/expire/expire.c /LocalLibrary/C-News/expire/expire.c
121c121
< extern double atof();
---
> //extern double atof();

-- 
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: hlam@bnr.ca (Hayward Lam)
Subject: Thanks (C++ compiler question)
Reply-To: hlam@bnr.ca (Hayward Lam)
Organization: Bell-Northern Research Ltd.
Date: Thu, 15 Oct 92 14:44:26 GMT

Thanks to all who helped. I can get it going now. I also need libg++
for streamio in the future.

Regards,
Hayward

internet: hlam@bnr.ca
From: markus@stein.u.washington.edu (Markus Lankeit)
Newsgroups: comp.sys.next.programmer
Subject: libg++ -- 3.0 binaries anyone?
Summary: Want 3.0 compatable libg++ or hints on how to compile it.
Keywords: C++ library, 3.0
Date: 7 Oct 92 18:26:57 GMT
Article-I.D.: u.1992Oct7.182657.7539
Organization: University of Washington

Sorry if this subject has come up before, but I tried checking the FAQ and
Archie -- without success.

I bascially need the c++ libraries (the gnu libg++) to work under 3.0.  I 
don't know if libraries compiled under 2.x will work under 3.0 'cause I
never compiled them under 2.x and I can't find any binary copies on any
of the archive servers out there.

So, I found the libg++ source and tried to compile it myself.  As the gcc
shipped with 3.0 is 1.39.something, I got the 1.39.0 library source.
Doing a "make src" resulted in numerous warnings and eventually barfed
for various reasons.  Now, I imagine that if I sit down and spend 4-5 hours
on it, I could probably get it compiled. 

But before I do this, is there anyone out there that has done this already 
and is willing to share their result via ftp or email?  

I'd be even content with stuff done under 2.x as I'm hoping it will work 
under 3.0...

Thanks in advance for any help or advice on this,

markus

Markus Lankeit
University of Washington
From: miron@extropia.wimsey.bc.ca (Miron Cuperman)
Newsgroups: comp.sys.next.programmer
Subject: How to post RTFD to pasteboard?
Date: 12 Oct 92 01:53:05 GMT
Organization: Immortal Freedom's Deck

I wanted to write a service that gets a selection, encrypts it and
pastes back a file.  I thought this could be done by pasting RTFD,
but there's no NXRTFDPboardType.  Any ideas?
-- 
	Miron Cuperman <miron@extropia.wimsey.bc.ca> | NeXTmail/mime ok
		       <miron@cs.sfu.ca>	     | Public key avail
	AMIX: MCuperman				     |
immortalcybercomputinglaissezfaire		     |
From: jalegre@tsp.med.umn.edu (John Alegre)
Newsgroups: comp.sys.next.programmer
Subject: Freeing Objects
Date: 15 Oct 92 18:56:00 GMT
Article-I.D.: news2.1992Oct15.185600.24457
Organization: University of Minnesota


This should spark some discussion.

I have an app with four subprojects.  I have a main "Controller Object"
which communicates with the File Owner of all the subprojects.  Menus and
Buttons, etc are connected to the Controller Object which then sends
messages to the File Owner objects of the subprojects to init themselves,
load .nib files, and respond to various other methods when needed.

Ok, fine.

In my Controller Object, I have the method:

-free:sender;
{
	(Code to clean up Controller Object instance vars)
	[mySubprojectOwnerObject1 free];
	[mySubprojectOwnerObject2 free];
	[mySubprojectOwnerObject3 free];
	[mySubprojectOwnerObject4 free];
	return self;
}

and each of my SubprojectOwnerObjects has a method:

-free:sender;
{
	(Code to clean up File Owner Object instance vars)
	return [super free];
}

I do this because my subprojects are created and destroyed many
times during the course of the application and I do not want to
grab more memory than I need.

Well yesterday in gdb I noticed that none of my -free methods
are ever being called.  The program exits normally without ever
calling these methods as far as I can tell.

Do such File Owner and Controller objects not need to be freed?
Am I not connecting something or setting up a delegate correctly?
(The File Owner objects sets the proper View as it's delegate.)
If it is a case of not needing to free such objects, what objects
should be freed and what ones not?

Replies received that are not posted in comp.sys.next.programmer
will be summarized.

Thank you
John N. Alegre
Andante Systems
VideoLabs Inc.

#############################################################
# NeXTMail preferred.             |
# jdev@andnate.mn.org             |
# alegrej@andante.mn.org          | If you plant ice,
# jdev@lenti.andante.mn.org       |  you're gonna harvest wind!
# alegrej@libros.andante.mn.org   |    Hunter/Garcia      
#############################################################
From: zeno@phylo.genetics.washington.edu (Sean Lamont)
Newsgroups: comp.sys.next.programmer
Subject: Re: Help requested: Something about pointers still eludes me
Date: 16 Oct 92 04:28:51 GMT
Article-I.D.: u.1992Oct16.042851.14939
Organization: University of Washington, Seattle

In article <1992Oct15.181252.1796@u.washington.edu> goldly@u.washington.edu (Lloyd P. Goldwasser) writes:
>I'm trying to make a dynamically-declared pointer pointer
>
>  float **x
>
>point to a pre-existing 2-d array
>
>  float x_init[][7]={ {1., 2., 3., ...}, {...}, {...} };
>

I believe the fundamental problem here is your misunderstanding of
2-d arrays vs. arrays of arrays (ptrs to ptrs).you've declared two things here, one
static array of constants, and one "pointer pointer".  While you can
refer to both of them as array[posx][posy], the static declaration is a
2-d array, which is NOT an array of pointers.  It is one pointer into a
chunk of memory which contains the following

First row
Second row
...
Nth row.

There's only one level of indirection here.  However, the float ** is
two levels of indirection.  

If you really want to do what you ask, you can't do it with a simple
assign.  What you would probably need to do is malloc space for the
primary array, and assign (in a loop of some sort) each secondary
pointer to point at &x_init[i]
-- 
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: cpf@broca.med.virginia.edu(Chris Fall)
Subject: porting to NeXT?
Organization: University of Virginia
Date: Thu, 8 Oct 1992 01:32:04 GMT

I've a package that I would like to port to the NeXT. It runs under X windows  
(we have Co-Xist) and seems to have been written for just about any machine  
save for the NeXT - including sun3 & 4. 

I wonder if anyone could tell me where to find information on the obvious imake  
machine dependecies which would need to be set for the NeXT?

Chris Fall
cpf@broca.med.virginia.edu
From: rhess@consilium.COM (Richard L. Hess)
Newsgroups: comp.sys.next.sysadmin
Subject: Re: Can't get photorealistic rendering working
Date: 7 Oct 92 23:50:09 GMT
Organization: Consilium Inc., Mountain View, California.
In-reply-to: sritchie@cs.ubc.ca's message of 7 Oct 92 00:37:18 GMT
X-UserAgent: GNUS 3.13  [ NNTP-based News Reader for GNU Emacs ]

>>>>> "Stuart" == Stuart Ritchie <sritchie@cs.ubc.ca> writes:

Stuart> Now it seems to work.  Someone please correct me if there is a better
Stuart> way to do this!

  Why not just use the NetInfoManager.app?  It's real easy;

	1) launch NetInfoManager.app from your WorkSpace
	2) select "machines"
	3) select your machine's node name; "bowen"
	4) double click on "bowen" to open it
	5) select "name" in the Properties column
	6) select "New Value" in the "Directory" submenu of the main menu
	7) change "new_value" to "localhost" in the Values column
	8) save your changes & close the Properties/Values window

  It worked for me.

Dick...
  
+----------------------------------------------------------
WHO:	Richard Hess	[ Staff Engineer ]
CORP:	Consilium Inc,	640 Clyde Court, Mtn View, CA 94043
VOICE:	[415] 691-6342
EMAIL:	rhess@consilium.COM  <-----------------[ NeXTmail ]
+
From: marcel%mlogic.uucp@usc.edu (Marcel Samek)
Newsgroups: comp.sys.next.sysadmin
Subject: Request for help in setting up a gateway.
Date: 13 Oct 92 22:29:56 GMT
Reply-To: marcel%mlogic.uucp@usc.edu
Organization: Media Logic Incorporated


I have a NetInfo network of NeXTs at the office and I also have one at home. I  
have successfully set up a SLIP connection between the machine at home and one  
of the machines on the network at the office. I would like all the other  
machines on the network at the office to be directly accessible by my home  
machine over the SLIP connection. 

I assume that I need to create some sort of gateway, but am totally ignorant as  
to how I should go about doing this. Could some kind and knowledgeable soul  
please point me in the right direction.

Marcel
marcel%mlogic.uucp@usc.edu
Newsgroups: comp.sys.next.sysadmin
From: BrianW@SoundS.WA.com (Brian Willoughby)
Subject: SLIP 920904 doesn't like dialins on 3.0 system(s) with NXFax 1.02
Reply-To: BrianW@SoundS.WA.com
Organization: SoundSoftware, Bellevue, WA, USA
Date: Sat, 10 Oct 1992 22:53:20 GMT

Carl Erickson writes
|  bchin@is-next.umd.edu (Bill Chin) writes:
| > > BrianW@SoundS.WA.com writes:
| > >>Now that he has upgraded to 3.0 also, we both get the following message  
| > >>when logging into the SLIP account:
| > >>
| > >>Can't open TTY for "slip1" m
| > 
| > Also make sure that NXFax isn't running - the way it takes over the serial
| > ports conflicts with Transys SLIP (haven't tested it with Teleconnect).
| 
| This problem arises when using older versions of Transys SLIP (older than
| 920904?) and NXFax 1.02.  Getting the latest copy of SLIP fixed the
| problem for me. I believe this will also be fixed in forth-coming releases
| of NXFax.

We are both running TransSys 920904.  I still cannot get a connection from the  
SLIP server running on the machine with NXFax 1.02
-- 
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.sysadmin
From: eschwart@netcom.Netcom.COM (Eric Schwartz)
Subject: SLIP problem
Organization: Netcom Online Communications Service
Distribution: comp
Date: Wed, 14 Oct 1992 01:12:20 GMT

I have Louis Mamako's DialUp-IP running on a NeXTstation, and I can get it
to connect and login to the remote site.  Before, I was getting the following
error all over the place in the console window:

Oct 13 15:49:44 whyanext mach: zs0: recv buffer overrun


But I think I solved that by fixing some flow control problems.  The errors
are gone.  NOW, I can't get telnet or any other packet requesting/generating
client to do anything over the link.  If I telnet to the SLIP server site,
after a successful "./slipup", etc., it just sits there and the log files
show no sign of activity.

A few more tries (of telnet, ftp, finger, etc.), and then the line suddenly
drops.

I'm not sure what to look for to solve the problem.  Any ideas?

Eric
Xref: sparky comp.sys.next.sysadmin:5810 comp.sys.next.misc:20841
From: laroche@wayne.enst.fr (Jean Laroche )
Newsgroups: comp.sys.next.sysadmin,comp.sys.next.misc
Subject: Keyboard Problem
Date: 12 Oct 92 09:49:32 GMT
Followup-To: comp.sys.next.sysadmin

Hi guys!

Since I upgraded to 3.0, I've had a rather annoying problem: every now and  
then, it becomes impossible to type anything using the keyboard (just like it  
was physically disconnected). You have to run Preferences and set-up the  
keyboard localization to whatever it was set-up before, and this fixes the  
problem, momentarily.
This big problem is when this happens while no one is logged in! You're stuck  
with a login window where you can't type anything! Big bummer!

Has anyone ran into this problem? Is there a way to fix it, other than  
rebooting the machine?

Jean Laroche
Telecom Paris.
Newsgroups: comp.sys.next.sysadmin
From: pascal@nextasy.physics.mcmaster.ca (Pascal Gaudette)
Subject: /bin/su.nowheel corrupted - but how!?!
Keywords: malevolent hacker?
Organization: McMaster University, Hamilton, Ontario.
Date: Wed, 7 Oct 1992 21:44:20 GMT


This is *really* very weird.

It worked six days ago, when I last su-ed, but now
my /bin/su.nowheel has been corrupted and doesn't work
anymore.

From my machine (3.0):
> nextasy>ls -l /bin/su*
> lrwxrwxrwx  1 root          10 Jan  9  1991 /bin/su -> su.nowheel@
> -r--r--r--  1 root        2448 Jul 22 11:29 /bin/su.nowheel
> -rwxr-xr-x  1 root        7096 Jul 21 12:48 /bin/su.wheel*
> 

From a healthy one (3.0):
> micro> ls -l /bin/su*
> lrwxrwxrwx  1 root          10 Feb  6  1992 /bin/su -> su.nowheel@
> -rwsr-xr-x  1 root        7048 Jul 21 18:48 /bin/su.nowheel*
> -rwxr-xr-x  1 root        7096 Jul 21 18:48 /bin/su.wheel*
> 

Notice how it's not just the permissions that have changed, the
actual file *size* is different. As it is now, even if I give
execute permission (and even set the setuid bit on - as I unwisely
did before noticing it wasn't just permissions), it doesn't run
at all (produces a few error messages and dies)... Notice the
modification dates...

How could this have happened? Do I have a malevolent hacker
on my hands? (I did give an account to someone I don't know
very well about one month ago... although I have no reasons
to suspect him of anything, and I know from /usr/adm/messages
that he hasn't tried to su root.)

Any ideas?
--
Pascal "The Rascal" Gaudette       pascal@nextasy.physics.mcmaster.ca
MacNUG president                      | *NeXTmail encouraged* 
graduate student, McMaster university | Je ne suis pas infaillible.
Physics and astronomy dep.            | Vive le Quebec LIBRE!
Newsgroups: comp.sys.next.sysadmin
From: haker@whitewater.chem.wisc.edu (Michael Haker)
Subject: Re: HostManager and UserManger don't work
Organization: Physical Sciences Lab, UW-Madison
Date: Sat, 10 Oct 92 06:40:32 GMT

In article <1992Oct7.170405.18884@nwnexus.WA.COM> dean@thrall.com (Dean  
Johnson) writes:
> 
> Ok, guys I have a problem. I just upgraded to 3.0 last week. No problems  
until  
> now. I just attempted to run HostManager.app and it doesn't launch. It  
starts  
> to, but fails. Same goes for UserManager.
> 
> Dean Johnson

We had the same problem with our system upgrade and ended up completly  
reinstalling the system on our two machines.  At our NextUsers group  
meeting this week we were talking about this problem and so far the best  
hypothesis we have is that those systems where a netinfo client was  
upgraded before the netinfo server have these kind of problems, but those  
that upgraded the sever first did not.  

SO UPGRADE YOUR NETINFO SERVER FIRST.  

In response to your problem so far the only solution I'm aware of is to  
completely reinstall the system software.  To do a complete reinstall set  
the cd-rom so it has scsi address of 0 and reboot with the 3.0 cd in the  
drive, the system boots off the cd and goes through a complete upgrade  
with the option to initialize the hard drive (we didn't need to, but  
beware of links if you've moved system software onto external disk, the  
system can't write over the link since only sd1a is mounted).

Mike Haker
dept chem UW-madison
haker@whitewater.chem.wisc.edu
Newsgroups: comp.sys.next.sysadmin