HDTenEightyP/NetNews huggingface dataset:
From: ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson)
Newsgroups: comp.sys.next.programmer
Subject: Window class question
Date: 11 Nov 92 22:53:18 GMT
Organization: Monash University, Caulfield Campus

I am trying to do the exploding menu things where all menus are 
displayed on the screen at once.

A problem im having is how to get the close-button to appear on
each menu.

The way I see it, is that its rather wierd since IB cannot visually
add and create the close button in IB iself.

Now, there seems to be no method as such to allow me to create the button
in the windows frameView.

I have got a method which manipluates the menus buttonMask but I need to
be able to "redraw" the menu to reflect the new buttonMask, however I think
its necessary for something to go off and actually create me a button and
connect is to close:

So the question is Do I need to send my menus LMOUSE_DRAGGED events to have
it think im dragging a menu hence "tearing off" and the appkit does the rest
or am I missing something.

The behaviour I am looking for is present in AI3.0 and DataPhile/Reality

Cheers.

Besides being a nifty UI feature its also a very interesting appkit excercise.
From: dave_moore@next.com (Dave Moore)
Newsgroups: comp.sys.next.programmer
Subject: Re: GDB and Edit under 3.0
Date: 12 Nov 92 20:04:22 GMT

In article <Bx0uLs.AE0@ns1.nodak.edu> enders@bolshoi.cc.misu.NoDak.edu  
(Todd Enders) writes:
> 
>      I seem to be having trouble getting gdb to work with Edit under  
NS3.0.
> In short, if I attempt to execute the view command under gdb, Edit  
launches,
> but nothing seems to happen (no window, no Gdb option in the menu panel, 
> nothing.).  
> 
> Todd     enders@bolshoi.uucp     NeXTMail Welcome!

One thing to make sure of is that the directory /usr/lib/GdbClient.bundle  
is on your machine.  If it isn't you will have problems.

Dave Moore
NeXT Computer, Inc.
Software Development Tools
Newsgroups: comp.sys.next.programmer
From: paul@seer.demon.co.uk (Paul Lynch)
Subject: Re: Change App-Icon ?
Organization: P & L Systems
Date: Mon, 9 Nov 1992 21:42:05 GMT

In article <Bx8yw4.7An@malihh.hanse.de> clu@malihh.hanse.de (Carsten Lutz)  
writes:
> I want to change the Icon of one of my Apps at Run-time. I don't want to 
> change it to a window displaying postscript ( there are enough  
NeXTexamples
> for this ) but simply to another icon linked into my App. ( like  
NextMail does
> it for example ). Are there any examples or code-pieces for this out  
there ?
> Any pointers appreciated.

Look at the code for AppInspector in /NextDeveloper.

Paul
-- 
Paul Lynch
P & L Systems                   (NeXTmail) paul@seer.demon.co.uk
Tel: (0494)671501                      paull@cix.compulink.co.uk
Fax: (0494)680228                       76711.451@compuserve.com
From: rcc@next1.math.pitt.edu (robert cyphers)
Newsgroups: comp.sys.next.programmer
Subject: Where is std C lib?
Keywords: rpc libc
Date: 13 Nov 92 14:54:32 GMT

Where does the standard C library live on the NeXT?  I don't have
a /usr/lib/libc.a and yet my programs compile.  Some configuration
scripts get confused when they can't find this file.

Also, does the std c lib include the RPC library functions (librpc.a)
as I believe is the case on a SUN?

Thanks,
Robert C Cyphers
Department of Math & Statistics
University of Pittsburgh
rcc@next1.math.pitt.edu
From: Mark_Wagner@NeXT.COM (Mark Wagner)
Newsgroups: comp.sys.next.programmer
Subject: Re: cc problem and cure: comparison among doubles can produce wrong results
Date: 6 Nov 92 00:57:13 GMT

