HDTenEightyP/NetNews huggingface dataset:
From: shanega@athena.mit.edu (Shane G. Artis)
Subject: Question about inherited paths
Organization: Massachusetts Institute of Technology
Date: Thu, 7 Jan 1993 23:34:40 GMT


I am having a big problem setting up the search path tree for my application.

As I understand it, the normal way to provide a path to an application
launched from an icon is by using the defaults database like so:

dwrite Workspace ApplicationPath ~/bin:~/lib:/me/foo

Thus if that program in turn looks for executables or data it will
search the paths listed by the default path tree.

My program is a port of an existing program, and, due to its nature,
requires me to strip off the command-line flags added by the Workspace
(-MachLaunch nn nn) and replace them with my own command-line
arguments shortly after startup, and before the main event loop
([NXApp run]) has been entered.  Whether this is the cause or not, my
application only searches a small number of pre-determined paths
(~/Apps, /bin, a few others I've been able to find) and refuses to
search any nonstandard ones listed by the ApplicationPath default.

So, how do I pass a customized path tree to my program in a standard
way, without modifying the program code any further if at all
possible?  Is there some global .profile or .cshrc file that lists a
path tree for all executed programs?  I'm baffled and an important
customer of mine awaits the result of this question.  Speculation and
any information are most welcome.  Please e-mail me if possible and I
can summarize.

Thank-you,

Shane
Newsgroups: comp.sys.next.programmer
From: gpal@fnma.com (Greg Pal)
Subject: NXBrowsers
Keywords: browser
Organization: Fannie Mae
Date: Tue, 12 Jan 1993 18:25:00 GMT

Is there a method like textWillChange for browser?  Bascially, I trying to  
set up a button which will only be enabled when a leaf of a browser is  
selected.

Any help will be much appreciated.  Thanks.

--
Gregory Pal  (gpal@fnma.com)
Fannie Mae Corporation, Advanced Technology
From: isbell@cats.ucsc.edu (Art Isbell)
Newsgroups: comp.sys.next.programmer
Subject: Re: NeXT lex
Date: 10 Jan 93 22:44:25 GMT
Organization: Cubic Solutions - NeXT software development and consulting
NNTP-Posting-Host: si.ucsc.edu


In article <1993Jan9.232243.14902@pellns.alleg.edu> sunthej@alleg.edu writes:

[ description of lex problem deleted ]

Although I don't claim to be a lex expert, I seem to have stumbled across a
very irritating NeXT 2.1 and 3.0 lex bug: lex doesn't seem to grok '_' in a
range of characters making defining C variable names as tokens kinda tough.
NeXT lex treats '_' as a space character thus returning separate tokens before
and after all occurrences of '_' :-(  Replacing all '_' with other characters
(e.g., '>', '<', etc.) returns correct tokens.

Has anyone else been able to successfully search for tokens containing the '_'
character using NeXT's lex?  Maybe I'm doing something wrong.  Meanwhile, I've
downloaded the latest flex and bison to see whether their output can legally be
included in commercial apps.  I think the FSF's policy may have changed to
permit this, but I'm not sure.  Anyone else know for sure?
-- 

Art Isbell                                                      Cubic Solutions
NeXT Registered Developer #745         NeXT software development and consulting
NeXTmail: isbell@cats.UCSC.EDU                             Voice: (408)335-1154
USmail: 95018-9442                                           Fax: (408)335-2515
From: biff@biff.gbdata.com (Dwight Everhart)
Newsgroups: comp.sys.next.programmer
Subject: Re: Pointers to functions in method definitions
Date: Mon, 11 Jan 1993 02:46:17 GMT

In article <C0CAtI.KqM@knot.ccs.queensu.ca> alastair@hecate.phy.queensu.ca  
(A.B. McLean) writes:
> I want to write a method that will accept a pointer to a C function.
[...]
> In the interface file I would expect (Kernigham amd Ritchie section 5.11)
> the method definition to look like 
> 
> - methodName:void(*gaussian)(float, float*, float*);

In Objective-C method declarations, all types must be given in parenthesis,  
using the C type-cast syntax.  Also, the name of the argument is given after  
its type.  So what you want is:

- methodName:(void(*)(float, float*, float*))gaussian;

--
Dwight Everhart          "Technology turned out to be less important than
Houston, Texas            sales and distribution methods ... we consistently
biff@biff.gbdata.com      outsold people who had better technology."
NeXTMail and MIME OK      -- Thomas J. Watson Jr., on the success of IBM
From: eboltz@jhunix.hcf.jhu.edu (Eric Scott Boltz)
Newsgroups: comp.sys.next.programmer
Subject: Complex variables in NeXT's C
Date: 12 Jan 1993 18:16:32 -0500
Organization: Homewood Academic Computing, Johns Hopkins University, Baltimore, Md, USA
Distribution: world
NNTP-Posting-Host: jhunix.hcf.jhu.edu

Hi,
I've just started trying to program on a NeXT, and I'm interested in 
learning more about implementing complex variables. Many of the DOS
compilers have this stuff built in.

Any help appreciated,

Eric
From: zeno@phylo.genetics.washington.edu (Sean Lamont)
Newsgroups: comp.sys.next.programmer
Subject: How to request that workspace execute 'eject'?
Date: 4 Jan 93 09:05:00 GMT
Article-I.D.: shelley.1i8ujsINNljg
Distribution: world
Organization: Abstract Software
NNTP-Posting-Host: phylo.genetics.washington.edu

Is there any way to request that the workspace request the current
removable-media disk in the drive?  Because of file permissions (and
not wanting to run the program with root permissions) I can't use DKIOCEJECT.

Thanks.

-- 
Sean T. Lamont                           |   "Don't oppress me, It's
zeno@genetics.washington.edu             |    'computer of color!' "
lamont@abstractsoft.com                  |_______________________________
Abstract Software
From: david_spitzler@next.com (David Spitzler)
Newsgroups: comp.sys.next.programmer
Subject: The EDUCOM Software and Curriculum Innovation Awards
Date: 7 Jan 93 00:17:11 GMT
Reply-To: david_spitzler@next.com

The EDUCOM Software and Curriculum Innovation Awards Program is
accepting entries for the 1993 competition.  The deadline for submissions
is February 26.  To request that an entry form be sent to you, send
e-mail to awards@cristal.umd.edu, or call 301/405-7534.

There are two categories in which submissions can be made:  the Product
Division, for original software designed to enhance student learning, and
the Curriculum Innovation Division, which focuses on the use of
technology by rewarding excellence in teaching with computers.  There is
no requirement that original software be developed by the submitter to
enter an application in the Curriculum Innovation category, just that the
computer be applied in ways that meet an important instructional need.
The innovation might be the creative classroom use of existing
commercial software packages; it might be the adaptation of existing
packages for educational use; or it might be built around new software
designed by the applicant.

Entries will be reviewed in the following disciplines, all of which are at
the undergraduate level except Law:

* Natural Sciences, which can include Astronomy, Atmospheric Science,
Biology, Botany, Ecology, Forestry, Genetics, Zoology, Chemistry, Geology,
or Physics;

* Humanities, including Area Studies, Communications, English
(Literature or Composition), Journalism, Foreign Languages, or
Philosophy;

* Engineering, including Aerospace, Chemical, Civil, Computer Science,
Electrical, Mechanical, or Nuclear;

* Mathematics, which can include Algebra, Calculus, Geometry, Statistics,
or other;

* Social Sciences, including Anthropology, Archaeology, Economics,
Geography, History, Political Science, Psychology, Sociology, Statistics  
or Research Methods; and

* Law (Graduate level), which can include any area of specialization.


--
David Spitzler
Manager, Higher Education Marketing
NeXT Computer, Inc.
900 Chesapeake Drive
Redwood City, CA 94063 USA
david_spitzler@next.com
Newsgroups: comp.sys.next.programmer
From: katzung@i88.isc.com (Brian Katzung)
Subject: Re: InterfaceBuilder: No KeyAndOrderFront at app's startup??
Keywords: ProjectBuilder; InterfaceBuilder; makeKeyAndOrderFront
Organization: Interactive Systems Corporation, Naperville, IL
Date: Fri, 08 Jan 1993 21:30:27 GMT

It is considered rude and uncivilized for applications to
unconditionally activate themselves at startup because the
user may have activated some other application in the mean
time (see - activateSelf: (Application)).

I have included the source for "activate" that you can use to
activate your application after you "open" it.  You might want
to add some enhancements such as appending ".app" if
NXPortFromName() can't find the application as specified.

  -- Brian Katzung  katzung@{i88.isc, swissbank}.com

//
// activate -- Tell an application to activate itself
//	Brian Katzung  8 January 1993
//
// Compile with -lNeXT_s.
//

#import <appkit/appkit.h>
#import <appkit/Speaker.h>

// Activate the named application using the provided speaker
void
activate (id speaker, const char *appName)
{
	BOOL	yes = YES;

	[speaker setSendPort: NXPortFromName(appName, NULL)];
	[speaker performRemoteMethod: "activateSelf:"
	  with: (const char *) &yes length: sizeof(yes)];
}

int
main (int ac, char **av)
{
	if (ac > 1)
	{
		id	speaker;

		speaker = [[Speaker alloc] init];
		activate(speaker, av[1]);
		[speaker free];
	}

	return 0;
}
From: lacsap@plethora.media.mit.edu (Pascal Chesnais)
Newsgroups: comp.sys.next.programmer
Subject: Re: Problems using gcc 2.3.3
Date: 7 Jan 93 21:07:40 GMT
Reply-To: csn@plethora.media.mit.edu
Organization: MIT Media Laboratory

In article <1993Jan05.212648.9258@convex.com> finger@convex.com (Jay  
Finger) writes:
> Is the stuff in pub/next/GnuSource.tar.Z the same as what is on the 3.0
> CDROM?  And while I'm thinking about it, are the GNU sources on the
> Eduucational-CDROM for NeXTSTEP 2.x or 3.0?
> 
> jay
Yes and Yes,

pasc
Xref: sparky comp.sys.next.programmer:8097 comp.lang.postscript:6253
From: gordie@cyclesoft.com (Gordie Freedman)
Subject: Re: InterfaceBuilder: No KeyAndOrderFront at app's startup??
Reply-To: gordie@cyclesoft.com
Organization: Dolphin Software
Date: Thu, 7 Jan 1993 06:13:07 GMT

In article <1993Jan5.130920.29274@oce.nl> fjh@oce.nl (Erik Hommersom) writes:
> Hi there,
> 
> When I start an application, made with InterfaceBuilder in a Terminal, 
> it is not activated, but the Terminal application remains the active
> application. 
> 
> Instead I would like to have MyApplication become active after it has been
> launched from a Terminal, without having to click on one of its windows. 
> 
> The problem I have is that I cannot figure out where to call the method
> "makeKeyAndOrderFront" if not in the main.m program generated by
> InterfaceBuilder?
> 
> Can someone tell me how to activate an application at startup under these
> conditions?
> 
> Thanks,
> 
> Erik Hommersom
> OCE Research & Development, Venlo, The Netherlands
> 
>       ###########################################################
>       #  This note does not necessarily represent the position  #
>       #     of Oce-Nederland B.V. Therefore no liability or     #
>       #      responsibility for whatever will be accepted.      #
>       ###########################################################

Ok. Assuming there is some class you have defined, and an instance of that  
class you have placed in Interface Builder - (if not, than define a class  
called Controller, instantiate an object in builder and implement the method I  
will describe now, as well as the delegate trick).

Set the object as the application delegate from within IB (I don't know if you  
know all this stuff and can't wait for me to get to the point, or if you are a  
newbie and don't know what I'm talking about - so if this doesn't make sense,  
email me for more info).

Implement the -appDidInit:sender instance method in the Controller class. It  
will get invoked on your object after the application inits, so you can do the  
makeKeyAndOrderFront then. Look in digi librarian in General Reference at the  
"Application" class  documentation - it explains this and more (like how to  
catch when the app is ending). 

Works on 3.0, I don't know about 2.x ...

-- 
>>> Gordie Freedman  -> gordie@cyclesoft.com   NeXTMail Yes! 
>>> Thou shalt not inline functions more complicated than 20 
Newsgroups: comp.sys.next.programmer
From: The Iguana
Subject: Re: tcsh
Reply-To: iguana@mik.uky.edu
Organization: University Of Kentucky, Dept. of Math Sciences
Date: Wed, 6 Jan 1993 15:50:21 GMT

:>	Hello.  I have seen several tcsh shells available on the net.  Is  
:>there any particularly compelling reason to use tcsh vs csh vs sh?
:>
:>	Thanks
:>	Jake

Cshell is generally accepted over Bourne shell (sh) for the fact that it  
allows shell programming in the C language. TCshell is often used because  
it allows for WATCHes to be set. For instance, I use TCshell because I can  
leave a terminal window open and it will update me as to who is logging  
into and off my machine.

--
Paul D Thompson ----------------------------------------- "Never  regret"                  
iguana@mik.uky.edu (NeXTMail accepted)
University of Kentucky Hardware/Software Consultant
Most Recent Purchase: Fender San Miguel LH (yes I'm left-handed)
From: hacker@access.digex.com (Dark Hacker)
Newsgroups: comp.sys.next.programmer
Subject: Re: Symbol tables of dynamically loaded objects in gdb
Date: 5 Jan 1993 05:03:24 GMT
Organization: Express Access Online Communications, Greenbelt, MD USA
NNTP-Posting-Host: access.digex.com


While we're on the subject of GDB on the NeXT.... when I try to debug
modules that are in a file other than the one the main is located in,
I... well... can't debug them.  GDB doesn't want to recognize that the
modules exist.  I've tried stuff like:

(gdb) break fooFile:func_name
(gdb) break fooFile::func_name

and I can't get GDB to recognize the module in file fooFile.

What's the magic?

- Hacker
-- 
Dark Hacker @ Black Silicon, Fortress Of Computation
hacker@black-silicon.mclean.va.us

"Life itself is... COMPUTATION!"
Newsgroups: comp.sys.next.programmer
From: finger@convex.com (Jay Finger)
Subject: Re: Problems using gcc 2.3.3
Organization: CONVEX Computer Corporation, Richardson, Tx., USA
Date: Tue, 05 Jan 1993 21:26:48 GMT
X-Disclaimer: This message was written by a user at CONVEX Computer
              Corp. The opinions expressed are those of the user and
              not necessarily those of CONVEX.

In article <1993Jan5.201106.556@news.media.mit.edu> csn@plethora.media.mit.edu writes:
>uh,  dude chill,  NeXT has released the complete sources
>to their modifications to gcc for 3.0...  It was a timely
>release too.
>
>They are even available on plethora.media.mit.edu via anon
>f t p.
>
>pasc

Is the stuff in pub/next/GnuSource.tar.Z the same as what is on the 3.0
CDROM?  And while I'm thinking about it, are the GNU sources on the
Eduucational-CDROM for NeXTSTEP 2.x or 3.0?

jay

-- 
===============================================================================
Jay Finger - finger@convex.com        | Convex Computer Corp
CONVEX System Integration and Support | 3000 Waterview Parkway
Product Specialist                    | Richardson, TX 75080
From: shawn@litsun.epfl.ch (Shawn Koppenhoefer)
Newsgroups: comp.sys.next.programmer
Subject: ada developement tools??
Date: 7 Jan 93 12:45:42 GMT
Reply-To: shawn@litsun.epfl.ch
Distribution: comp
Organization: Ecole Polytechnique Federale de Lausanne



Does anyone know if there are any Ada developement tools for the Next
machine?? what about cross compilers??




------------------------------------------------------------
Progress means replacing something wrong with something more
subtly wrong.
--

------------------------------------------------------------
Progress means replacing something wrong with something more
subtly wrong.
Newsgroups: comp.sys.next.programmer
From: sunthej@alleg.edu (Jake Blues)
Subject: tcsh
Reply-To: sunthej@alleg.edu
Organization: Allegheny College
Date: Wed, 6 Jan 1993 14:46:12 GMT


	Hello.  I have seen several tcsh shells available on the net.  Is  
there any particularly compelling reason to use tcsh vs csh vs sh?

							Thanks
								Jake
Newsgroups: comp.sys.next.programmer
From: trunz@inf.ethz.ch (Paul Martin Trunz)
Subject: TextField Problem
Organization: Dept. Informatik, Swiss Federal Institute of Technology (ETH), Zurich, CH
Date: Mon, 11 Jan 1993 10:11:00 GMT


Hello Ne(X)tland,

I have a strange problem. In a Panel I have a few TextFields, some of them
are strings, they work without any problem. The three last fields should
contain int's, that's where my problem starts.
From the first field the intValue-message returns the correct contents.
From the second field, intValue returns 0 when the third is empty and
the correct value if the third is filled.
From the third field I always get 0.
All fields are connected using the usual nextText, the last field
additionally sends a performClick message to the OK-Button.

What am I doing wrong ?
Does it have something to do with editValidate ?

I tried to setEntryType:NX_INTTYPE (not really sure about the name now, but
something along these lines) these fields, but this is a method of a
TextCell and the fields are TextFields and do not respond to it.

How do I get a TextCell from IB ?
Can one just change the Class-Type in IB's Attribute-Inspector to TextCell ?
(This idea just crossed my mind and I cannot verify it now)

	any pointers greatly appreciated, and please respond by Email, I will
	summarize if there is interest in the responses.

	greetings

						  Patru
-- 
God created nothing, but he did a pretty good job at it.

Email : trunz@inf.ethz.ch       or        PATRU@EZINFO.vmsmail.ethz.ch
Newsgroups: comp.sys.next.programmer
From: jonb@infoman.com (Jon Buffington)
Subject: multi-threaded distributed objects?
Keywords: thread distributed objects
Reply-To: jonb@infoman.com
Organization: Information Management Inc.
Date: Wed, 6 Jan 1993 16:03:35 GMT

I've implemented a prototype multi-threaded object server using  
Distributed Objects and based it upon the example NeXT supplied with 3.0.

I have a server that creates a new thread to service all work for a client  
connection in its own thread but I am unable to terminate the connection  
thread (run) from either the client or server using the NXConnection  
methods. The server only creates new threads. Ideally, an NXConnection  
object would support a 'stop' method that would terminate the 'run'  
method. I've tried cthread_exit but that leaves the server in an unstable  
state presumably because the NXConnection was not cleanly dismissed. Any  
ideas?

Any help would be greatly appreciated.

Jon Buffington
-- 
Jon Buffington <internet: jonb@infoman.com uucp: uunet!infoman!jonb>
NeXT VAD	Atlanta, GA			NeXTmail accepted
From: jr@sade.ka.sub.org (Jochen Richter)
Subject: Selection in rotated text?
Date: Thu, 7 Jan 1993 19:47:39 GMT
Organization: The Home of the Pilhuhn

Hi,

the NeXTSTEP text object doesn't support selection in rotated text. Is there  
any workaround?

Any suggestions appreciated.


--
Jochen Richter                              Phone +49-721-696922
Zahringerstrasse 57                         Fax   +49-721-696988
D-7500 Karlsruhe 1                          e-mail: jr@sade.ka.sub.org
Germany                                             jr@resy2.kfk.de
From: isbell@cats.ucsc.edu (Art Isbell)
Newsgroups: comp.sys.next.programmer
Subject: Re: tcsh
Date: 6 Jan 93 19:44:33 GMT
Organization: Cubic Solutions - NeXT software development and consulting
NNTP-Posting-Host: si.ucsc.edu


In article <1993Jan6.155021.23331@ms.uky.edu> iguana@mik.uky.edu writes:
>:>	Hello.  I have seen several tcsh shells available on the net.  Is  
>:>there any particularly compelling reason to use tcsh vs csh vs sh?
>:>
>:>	Thanks
>:>	Jake
>
>Cshell is generally accepted over Bourne shell (sh) for the fact that it  
>allows shell programming in the C language. TCshell is often used because  
>it allows for WATCHes to be set. For instance, I use TCshell because I can  
>leave a terminal window open and it will update me as to who is logging  
>into and off my machine.

As he enters what is certainly a religious issue...

But Bourne shell is accepted by many as the preferable shell script syntax
despite its syntactical differences from the C language.  But the Bourne shell
is rather archaic relative the the C shell for interactive use.  The resolution
to this dilemma has been adopted by the Free Software Foundation (the GNU
project) under the guise of bash (Bourne-Again SHell - you gotta love those
guys :-) which offers a set of C shell and Korn shell features, but uses a
Bourne shell syntax superset.  When considering why Bourne shell syntax might
be preferable to C shell, I think its important to realize that the GNU project
could have based its shell on either and chose the Bourne shell.
-- 

Art Isbell                                                      Cubic Solutions
NeXT Registered Developer #745         NeXT software development and consulting
NeXTmail: isbell@cats.UCSC.EDU                             Voice: (408)335-1154
USmail: 95018-9442                                           Fax: (408)335-2515
From: slxmw@avon.enet.dec.com (869883 Medlyn)
Newsgroups: comp.sys.next.programmer
Subject: Installing C++
Keywords: c++
Date: 7 Jan 93 19:28:21 GMT
Reply-To: slxmw@avon.enet.dec.com (869883 Medlyn)
Followup-To: slxmw@cc.usu.edu

I've not been following the newsgroups, but I need some help.  I need to get C++ to work on my station (3.0).  Could someone tell me how to get up and running.  I have spend a couple of hours trying to get libg++-1.39.0 off prep.ai.mit.edu but have not been able to get the libraries to compile.  If you can help, thanks.

Dayne Medlyn
slxmw@cc.usu.edu
From: aking@BBN.COM (Allen King)
Newsgroups: comp.sys.next.programmer
Subject: gdb's symbol table
Date: 7 Jan 93 03:46:13 GMT
Reply-To: aking@BBN.COM (Allen King)
Organization: Bolt Beranek and Newman Inc., Cambridge MA
NNTP-Posting-Host: bbn.com

GDB doesn't seem to know the correct type of List's objectAt: method
-- the docs say it's an id, but GDB seems to think it's a long:

	(gdb) p [[myView subviews] objectAt :1]
	$11 = 2573376
	
	(gdb) whatis [[myView subviews] objectAt :1]
	type = long
	
	(gdb) p *[[myView subviews] objectAt :1]
	$12 = 582312
	
	(gdb) p *(MyView *)[[myView subviews] objectAt :1]
	$10 = {
		isa = 0x8e2a8, 
		nextResponder = 0x2b7030, 
		_reserved = 0x0, 
		frame = {
		origin = {
			x = 116, 
			y = 283
		}, 
		size = {
			width = 219, 
			height = 15
		}
		}, 
		. . .


Bug, or Not Bug?
Newsgroups: comp.sys.next.programmer
From: massimo@cello.open.ch. (Massimo Arnoldi)
Subject: programming dynamically loadable tools in Improv under 3.0
Keywords: Improv
Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
Date: Mon, 11 Jan 1993 10:45:56 GMT


I have written some dynamically loadable tools for Improv using 2.0. Now I  
have modified the NIB file of one of them and it does not work anymore. In  
fact, as the release notes say, "Nib files created with the new Interface  
Builder can no longer be included in Mach-0 segments of an executable  
file".
Did someone on the net find a way to solve this problem ?

Thank you very much in advance.

-Massimo

Massimo Arnoldi, Via Vignascia, 6982 Serocca d'Agno, Switzerland
Tel:     +4191 595539
Tel:     +4191 595036
E-mail:  massimo@open.ch (NeXT)
Newsgroups: comp.sys.next.programmer
From: rwb@borg.VI.RI.CMU.EDU (Robert Berger)
Newsgroups: comp.sys.next.programmer
Subject: mapping a device into usr space
Date: 11 Jan 93 22:01:24 GMT
Article-I.D.: cs.C0pMIE.Jop.2
Organization: School of Computer Science, Carnegie Mellon


I have a device driver that uses map_addr to map a device into kernel
space. Is there any way my device driver can map the memory into
user space, as the vid0 driver does?
Newsgroups: comp.sys.next.programmer