HDTenEightyP/NetNews huggingface dataset:
From: brueck@inm.uni-sb.de (Stefan Brueck)
Newsgroups: comp.sys.next.programmer
Subject: Summary: X windows development on NeXT computers
Date: 7 Sep 92 16:56:42 GMT
Distribution: comp
Organization: Institute for New Materials (INM), Saarbr"ucken, Germany.

hi!

thanks for the (unexpected many) answers to my question:

> Perhaps a rather strange question of mine: Is it possible to use the NeXT
> computer with its UNIX as cross development system for programming X Windows?
> Did anyone something similar before?

here is the SUMMARY of the answers
##################################

From: Alex D. Nghiem <alex@pencom.com>
-----
You can do it, although you have to obtain the X distribution for the NeXT  
computers.  There are several sources:

1. co-Xist (produced by us)
2. mouse-X (public domain)
3. XNeXT (public domain)
4. cub'X (produced by cub'X)
5. eXodus (produced by White Pine)

Once you have the libraries installed, you can compiled your X code just as  
you would on any other Unix machines.  If you need more information on  
co-Xist or X in general, please send mail to co-Xist_info@pencom.com.


From: rs05%asylum@gte.com (Russ Sasnett)
-----
with a monochrome station, the public domain
Mouse-X (from MacGill (sp?)) distribution works
fabulously. i hacked on a number of programs with
it, and found it to be stable and "standard",
not to mention very fast.

now i've upgraded to a color station. i purchased
CubX and it works great as well. i think you should
go commercial if you need a color X server on the
NeXT; the PD stuff was not very good last i checked.

for my purposes, i like CubX because i can run the
X server in full-screen mode; that way i can see
exactly what an X user would see on their screen.
this is also important for making sure you handle
window manager interactions correctly. CubX will
also do the rootless windows thing if that's what
you want.


From: William.Pietri@umich.edu <william@stat.lsa.umich.edu>
-----
Yes.  Under the hood, the NeXT is a real live Unix box.  You can install
all the standard X stuff on it and work with it happily.  An added bonus
of using the NeXT is that NextStep allows you to prototype your program
much more easily.  If you do your program first in NextStep and then port
it to X, the end product should be much better and the development time
should be lessened.


From: Paul Poh <ppoh@amethyst.tcs.tufts.edu>
-----
It not such a strange question at all :-) Actually, i plan to do some X
work on my NeXT. I've spend some considerable time getting an X11R5 server
to work properly on my NeXT. I've even got so far as to replace NeXTstep's
GUI with X. The libraries will build fairly easily on a NeXT but the server
is more of a problem. There are several commercial and pd X server ports
available. Check out the FAQ for comp.sys.next.*. 

thanks!
stefan
Newsgroups: comp.sys.next.programmer
From: andrew@cubetech.com (Andrew Loewenstern)
Subject: Re: ObjectWare catalog
Keywords: ObjectWare
Organization: Cube Technologies, Inc.
Distribution: usa
Date: Sun, 6 Sep 1992 06:11:34 GMT

In article <185sflINN5sb@darkstar.UCSC.EDU> isbell@cats.ucsc.edu (Art Isbell) writes:
>
>I have seen the new NeXT ObjectWare catalog and would like to have one since
>I'm a NeXTSTEP developer and believe in paying for someone else's work if it
>will save me enough time.  I called NeXT and asked how I might get one.  They
>said to give them a credit card number and one would be on its way.  I asked
>about Registered Developer pricing, but the person knew nothing about that and
>didn't know who to contact.
>
>Does anyone know whether a Registered Developer price exists for ObjectWare?
>If not, who at NeXT now handles Registered Developer matters?  (I'm afraid to
>"ask_next" because I'd probably get a bill in the mail rather than a catalog
>:-)

I don't want to nit-pick, flame, or offend anyone with a tight budget
(mine is tight as well), but isn't it a little bit of a waste of your
time (as a professional developer) to try and get developer pricing on
an $11 catalogue that's really only useful for developers anyway??
You do say that you believe in paying for objects if it will save you
time.  This leads me to believe that your time is valuable to you...