> >      However, given that the conversion
> >      algorithm from external to internal format is the same, I would  
> argue that
> >      ALL instances of the SAME decimal value will result in the SAME  
> binary
> >      floating point value internally and can therefore be compared for  
> equality
> >      with impunity.
> 
> Actually, it's worse than this.  Sometimes floating point values can be  
> different depending on whether or not they've been in and out of  
> registers, etc.  Moral:  Use something like this:
> 
One can use the -ffloat-store option to "cure" this problem but at some
cost in terms of performance (depending, of course, on the application).

     -ffloat-store
          Don't store floating-point variables in registers.
          This prevents undesirable excess precision due to the
          floating registers keeping more precision than a double
          is supposed to have.

          For most programs, the excess precision does no harm,
          but a few programs rely on the precise definition of
          IEEE floating point.  Use -ffloat-store for such pro-
          grams.

mwagner@next.com
Newsgroups: comp.sys.next.programmer
From: uad1221@dircon.co.uk (David Lomax)
Subject: Bugs in PB, permissions on nibs
Date: Fri, 13 Nov 1992 02:53:01 GMT


If these bugs have already been discussed - then forgive me.
Does anybody out there have any good, easy, quick solutions 
to the following

1. If you include something like more than 6 or 7 libraries 
in you project (through the suitcase) and subsequently save 
the project, PB very nicely regenerates your Makefile. However, 
because it obviously thinks that the 'LIBS = ' line is too long 
it sticks a line continuation character in for you. Trouble 
is, it doesn't do it properly (leaves somes spaces) and the 
project wont make because the Makefile is corrupt. So you
have to edit the Makefile every time you save the project. No 
big annoyance but I could do without it. NeXT tell me its a 
hang on from 2.x and they intend to do nothing about it until 
next release. They suggest I write some awk/sed etc etc. I suggest 
to them that they write some awk/sed etc etc.

2. I work in a 6 person team. We are all writing the same application 
and therfore have a desire to share a project (as in Project 
Builder). However we can't because the .nibs can not be loaded 
into IB unless you are the owner. Yes, we are all in the same 
group (UNIX) and our Preferences permissions are set to rw-rw---- 
and our umask 002. What seems to happen is when the .nib is 
saved the permissions rw------- are set (for .nib and its files) 
without any reference to Preferences or umask. Now this is a 
MAJOR pain. A similar thing happens when you build a project 
and you're not the owner -a message 'fastcp : can not set network 
time.....etc etc' and falls over. 

What are the chances that no one has ever wanted to share a 
project before? I talked to another big NeXT site and asked 
them if they had similar problems. They told me they never tried 
sharing a project.

Anyway, if anyone knows of some good ways of dealing with these 
could you mail me?

Thanks in advance
David Lomax
uad1221@dircon.co.uk
Newsgroups: comp.sys.next.programmer
From: wave@waits.media.mit.edu (Michael B. Johnson)
Subject: Re: RIBs, RenderMan, and Textures
Organization: MIT Media Laboratory
Date: Thu, 12 Nov 1992 05:46:30 GMT

Mike Amirault writes
> 
>  I've been messing around with Renderman and RIB files for a couple
> of days and need some help. I can pretty much get everything to work
> except textures.  I've tried everything and can't get a simple texture
> to display from a RIB file I created. I can use 3DReality and add a
> texture fine, but I can't do it from my RIB file.
> 
>  I've tried things like:
> 
>  Surface "SD_Simple_tx" "txmap" "/NextLibrary/Textures/brick.tex"
>  Surface "texmap" "texname" "brick"
>  ...
> 

I'll take the quickies, since I'm about to go home for the evening:

>  Does anyone know how to do this?  Does anyone have any docs on the
> RIB syntax?  I bought the RenderMan Companion book but that doesn't
> really help. 

RIB came out after the Companion was published.  Pixar (I believe) still sells  
copies of the RIB spec - it's Rev 3.1 (NeXT is actually sort of 4.0, but it  
shouldn't trip you up much), and I think it costs something like $11.   Pixar  
has moved since it was published, and their new address is:

Pixar
1001 West Cutting
Richmond CA 94804
(510) 236-4000 (voice)
(510) 236-0388 (FAX)

Also, does anyone know how to compile shader function 
> source to a *.slo file?

In a terminal window, for a shader foo.sl, type:

/usr/prman/shader foo.sl

Later.

--

-->  Michael B. Johnson
-->  MIT Media Lab      --  Computer Graphics & Animation Group
-->  (617) 253-0663     --  wave@media-lab.media.mit.edu
-->  NeXT Mail accepted at  wave@nordine.media.mit.edu
Newsgroups: comp.sys.next.programmer
From: silbar@mpx2.lampf.lanl.gov (Dick Silbar)
Subject: What does -DDEBUG actually do?
News-Software: VAX/VMS VNEWS 1.41    
Organization: LAMPF Data Analysis Center, Los Alamos, New Mexico
Date: Tue, 10 Nov 1992 18:49:00 GMT

I suspect this is very naive, but I looked all through the on-line manuals and 
found no answer to the subject question.  The symbol table seems to be made
by the -g option to cc.  So what does -DDEBUG buy me?

One answer MIGHT be (I am guessing) the ability to denote some lines in my 
C code (with 'DEBUG'?), such as my favorite printf statements, so that they 
are compiled when -DDEBUG is declared, but not when it is not.

   Dick Silbar (NeXTMail:silbar@whistler.lanl.gov)
From: SLVQC@CUNYVM.BITNET (Salvatore Saieva)
Newsgroups: comp.sys.next.programmer
Subject: Alternate and Command Emacs Key Bindings?
Date: 12 Nov 92 03:23:48 GMT
Organization: City University of New York/ University Computer Center


Is it possible to bind an emacs function to an Alternate and/or
Command key sequence on the NeXT keyboard? If so, please send a
simple example. Thanks!

Sal.
-------
 Salvatore Saieva                         Internet: saieva@alehouse.acc.qc.edu
 Queens College, Academic Computer Center   BITNET: saieva@qcvaxa.bitnet
 65-30 Kissena Blvd, Flushing, N.Y. 11367  DeskNet: (718) 997-5907

      awk, sed, grep, lex, yacc, make, >, <, |,... ``I got the Power!''
From: jdawson@ccwf.cc.utexas.edu (John Dawson)
Newsgroups: comp.sys.next.programmer
Subject: Transorming leaf to nonleaf & expand with one mouse click in NXBrowser
Summary: How do you DO it?
Date: 12 Nov 92 17:19:11 GMT
Article-I.D.: ut-emx.83455
Organization: Arissoft Development Corporation

HeaderViewer has a neat UI for flattening parts of its browser tree;
you can control-click on nodes with a tree of subnodes underneath, and
get a flattened version of the tree displayed there.  Very slick;
HeaderViewer is a shining gem of user interface design, IMHO.

But what I want to do in my app is control click on nodes which can be
LEAF nodes, and expand them.  See, each node in my tree has an array
associated with it, and I want to display the contents of the array
underneath the node in the browser.  If I control-click on the node, I
can have my browser:fillMatrix:inColumn: method change the node from
leaf to nonleaf, if necessary, but it's too late then; the NXBrowser
has already gotten the click and interpreted it as a click on a leaf
node.  I can't expand the node in the browser until the next mouse
click.

What I'd like would be a method like "performClickOnSelectedCell" that
I could send to the NXBrowser, or better yet, "expandSelectedCell".
Nothing resembling these facilities seem to be present.  Anybody have
ideas on how to fake it?

Thanks in advance.
-- 
jdawson@ccwf.cc.utexas.edu (John Dawson)
Newsgroups: comp.sys.next.programmer
From: soward@slow.inslab.uky.edu (John Soward)
Subject: Re: help compiling gnutar on NeXt 3.0
Reply-To: soward@slow.inslab.uky.edu (John Soward)
Organization: University Of Kentucky, Dept. of Math Sciences
Date: Fri, 6 Nov 1992 21:12:03 GMT

Joseph Alotta writes
-> 
-> 
-> i downloaded tar-1.11.1.Z from MIT and tried to compile it.
-> 
-> i need to use the "tar rvf" option which is missing from the
-> next tar.
-> 
-> can someone tell me if tar-1.11.1.Z is gnutar and what kind of
-> gynastics i have to go through to compile it?
-> 
-> i've noticed on 3.0 the c include files are in /usr/include/ansi but
-> can't seem to get the configure program or the make program to realize
-> this.

	Save yourself some time gnutar 1.10 is already out there in  