I mean, I would go through all sorts of contortions to mabe sure I got
my developer pricing on a $7,000 computer, but on an $11 catalogue?


andrew
-- 
andrew@cubetech.com     | "We shall not cease from exploration
Andrew Loewenstern      |  And the end of our exploring
Cube Technologies, Inc. |  Will be to arrive where we started
                        |  And know the place for the first time." -T.S. Eliot
Newsgroups: comp.sys.next.programmer
From: asm@eecg.toronto.edu (Anees Munshi)
Subject: How to hide on auto-launch?
Date: 4 Sep 92 21:40:51 GMT


I'm trying to implement something like a hide-on-auto-launch
feature, so I need to detect if the application was
auto-launched by the Workspace. 

I tried reading NXArgv, but discovered it is stripped by the
+initialize method of the Application class.

I have read something in the Concepts doc about an NXAutoLaunch
"parameter".  However, there was no further reference to it. 

I can think of some inelegant ways of finding out if the app
was auto-launched, but I'd like to think there is a better way.

I'd appreciate any pointers on this one.

Thanks in advance. -Anees Munshi (asm@eecg.toronto.edu)
Newsgroups: comp.sys.next.programmer
From: ph@theora (Patrick Hester)
Subject: NS 3.0 arrives, DAMN!
Reply-To: ph@pencom.com
Organization: Pencom Systems Incorporated
Date: Fri, 11 Sep 1992 18:40:09 GMT

Well, NeXTSTEP 3.0 has arrived!!!
and guess what....

YOU NEED A FLOPPY DRIVE TO INSTALL IT!!!!!


AAAAAAAARRRRRRRRRRRRRGGGGGGGHHHHHHHHHHH!!!!!!!!!!!

Thank you NeXT.
Thank you from the bottom of my optical drive.
Newsgroups: comp.sys.next.programmer
From: greg@afs.com (Gregory H. Anderson)
Subject: Re: Multiple init: functions defined
Reply-To: greg@afs.com
Date: Sun, 6 Sep 1992 15:50:59 GMT

In article <3575@richsun.cpg.trs.reuter.com>  
jack@richsun.cpg.trs.reuter.com (Jack Gidding) writes:
> 
> When I include the header files from two different classes into a third 
> class, and each of the included classes have a single init: method 
> defined, I get messages similar to the following:
> 
> main2.m:18: warning: multiple declarations for method `init:'
> /Clib/RP.h:32: using `-init:(int )pSize'
> /Clib/RS.h:31: also found `-init:(OBJPTR )s'
> 
> Why is this happening??? Sometimes it tells me that it resolved which 
> init to use, sometimes not, and sometimes it resolves it to the wrong 
> init:.
> 
> So, why is it telling me that it is using one method or another...
> shouldn't this be left up until run-time? 

You ARE doing someting undesirable as far as the Obj-C runtime system is  
concerned. A selector name, like a C function, should only have one set of  
argument types. [Think about it: you wouldn't write two C functions with  
the same name, but different arguments, even if they were static to the  
module in which they appeared. Well, you might, but you couldn't get a job  
with my firm. 8^)]

You ARE allowed to EXTEND a method's arguments. For example, you can have

- init;
- init:sender;
- init:sender forSize:(int)aSize;

because the selector's complete name is everything that comes before the  
colons, plus the colons themselves. In my example, the selectors are  
"init", "init:", and "init:forSize:", as you will recognize if you have  
ever set a breakpoint on complex methods in gdb.

So the bottom line is that you should have more than one init name if you  
have different argument types. IMHO, that's preferred anyway. All through  
the appkit, "init" takes no arguments. I wouldn't mess with that  
assumption. Instead, the unadorned "init" chooses reasonable defaults and  
then passes control to the "designated initializer." All True NeXTSTEP  
Gods write classes this way. 8^) One last example:

- init
	{
	NXRect defaultRect = {{0.0, 0.0.}, {100.0, 150.0}};
	return [self initFrame:&defaultRect];
	}

- initFrame:(NXRect *)aRect   /* this is the "designated initializer" */
	{
	/* do some stuff here */
	return self;
	}

I agree, on the surface this can be a nuisance. I have come to like  
specific init names, because they are self-documenting.

--
Gregory H. Anderson          | "We're very tolerant around here,
Benevolent Dictator-for-Life |  being only amateurs ourselves."
Anderson Financial Systems   | - Tortoise (Godel, Escher, Bach)
greg@afs.com  (Nextmail OK)  | 
Newsgroups: comp.sys.next.programmer
From: andrew@cubetech.com (Andrew Loewenstern)
Subject: Re: DBKit without Oracle/Sybase?
Organization: Cube Technologies, Inc.
Date: Tue, 8 Sep 1992 02:02:24 GMT

In article <1992Sep7.150233.8411@next.cambridge.ma.us> simsong@next.cambridge.ma.us writes:
>In article <2070@dutiws.tudelft.nl> dimitri@dutiws.tudelft.nl (Dimitri  
>Tischenko) writes:
>> Now NS3.0 is out, I'm allowed to ask this question:
>> 
>> We would like to experiment with DBKit. Unfortunately, we don't have Oracle 
>> or Sybase servers (we do have Ingres, but not on the NeXT). 
>> It is my understanding that there is no DBKit adaptor to a flat-file  
>> database available. Is there any possibility in examining the features
>> of DBKit without purchasing Oracle or Sybase?
>> 
>
>
>There is supposed to be a Netinfo adaptor, but I haven't seen it.

Hopefully we'll get the IndexingKit adaptor at the same time (the
sooner the better).


andrew
-- 
andrew@cubetech.com     | "We shall not cease from exploration
Andrew Loewenstern      |  And the end of our exploring
Cube Technologies, Inc. |  Will be to arrive where we started
                        |  And know the place for the first time." -T.S. Eliot
From: cc100aa@xray.gatech.edu (Ray Spalding)
Newsgroups: comp.sys.next.programmer
Subject: Re: Resizing menus
Keywords: menu menucell
Date: 10 Sep 92 21:51:00 GMT
Distribution: na
Organization: Georgia Institute of Technology

In article <fztn6md.abell@netcom.com> abell@netcom.com (Steven T. Abell) writes:
>Menu has a sizeToFit method that will do what I want (apparently), but I
>haven't found a reasonable way to invoke it, given only a pointer to a
>MenuCell in an arbitrary submenu.

Note that Menu inherits from Window, not View.

Just do:
	[[[menuCell controlView] window] sizeToFit];

or:
	[[sender window] sizeToFit];

if "sender" is the Menu's matrix, as is normally the case.
-- 
Ray Spalding, Office of Information Technology
Georgia Institute of Technology, Atlanta Georgia, 30332-0715
Internet: ray.spalding@oit.gatech.edu (NeXT Mail accepted)
Newsgroups: comp.sys.next.programmer
From: gpoc@cube.sm.dsi.unimi.it (Gianfranco Pocecai)
Subject: lock windows
Organization: Computer Science Dep. - Milan University
Date: Tue, 8 Sep 1992 10:16:46 GMT

Hi,
I would like to lock the main window of my app, the user should not be  
able to move the window around, he should only click the buttons on it.
Which is the best way????
Thank you in advance

Gianfranco

PS:
Please answer me by e-mail

--
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
From: abell@netcom.com (Steven T. Abell)
Subject: Resizing menus
Date: Thu, 10 Sep 92 19:48:46 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Distribution: na
Keywords: menu menucell

I'm trying to change the title of MenuCells at run time, like this:

[menuCell setTitleNoCopy:"NewTitle"];

where the new title is longer than the old title. Clearly something must
be resized, such as in:

[[menuCell controlView] sizeToFit];

Unfortunately, this doesn't do it. This resizes the Matrix containing the
MenuCell, but doesn't resize its Menu, so the bezel gets overwritten and 
looks crappy. I tried following up the superview chain to find the Matrix's
Menu, but I ran into this thing that called itself a FrameView (undocumented)
which had no superview.

Menu has a sizeToFit method that will do what I want (apparently), but I
haven't found a reasonable way to invoke it, given only a pointer to a
MenuCell in an arbitrary submenu.

I must be missing something obvious. Can somebody help me out, or give me
an appropriate RTFM pointer?

Thanks,

Steve abell@netcom.com
From: dudney@broadway (William "Bill" A. Dudney)
Newsgroups: comp.sys.next.programmer
Subject: 3.0 IB question
Date: 8 Sep 92 14:31:01 GMT
Reply-To: alt.rush-limbaugh
Organization: Pencom Software

In IB under 2.x we could sellect an object and hit Command-5 to get the  
inspector to show what the object was. Has anyone figured out how to do  
this in 3.0 yet?
Bill Dudney
dudney@pencom.com
Newsgroups: comp.sys.next.programmer
From: oneill@cs.sfu.ca (Richard O'Neill)
Subject: Re: 3.0 gdb does not work? (Oh yes it does!)
Keywords: gdb
Organization: CSS, Simon Fraser University, Burnaby, B.C., Canada
Date: Sun, 13 Sep 1992 23:46:32 GMT

Miron Cuperman <miron@extropia.wimsey.bc.ca> writes:
>When I try to run gdb, it fails to even create the child process.
>For example, trying gdb on /bin/cat:

Well, I took your example and tried it myself on my NS 3.0 (release) machine
and it worked fine...

Maybe your 3.0 installation is screwed or something...

    Richard.

(Boring details follow...)

>% gdb -nx /bin/cat
>Reading symbol data from /bin/cat...
>(no debugging symbols found)...done.
>Reading symbol data from /usr/shlib/libsys_s.B.shlib...done.
>(gdb) b abort
>Breakpoint 1 at 0x505358a
>(gdb) run
>Starting program: /bin/cat 
>Program generated(1): Memory access exception on address 0x7d6f8 (invalid address).
>Program generated(1): Memory access exception on address 0x7d6f8 (invalid address).
>Program generated(1): Memory access exception on address 0x7d6f8 (invalid address).
>Program generated(1): Memory access exception on address 0x7d6f8 (invalid address).
>Program generated(1): Memory access exception on address 0x7d6f8 (invalid address).
>^CProgram generated(1): Memory access exception on address 0x7d6f8 (invalid address).
>Quit
>0x501e7fa in _cproc_fork_child ()
>(gdb) bt
>#0  0x501e7fa in _cproc_fork_child ()
>#1  0x502e444 in _cthread_fork_child ()
>#2  0x5008544 in fork ()
>#3  0x2ff2e in ?? ()
>#4  0x1b83e in ?? ()
>#5  0x3bea in ?? ()
>#6  0x25d30 in ?? ()
>#7  0x3cb8 in ?? ()
>#8  0x3a78 in ?? ()
>(gdb) 

% gdb /bin/cat
Reading symbol data from /bin/cat...
(no debugging symbols found)...done.
Reading symbol data from /usr/shlib/libsys_s.B.shlib...done.
(gdb) run
Starting program: /bin/cat 
No apparent problems here...
No apparent problems here...
^D
Program exited normally.
(gdb) Quit
% 
-- 
Composing a suitably apt and witty | [Mail to home machine is down right now]
signature and disclaimer is left   | oneill@fornax.UUCP | NeXTmail OK, but
as an exercise for the reader.     | oneill@cs.sfu.ca   | not >100K OK!
From: simsong@next.cambridge.ma.us (Simson L. Garfinkel)
Newsgroups: comp.sys.next.programmer
Subject: Re: DBKit without Oracle/Sybase?
Date: 7 Sep 92 15:02:33 GMT
Reply-To: simsong@next.cambridge.ma.us
Organization: Simson Garfinkel and Associates, Inc.

In article <2070@dutiws.tudelft.nl> dimitri@dutiws.tudelft.nl (Dimitri  
Tischenko) writes:
> Now NS3.0 is out, I'm allowed to ask this question:
> 
> We would like to experiment with DBKit. Unfortunately, we don't have Oracle 
> or Sybase servers (we do have Ingres, but not on the NeXT). 
> It is my understanding that there is no DBKit adaptor to a flat-file  
> database available. Is there any possibility in examining the features
> of DBKit without purchasing Oracle or Sybase?
> 


There is supposed to be a Netinfo adaptor, but I haven't seen it.
-- 

................................................................simson
Newsgroups: comp.sys.next.programmer
From: mrb@earth.wustl.edu (Mike Bray)
Subject: Do it yourself mail merge?
Organization: Washington University, St. Louis MO
Date: Mon, 14 Sep 1992 06:32:42 GMT

I need to generate reports from data in an Oracle database, either
using PRO*C or the DBkit or both.  I have form letters that I need
to poke information into.  The current implementation on another 
system works fine with standard mailmerge commands.  What's a good
way to do this?  Hook up a text object to scan for <<labels>> and 
insert data?  Perl?  OraPerl?  Commercial or public objects? WriteNow?
I figured I could simply message WriteNow from my application and have
it do the merge and return the results, but their tech support says I
can't do that.

Any ideas?

Thanks,
Mike Bray  mrb@earth.wustl.edu
From: eronald@CNAM.CNAM.FR (Edmund Ronald)
Newsgroups: comp.sys.next.programmer
Subject: Dropping Command-f on Preview.
Date: 9 Sep 92 11:02:38 GMT

I want to send another app (eg. Preview) keyboard events like Command-f
Could someone post a code snippet? I've managed to send simple chars eg. 'a',
but have no luck with command prefices etc, and cannot parse the F*ing includes
to figure it out.

Thanks for replying - Edmund.
From: wjs@blorf.cpac.washington.edu (William Shipley)
Newsgroups: comp.sys.next.programmer
Subject: Re: Need fast graphics (Don't go to the Dark Side)
Date: 8 Sep 92 17:35:41 GMT
Article-I.D.: u.1992Sep8.173541.12171
Organization: University of Washington

gubser urs writes:
> Is it possible to draw directly into a Windows view without any
> SystemCalls ?

Possible, but a Bad Idea.  Consider that there are already NeXTstation  
monochromes, turbos, colors, color turbos, and NeXTdimensions, and that they've  
announced NS486 and it'll have to run on a variety of video cards.  How many  
times do you want to rewrite your display code?

3.0 provides some fast ways to blit an image onto the screen out of line, and  
if your data is set up just right you can supposedly slam 400x400 at 37-40ms on  
a 25Mhz NeXTstation Color.

So, draw in an unpacked and correctly aligned off-screen buffer, then slam your  
data into a retained window.  You're rocking.  The total win is that on other  
architectures graphics will just be slower, rather than failing entirely.

Check the document  
/NextLibrary/Documentation/NextDev/ReleaseNotes/WindowServer.rtf for details,  
that's all I know.

-W
Newsgroups: comp.sys.next.programmer
From: localhost!av (Andrew Vyrros)
Subject: test 1
Reply-To: av@codeworks.com (Andrew Vyrros)
Organization: Codeworks Development
Date: Thu, 3 Sep 1992 16:38:53 GMT

testing 123

--
yabadabadoo
-- 
yabadabadoo
From: ugubser@avalon.physik.unizh.ch (gubser urs)
Newsgroups: comp.sys.next.programmer
Subject: Need fast graphics
Date: 7 Sep 92 16:37:59 GMT
Organization: University of Zurich, Department of Computer Science
X-Newsreader: Tin 1.1 PL4

Is it possible to draw directly into a Windows view without any
SystemCalls ?

--
* Urs Gubser        | Email: ugubser@amiga.physik.unizh.ch (NeXT - mail)      *
* Bergheimstrasse 7 |        ugubser@avalon.physik.unizh.ch (NeXT - mail)     *
* Zuerich           |                                                         *
* Switzerland       | Bix: urs                                                *
Newsgroups: comp.sys.next.programmer
From: zenon@resonex.com (Zenon Fortuna)
Subject: Re: Serial Communications Beyond 38.4 Kbps
Keywords: serial, DMX512
Organization: Resonex Inc., Sunnyvale CA
Date: Fri, 11 Sep 1992 16:59:37 GMT

In article <BuFF5t.JnH@ux1.cso.uiuc.edu> jeffo@ux1.cso.uiuc.edu writes:
>andrew@cubetech.com (Andrew Loewenstern) writes:
>>The DSP can function as a serial port that can go up to something like
>>138kbps.  Yrrid sells an LKS called TTYDSP that makes the DSP into a
>>third serial port (DISCLAIMER: I was a beta-tester for TTYDSP) that
>>will go up to 138k.
>
>I've heard about this product and it sounds like the only problem that
>could come up is if I want to use the DSP for something else.  Also, if
>I'm playing music that uses the DSP and this is attached and active,
>could there be problems?  I heard that 3.0 will be able to combine sounds
>from different applications, and to me this sounds like a job the DSP
>would end up doing.  Is that so?
>
>>I think you best bets would be a NeXTbus card with a serial interface,
>>a SCSI<->serial interface of some kind, or an ethernet<->serial
>>interface (do any terminal servers do 250kbps?).
>
>The only serial add-on I know of is an 8-port thing from UNINET (I think
>that's how that is spelled), but I just need one high-speed port.  Any
>suggestions?
>
>Thanks for the information.
>-- 
>-- Jeff (jeffo@uiuc.edu)
>-- No NeXTmail please

In the last "UNIX review" magazine (October, p.59) the "Central Data" advertizes
scsiTerminal Servers. They write about solutions for Sun(s), HP(s), IBM RISC,
386/486 systems, but may be they can prepare something for the NeXT as well ?
Telephone:  800/482-0315

PS.
The baud rates are up to 57.6K, prices reasonable. They will be at the
Unix Expo, booth 120.

	-Z.
Newsgroups: comp.sys.next.programmer
From: qureshi@unixhub.slac.stanford.edu ("For deposit only")
Subject: Re: Library:  Where is the heck is math.a?
Reply-To: cooldude@elaine49.stanford.edu
Organization: DSO, Stanford University
Date: Tue, 15 Sep 92 19:42:47 GMT

In article <1992Sep15.182550.4618@liveware.com> todd@liveware.com writes:
> Netlanders,
> 
> Can someone please tell me where the cooresponding math.a
> would be so I can run ranlib on it and get on with my
> life? ;')
> 
> Todd
> 
> PS.  I took a look in the obvious /usr/lib

You're probably looking for "libm.a" which is the math library.  It is in  
/usr/lib.

Imran
From: ngervae@next.com (Nik Gervae)
Newsgroups: comp.sys.next.programmer
Subject: Re: Multiple init: functions defined
Date: 3 Sep 92 23:57:06 GMT

In article <3575@richsun.cpg.trs.reuter.com> jack@richsun.cpg.trs.reuter.com  
(Jack Gidding) writes:
> 
> Hmmmm..... this is really strange and very undesired behavior from
> Objective-C.
> When I include the header files from two different classes into a third  
> class, and each of the included classes have a single init: method defined,  
> I get messages similar to the following:
> 
> main2.m:18: warning: multiple declarations for method `init:'
> /Clib/RP.h:32: using `-init:(int )pSize'
> /Clib/RS.h:31: also found `-init:(OBJPTR )s'
> 
> Why is this happening??? Sometimes it tells me that it resolved which init to  
> use, sometimes not, and sometimes it resolves it to the wrong init:.

[...]

> So, why is it telling me that it is using one method or another...shouldn't  
> this be left up until run-time? 
> 

It's happening because the two init: methods are declared with different
argument *types*: one is an int and the other is an OBJPTR. This is a
Bad Thing. If you can statically type the object receiving the init:
message, the compiler can determine which one to use, and make sure
that a bad type conversion doesn't get applied. You don't want a bad
type conversion to get applied, because squishing a signed long int to
an unsigned char (for example) is likely to result in an error....

--
Nik Gervae
Software Publications, NeXT Computer, Inc.
ngervae@next.com
[[[[NXDisclaimer alloc] init] disclaim] free];
Newsgroups: comp.sys.next.programmer