/usr/bin/gnutar under NS3.0...

--
    ________________________________________________________________________
   /   'The midnight sun will burn you up" -The Cure, Piggy in the Mirror  /
  /         soward@ms.uky.edu | soward@inslab.uky.edu (NeXT Mail)         /
 /_______________________________________________________________________/
Newsgroups: comp.sys.next.programmer
From: hayward@scic.intel.com (Mike Hayward)
Subject: Librarian customization files and documentation
Organization: SCIC, Intel Corporation, Beaverton, OR
Distribution: usa
Date: Fri, 13 Nov 1992 07:20:23 GMT

I recently snarfed the recipe stuff on sonata which came indexed for
the 2.x Librarian ... in order to make it work there is a formatting
script and some other special files which make the 2.x Librarian
display things correctly.  Unfortunately things are different with the
3.0 Librarian and so the index needs to be rebuilt and the file names,
locations, etc. will likely need to change... does anyone know what
custom stuff the new Librarian supports?

And even better... does anyone know where I can find any documentation
whatsoever on Librarian or an online version of the User's Manual for
that matter?  Either I've just not installed something right, or NeXT
has left out some obviously needed documentation.

-----------------------------------------------------------------------

Please respond via email.  Thanks.

- Mike
From: Mark_Wagner@NeXT.COM (Mark Wagner)
Newsgroups: comp.sys.next.programmer
Subject: Re: cc problem and cure: comparison among doubles can produce wrong results
Date: 6 Nov 92 00:56:19 GMT

> >      However, given that the conversion
> >      algorithm from external to internal format is the same, I would  
> argue that
> >      ALL instances of the SAME decimal value will result in the SAME  
> binary
> >      floating point value internally and can therefore be compared for  
> equality
> >      with impunity.
> 
> Actually, it's worse than this.  Sometimes floating point values can be  
> different depending on whether or not they've been in and out of  
> registers, etc.  Moral:  Use something like this:
> 
> #define EQU(_x,_y)  (((_x) > (_y)) ? (((_x)-(_y))<EPSILON) :  
> (((_y)-(_x))<EPSILON))
> #define EPSILON .00001  // or whatever

One can use the -ffloat-store option to "cure" this problem but at some
cost in terms of performance (depending, of course, on the application).

     -ffloat-store
          Don't store floating-point variables in registers.
          This prevents undesirable excess precision due to the
          floating registers keeping more precision than a double
          is supposed to have.

          For most programs, the excess precision does no harm,
          but a few programs rely on the precise definition of
          IEEE floating point.  Use -ffloat-store for such pro-
          grams.

mwagner@next.com
Newsgroups: comp.sys.next.programmer
From: eps@futon.SFSU.EDU (Eric P. Scott)
Subject: Re: printf g format still broken under NeXTSTEP 3.0
Reply-To: eps@cs.sfsu.edu
Organization: San Francisco State University
Date: Wed, 11 Nov 1992 05:23:41 GMT

In article <1992Nov11.033324.9278@cbnewsl.cb.att.com>
	coco@cbnewsl.cb.att.com (felix.lugo) writes:
>	I thought compiler problems were supposed to be reported to the GNU
>people.  This one certainly fits that category!

No it doesn't.  printf isn't part of the C language (C has *no*
builtin I/O)--it's just another external procedure call to the
compiler.  NeXT isn't using a GNU C runtime library, so the
original poster is attributing blame where it's due.

However, if the "problem" really is that ANSI printf and BSD
printf *need* to have different semantics, then NeXT should
extend sprintf's special treatment to the rest of the printf
family.  Breaking compatibility with existing code is *bad*
(something NeXT needs to start taking a lot more seriously).

ANSI C is not "better" C--it's simply "different" C.

					-=EPS=-
Newsgroups: comp.sys.next.programmer
From: marcel@opal.cs.tu-berlin.de (Marcel Weiher)
Subject: Re: Maximum window width
Organization: Techn. University of Berlin, Germany
Date: Fri, 6 Nov 1992 08:15:02 GMT

howard@monitor.com (Howard Brenner) writes:

>Is there a maximum width for a window?  I am creating a window with a
>width of 34000 and a height of 1200 and I am getting a DPS context error  
>on the command placewindow (origin of 0,0).  The problem does not seem to  
>go away until I bring the width down to about 10000 or so.

Yes there is, in just about the region you describe.  Also, what do
you need that kind of Window for?  Even at the lowliest 2 bit/no alpha
it would take 97 Megabytes.  I hope you've upgraded your memory or
are very, very patient ( "Testing hard drive now..." :-) )

Marcel
From: charlie@snowflake.az.stratus.com
Newsgroups: comp.sys.next.programmer
Subject: 3.0 Digital Librarian
Date: 9 Nov 92 20:12:40 GMT
Article-I.D.: transfer.1dmgnoINNha9
Reply-To: charlie@snowflake.az.stratus.com
Organization: Stratus Computer Inc, Marlboro MA
NNTP-Posting-Host: snowflake.az.stratus.com

I have a set of file in a directory that I wish to index. In  
2.0, I modified the ftypes file to describe how these files  
look, and which command to invoke to get the correct description  
line into the index.

In 3.0, this all changed. I now have setup the .index.ftypes  
file correctly (I can see that DL knows the file types because  
when I use ixbuild it displays the file types of each of the  
files it is reading). However, the command fileType-desc command  
isn't called and the description for each file winds up empty.

Has anyone figured out how to do this correctly?
--
Charles Spitzer
charlie@snowflake.az.stratus.com
Telecom Customer Assistance Center
Stratus Computer, Inc.
Phoenix, AZ  85018
From: soward@slow.inslab.uky.edu (John Soward)
Subject: Re: RIBs, RenderMan, and Textures
Reply-To: soward@slow.inslab.uky.edu (John Soward)
Organization: University Of Kentucky, Dept. of Math Sciences
Date: Wed, 11 Nov 1992 20:45:42 GMT

Mike Amirault writes
-> 
->  I've been messing around with Renderman and RIB files for a couple
-> of days and need some help. I can pretty much get everything to work
-> except textures.  I've tried everything and can't get a simple texture
-> to display from a RIB file I created. I can use 3DReality and add a
-> texture fine, but I can't do it from my RIB file.
-> 
->  I've tried things like:
-> 
->  Surface "SD_Simple_tx" "txmap" "/NextLibrary/Textures/brick.tex"
->  Surface "texmap" "texname" "brick"
->  ...
-> 
->  Does anyone know how to do this?  Does anyone have any docs on the
-> RIB syntax?  I bought the RenderMan Companion book but that doesn't
-> really help. Also, does anyone know how to compile shader function 
-> source to a *.slo file?
->
	well, I can answer the last question....
	/usr/prman/sharder shadercode 
man shader for more info....
 
--
    ________________________________________________________________________
   /   'The midnight sun will burn you up" -The Cure, Piggy in the Mirror  /
  /         soward@ms.uky.edu | soward@inslab.uky.edu (NeXT Mail)         /
 /_______________________________________________________________________/
From: jiro@shaman.com (Jiro Nakamura)
Newsgroups: comp.sys.next.programmer
Subject: Re: How about we solve the problem (was: How to Extend IconBuilder)
Date: 6 Nov 92 06:16:56 GMT
Organization: The Shaman Group

In article <1992Nov3.183027.4542@pages.com> bwebster@pages.com writes:
>In article <HERRING.92Nov2172745@loke.iesd.auc.dk> herring@iesd.auc.dk (B.  
>Erickson Herring) writes:
>> IconBuilder replaces nothing.  Icon.app was a demo.  It was completely
>> unsupported, no promises.  It broke under 3.0, and the original author
>> has left the company to pursue other interests (if Sulley is to be
>> beleived, his initials were even removed from the 3.0 icons :-( ...).
>If you open the Workspace Info Panel for 3.0, you'll see "Graphic Design by  
>Keith Ohlfs" listed prominently on it.  ..bruce..

His picture is even one of the icons that flash by when you click on
the NeXT logo in the Info panel....

 - Jiro

ps. What I've heard about Keith is that he's a really nice guy (I can
attest to that, I've met him), he 's a great designer (I can attest to
that, just look at NeXTSTEP), but he's a lousy programmer (I can
attest to that as well, look at Icon.app).
-- 
Jiro Nakamura				jiro@shaman.com (NeXTmail)
NeXTwatch / Technical Editor		76711,542 (CIS)
The Shaman Group			+1 607 277-1440 (Voice/Fax)
From: strauss@aero.org (Daryll J. Strauss)
Newsgroups: comp.sys.next.programmer
Subject: Re: appkit errors in header files
Date: 12 Nov 1992 01:39:03 GMT
Organization: The Aerospace Corporation
NNTP-Posting-Host: armadillo.aero.org

In article <1992Nov11.161902.60706@cc.usu.edu> edx@cc.usu.edu writes:
>
>Has anyone else had trouble with the
>appkit include files that use protocols?
>I've got an application that includes
>/NextDeveloper/Headers/appkit/drag.h and
>it's giving me these errors:
>
>tumbleweed# make tst
>cc   tst.c  -o tst
>/NextDeveloper/Headers/appkit/drag.h:47: illegal keyword selector, missing `)'
>after `id'
> <<< Lots more deleted >>>

The problem is that your filename ends in ".c", not ".m". The compiler
looks at that and says "This is C code, not Objective-C code" and
complains when it hits something that is Objective-C specific.

The two solutions are to either use ".m" as your extension or to compile
with the -ObjC switch. (Which also tells the compiler to treat the file
as Objective-C) Either technique will work.
From: powhwee@iti.gov.sg (Tan Pow Hwee)
Subject: Window backingType
Organization: Information Technology Institute, National Computer Board, Singapore.
Date: Thu, 12 Nov 1992 04:35:07 GMT

Hi,

    Does anyone know where the constants NX_RETAINED, NX_NONRETAINED
and NX_BUFFERED are stored ie. which header file?  I've greped around
in /usr/include/appkit but couldn't find it.  These constants are
used for specifying a window's backing type.

    Thanks.

ph

Newsgroups: comp.sys.next.programmer
From: charon@opal.cs.tu-berlin.de (Sebastian Florian Mix)
Subject: Re: printf g format still broken under NeXTSTEP 3.0 
Organization: Techn. University of Berlin, Germany
Date: Wed, 11 Nov 1992 16:21:04 GMT

Well, I suspect NeXT to be wrong in this case, since there is at least one
similar thing in fscanf().
Lets have a file with contents "a is:1.0\n" and try to read it with
fscanf(file,"a is:%lg\n",&d) into the double d: you'll get a return
value of 0 from fscanf and it stops at the '.', and I don't think it
is supposed to do so, or is it ? 

--
--------------------------------------------------------------------------------
Sebastian Mix, Eichhornstr.5-6 Apt.222, D-1000 Berlin 30, T: (030) 262 1811 /(a\
charon@cs.tu-berlin.de <-no NeXTmail yo-> charabib@w271zrz.zrz.tu-berlin.de \p)/
--------------------------------------------------------------------------------
From: silbar@mpx2.lampf.lanl.gov (Dick Silbar)
Newsgroups: comp.sys.next.programmer
Subject: how to delete palette icon from IB preferences?
Date: 5 Nov 92 21:04:00 GMT
Organization: LAMPF Data Analysis Center, Los Alamos, New Mexico
News-Software: VAX/VMS VNEWS 1.41

In trying to develop a custom palette (actually, help Charlie Fletcher
get nxyPalette working on 3.0) I found the following annoying "feature"
of the 3.0 Interface Builder.  You can have multiple copies of the 
palette icon in the Preferences panel which allows you to load or unload
a palette more quickly than going through the Tools menu item.  Fortunately
the pathname is given, so you can sort out which palette is which.
UNfortunately, I can't seem to delete the bad ones from that panel 
(employing the usual GUI tricks of highlight + <del> or <cmd-x>).

What's the trick here?

   Dick Silbar (NeXTMail:silbar@whistler.lanl.gov)