HDTenEightyP/NetNews huggingface dataset:
From: pan@dearth.media.mit.edu (Howard Pan)
Subject: Re: Display Tiff Images as a background screen
Reply-To: pan@athena.mit.edu
Organization: MIT Media Laboratory
Date: Thu, 13 Aug 1992 16:26:39 GMT

In article <1992Aug13.152351.27591@almserv.uucp> gramdeen@aristotle  
(Gerald Ramdeen) writes:
> Can anyone tell me how to take a tiff image and make it my default  
screen   image background.

Get Background2 from sonata.cc.purdue.edu. I think it's in  
/put/next/2.0-release/binaries. It's a freeware, if I'm not mistaken.
--


=Howard Pan=
Internet: pan@athena.mit.edu
410 Memorial Dr. 		
Cambridge MA 02139
From: ssircar@canon.com (Subrata Sircar)
Newsgroups: comp.sys.next.programmer
Subject: Re: lots of objects to display
Date: 14 Aug 92 22:01:49 GMT
Reply-To: ssircar@canon.com (Subrata Sircar)
Organization: SPAMIT
Originator: news@nimaster

ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson) writes:
>woo@ornl.gov(John W. Wooten) writes:
>>I want them [list of varying elements] to be drawn in a View (myView) in
>>myWindow.  Each element subclass has a drawSelf method and each instance
>>has it, of course.

[Robert Nicholson's suggestion deleted, because it is essentially the same
as my own]

Or you could do it the way draw does it; when the myView is called on to draw
itself, it sends the draw method to the entire list.  Check out GraphicView,
in the Draw example source code.  All the elements are subclasses of Graphic.



-- 
Subrata Sircar | ssircar@canon.com | Prophet & SPAMIT Charter Member
Canon Information Systems and I do not speak for each other on all things.
"I wish people wouldn't instantly assume that I am an idiot." (Valentine)
"A restaurant is a whorehouse that does food instead of sex." (Roger Lustig)
Newsgroups: comp.sys.next.programmer
From: coactive@netcom.com (Coactive Aesthetics)
Subject: Shared libs on NeXT (was Re: What command do I use...)
Date: Sun, 16 Aug 92 06:10:13 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
X-Newsreader: Tin 1.1 PL4

I have a library which is rather huge, and was wondering what the procedure
is to make a shared library out of it. I have gone through the NeXT
documentation, the man pages, the FAQ, and NeXTAnswers. They all mention
how to use a shared library, but not how to create one.

In the man page for ld, it mentions the -fvmlib option to create a file of
type MH_FVMLIB. Is this what I use? What should I do about the static and
global data that is managed in the library?

Any info or pointers on where to look would be appreciated,

Otto

--
Otto Lind                  Coactive Aesthetics
otto@coactive.com          P.O. Box 425967, San Francisco, CA 94142
netcom!coactive!otto       voice:(415)626-5152    fax:(415)626-6320
From: coke%net23@spectrx.saigon.com (Brian Policky)
Newsgroups: comp.sys.next.programmer
Subject: Formcells and button equivalents
Date: Sun, 9 Aug 1992 21:52:50 GMT

I have a find panel with a form and a few buttons. The "Find" button has  
the return key as a key equivalent (set in IB). If you are typing in the  
form cell, the return key never gets to the button. What code is needed  
for the "Find" button to respond to a return key after entry in the "Find  
what" form cell field?

Thanks!


coke
-- 
coke%net23@spectrx.saigon.com  |  Life without
..szebra!spectrx!net23!coke    |  Coca-Cola
                               |  wouldn't be
Newsgroups: comp.sys.next.programmer
From: louie@sayshell.umd.edu (Louis A. Mamakos)
Subject: Mach messaging to kernel server vs. "traditional" kernel drivers
Organization: University of Maryland, College Park
Date: Fri, 14 Aug 1992 13:37:48 GMT


I'm designing a loadable kernel server which needs to communicate with
user level processes.  

In the past, the kernel driver I did has used a character special
device to do this, and the tradional open/close/read/write/ioctl/etc
interface via the cdevsw[] table.  This works and all is well.

I'm doing a different driver which needs similar functions, but am
considering using Mach messaging rather than a character special
device to do what I want.  Now, one thing which I'm trying to
determine how to implement with the Mach messaging design is how to do
access control and credentials checking.  With the tradional UNIX
device driver, I can use suser() to protect access to certain
protected functions.  How can I determine the identity, in some useful
sense, of the sender in the Mach messaging case?

The more that I think about this, the less that I'm likely to use the
Mach messaging design for two reasons:

	* I can forget about porting the kernel driver to any other
	platform; thougth the NeXT's kernel network API has already
	hosed me to a big extent here.

	* It doesn't seem like it will buy me anything.  I was excited
	at the prospect of using out-of-line data to move moderately size
	hunks of data between the kernel driver and user code using
	the fancy Mach copy-on-write VM.  But it seems that since the
	loadable kernel servers don't allow this to work, and I have to
	copy the data anyway.

louie
Newsgroups: comp.sys.next.programmer
From: eps@futon.SFSU.EDU (Eric P. Scott)
Subject: Re: atoh
Reply-To: eps@cs.sfsu.edu
Organization: San Francisco State University
Date: Fri, 14 Aug 1992 00:57:54 GMT

In article <1992Aug13.071225.9818@cco.caltech.edu>
	madler@tybalt.caltech.edu (Mark Adler) writes:
>However, I get:
>
>/bin/ld: Undefined symbols:
>_atoh
>
>indicating that it's not really there.  Is there some other sneaky
>library I have to link to get it?

-lcs

>                                   Or is it not there at all?  Is
>it in 2.2?

/usr/lib/libcs.a is identical in 2.1 and 2.2.

>            3.0 beta?

Dunno.

					-=EPS=-
From: scott@nic.gac.edu (Scott Hess)
Newsgroups: comp.sys.next.programmer
Subject: Drag&drop of colors in Views - how does -acceptColor:atPoint: work?
Date: 17 Aug 92 14:20:08 GMT
Organization: Gustavus Adolphus College

[Sorry if this article is a repeat - but it never seemed to show
up on our newsfeed, and nobody's replied anyhow.  Perhaps we've
got NNTP problems?  I don't know.]

From View.rtf:

    acceptColor:atPoint:
    - acceptColor:(NXColor)color atPoint:(NXPoint *)aPoint
    
	Allows a View to accept a color.  If your subclass of View
	implements this method, it will be invoked when the user
	drags a color (as from an NXColorWell) into your View.

So, I implement -acceptColor:atPoint:.  All it does yet is
printf( "Here I am!\n").  But, when I pop up a color panel, and
drag a color into the View, nothing happens.  No printf, and later,
when I add code to do something else, like change the View's color,
that doesn't happen, either.

So, what's up?  Am I just not doing something right?  There's not
much area to go wrong, here, and I've checked the spelling against
the documentation about a billion times.  It just doesn't seem to
work.  Anyone out there got an example of receiving colors for your
View?

Later,
--
scott hess <shess@ssesco.com>  <Who achieved programmer nirvana on Aug 11th>
12901 Upton Avenue South, #326  Burnsville, MN 55337 (612) 895-1208 Anytime!
   <Text: One Class to bring them all and in the darkness bind them ...>
Newsgroups: comp.sys.next.programmer
From: ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson)
Subject: Tracking the currentdocument
Summary: Tracking the currentdocument
Organization: Monash University, Caulfield Campus
Date: Sat, 15 Aug 1992 02:33:40 GMT

This is topic that I have grown to be very interested in in recent times.

How do most developers go about tracking their currentDocument in multidoc apps.

I am currently using draw's approach using mainWindow. (Note to scott, Im interested in seeing what people have to say about this)  This assumes that you
have a window.  I have the following problem with an app Im writing using this
approach.

I have a subview of my document window's contentView  which condionally does an
NXHightlight rect in its drawSelf. The drawSelf is executed first when I send
my window makeKeyAndOrderFront.  The thing it highlights is the currentDocument's currently highLightedroom.

Code follows.

- drawSelf:(NXRect *)rects :(int)count
{

    Room *highlightedRoom;
        
  /* erase update rect since the nximage might be smaller than our bounds */

    PSsetgray(NX_WHITE);
    NXRectFill(&rects[0]);
            
    [image composite:NX_COPY
              fromRect:&rects[0]
              toPoint:&rects[0].origin];
                
    highlightedRoom = [[NXApp currentDocument] currentHighlightedRoom];
    if (highlightedRoom) {
        NXRect intersectRect;
        NXRect *intersects;
                                
        [highlightedRoom scaledRoomRect:&intersectRect];
        intersects = NXIntersectionRect(&rects[0],&intersectRect);
        if (intersects) {
            NXHighlightRect(&intersectRect);
        }
    }
       
    return self;
}

OK, this is here so I can preserve the highlighting when I scroll the view aroun
d otherwise it would get completely redrawn and overwrite my highlighting.  I as
sume you follow this.

Now, the problem occurs when I create a new document using new: since when its t
ime to send the window makeKeyAndOrderFront it will send my view a display the p
roblem is that the currentDocument at this time is still the old one.  Thus I will get the same highlighted area from my previous document highlighted in my new one.

Hope this is clear.  You see I need my window to appear in NXApps windowList bef
ore it sends a drawSelf. ???

What are the common uses of windowDidResignKey and windowDidResignMain when applied to apps that have global inspectors.

Newsgroups: comp.sys.next.programmer
From: adunham@delmonicos.cs.uno.edu (Andrea M Dunham)
Subject: Examples of C++ on the NeXT
Keywords: C++
Organization: University of New Orleans
Date: Fri, 21 Aug 1992 18:33:38 GMT

I do not know how to get C++ code to run on the NeXT.
I have downloaded GNU libg++-1.39.0 and g++-1.40.3.
Will someone please mail me examples of "NeXT" C++ code.
	Thanks,
		* AndREa *
From: sxmlk@acad3.alaska.edu (KIENENBERGER MIKE L)
Newsgroups: comp.sys.next.programmer
Subject: Re: Drag and Drop in < NS3.0
Summary: Drag and Drop in < NS3.0
Date: 19 Aug 92 02:36:00 GMT
Organization: University of Alaska - Fairbanks
News-Software: VAX/VMS VNEWS 1.41.UAC

In article <18AUG199203332039@acad3.alaska.edu>, sxmlk@acad3.alaska.edu (KIENENBERGER MIKE L) writes...
>In article <1992Aug17.104453.11070@monu6.cc.monash.edu.au>, ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson) writes...
>>I have to implement Drag and Drop behaviour in NS2.1, but I would also like
>>to know wether NS3.0 can do it properly. (Look forward to reading the
>>article on it simson)
>> 
>>OK, I would like to know wether drag and drop can be implemented such that
>>the application can determine specifically which window is under the cursor.
>>ie. if there are overlapping windows, I must be able to tell which is at the
>>top. ie. above all the rest
>> 
>>Anybody done this?
> 
>Yes! (Finally.)
>The key is the little-known postscript operator "findwindow."
>	<x> <y> <place> <otherwindow> findwindow <x'> <y'> <window> <bool>
>(If you're planning on writing your own routine, note that <otherwindow>
> is a local window, while <window> is a global window! If it seems inconsistant
> to you, you are not alone!)
[example deleted]

For those who are wondering why this is necessary (since when using built-in
NeXT icon-dragging routines, the proper window is identified), the real issue
being discussed is dragging/dropping inner-app objects (palette objects, for
example).  This is the missing code for the AppkitDragView class used
in WhatADrag and other NextDeveloper examples. 
=============================================================================
-Mike Kienenberger                       SXMLK@ALASKA           (BITNet)
 University of Alaska Computer Network   SXMLK@acad3.alaska.edu (Internet)
 University of Alaska-Fairbanks
Newsgroups: comp.sys.next.programmer
From: woo@ornl.gov(John W. Wooten)
Subject: lots of objects to display
Organization: Oak Ridge National Laboratory
Date: Thu, 13 Aug 1992 20:45:05 GMT

I have an app in which I have a lot of elements, which may have
many different geometrical shapes, but are subclassed from a general  
element object which is a subclass of View.  As I build them, they are  
stored in a list.

I want them to be drawn in a View (myView) in myWindow.  Each element   
subclass has a drawSelf method and each instance has it, of course.

When my controller does a [myView display], the background appears, but  
does each element have to be individually sent a [myElement drawSelf]?
It then seems that they each have to be a subView of the original View.

Somehow it should be simpler than this, so I think I'm missing  
something.



--
-----------------
J. W. Wooten
Newsgroups: comp.sys.next.programmer
From: ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson)
Subject: Needed in Nexstep
Summary: Needed in Nextstep
Organization: Monash University, Caulfield Campus
Date: Tue, 18 Aug 1992 02:04:57 GMT

I think NeXT should create a Document Class and associated App Delegate to multidocument applications consisting of basic behaviour ie. menu updates, etc etc. and that we should be able to subclass to specify application specific behaviour but they should give us a starting point.

Draw is nice, but it would be better if it were all encapsulated in some nice wrapper that everybody could use. With RTF.

If anybody has done this I sure would like to take a look at it, otherwise its probably the first thing im going to write when I have finished my university course.


Newsgroups: comp.sys.next.programmer
From: djc@fnbc.com (Dan Crimmins)
Subject: Re: atoh
Reply-To: djc@fnbc.com
Organization: First National Bank Of Chicago, Chicago IL, USA
Date: Fri, 14 Aug 92 15:18:13 GMT

In article <1992Aug14.005754.7977@csus.edu> eps@futon.SFSU.EDU (Eric P. Scott)  
writes:
> In article <1992Aug13.071225.9818@cco.caltech.edu>
> 	madler@tybalt.caltech.edu (Mark Adler) writes:
> >However, I get:
> >
> >/bin/ld: Undefined symbols:
> >_atoh
> >
> >indicating that it's not really there.  Is there some other sneaky
> >library I have to link to get it?
> 
> -lcs
> 
> >                                   Or is it not there at all?  Is
> >it in 2.2?
> 
> /usr/lib/libcs.a is identical in 2.1 and 2.2.
> 
> >            3.0 beta?
> 
> Dunno.
> 
> 					-=EPS=-

libcs.a is missing from 3.0PR2.  sources for about 80% of libcs can be found by  
anonymous ftp to cs.cmu.edu (/sys/libcs/libcs.tar.Z).

it seems strange that this would be removed from 3.0.

--d.

---
dan crimmins
djc@fnbc.com
Newsgroups: comp.sys.next.programmer
From: patl@golem.mit.edu (Patrick J. LoPresti)
Subject: Re: GNU cc features doc?
Organization: Massachvsetts Institvte of Technology
Date: Wed, 12 Aug 1992 18:48:51 GMT

In article <1992Aug11.184926.6565@aplcen.apl.jhu.edu> tim@aplcen.apl.jhu.edu  
(Tim Pugh) writes:
> Could someone please tell me where I might find documentation on
> the non ansi features provided by the GNU cc compiler.  Neither
> the on-line manual nor the developers docs appears to list them.
> For instance, what is the syntax for using the asm directive or
> the inline directive.  I believe both are supported.  Thanks for
> any help you can give me -- perhaps a reference to a net archive
> containing such info.
> 
> Tim
> -- 
> Tim Pugh                      |MicroCALL Services
> tim@aplcen.apl.JHU.EDU        |8713 Briarcroft Lane
>                               |Laurel, MD 20708-1355

Complete GCC documentation is available from "Info", GNU's on-line  
documentation system.  All of the questions you pose are answered there.

Run Emacs, type Control-h, then type "i".  Follow your nose.  (Typing "h"  
invokes an Info tutorial).

Note that NeXT includes the GCC and GDB Info files in the standard  
distribution; normally, you would install the Info pages manually at the same  
time as the package.  Also note that the Info pages included with the NeXT do  
*not* document the NeXT extensions (use Digital Librarian to find out about  
those).

Good luck!

-Pat
Newsgroups: comp.sys.next.programmer
From: waltrip@capd.jhuapl.edu
Subject: Re: Change HostID - How ??
Organization: CAPVAX, JHU/APL
Date: Sat, 22 Aug 1992 02:32:27 GMT

In article <1992Aug21.135516.10733@ni.umd.edu>, louie@sayshell.umd.edu (Louis 
A. Mamakos) writes:
	[...material deleted...]
> - It wasn't as much a pain in the $#@% to maintain and register
> software that depends on using hostids as copy protection.  I think
> that this mechanism needs to be replaced with something like a public
> key cryptosystem scheme that would be useful for other things, too.
	Amen.

c.f.waltrip

Internet:	<waltrip@capsrv.jhuapl.edu>

Opinions expressed are my own.
From: madler@cco.caltech.edu (Mark Adler)
Newsgroups: comp.sys.next.programmer
Subject: atoh
Date: 13 Aug 92 07:12:25 GMT
Organization: California Institute of Technology, Pasadena


I have release 2.1, where there is a man page for the atoh() function.
However, I get:

/bin/ld: Undefined symbols:
_atoh

indicating that it's not really there.  Is there some other sneaky
library I have to link to get it?  Or is it not there at all?  Is
it in 2.2?  3.0 beta?

Mark Adler
madler@tybalt.caltech.edu
Newsgroups: comp.sys.next.programmer
From: drew@fnbc.com (Drew Davidson)
Subject: Re: Any chances of an improved Font Panel mechanism?
Reply-To: drew@fnbc.com
Organization: First National Bank Of Chicago, Chicago IL, USA
Date: Wed, 12 Aug 92 13:59:07 GMT

In article <by+y7zm@rpi.edu> gad@eclipse.its.rpi.edu (Garance A. Drosehn)  
writes:
> 
> In an article in comp.sys.next.software
>    subject: In-line graphics (was Re: SoftPC 2.0 or 3.0)
>    tlm@nextasy.physics.mcmaster.ca (Tom Marchioro) writes:
> 
> > Since Glenn has taken us to the issue of rewriting objects for
> > convenience and/or improved function, how about the Font Panel?
> > Are any "improvements" planned for in 3.0?  Like a shelf for
> > frequently used fonts?  or maybe make the "panel" into a browser
> > where you can make "folders" of fonts for specific types of
> > documents?  etc. etc.  All I've done with my machine is to add
> > the various PD fonts off of Sonata, plus the ones that came with
> > Illustrator, but I still get very tired of having to scroll through
> > all those fonts repeatedly to use just a few again and again on a
> > certain document.  Any hopes this will be improved?  or is this 
> > somehow more difficult than I think?
> > 
> > (As an incentive to Glenn, I bet if the font panel were more 
> > convenient people would be more interested in buying additional
> > fonts)
> 
> I'm also interested in seeing improvements to the font panel.  I'm not sure  
> which changes would do the most good, but once you have a lot of fonts the  
> current selection mechanism does get unweildy.
> 
> I picked up Stylist for this, and it helps a bit.  I've also gotten used to  
> "command-3 command-4"-ing in a document to copy a font from one place to  
> another.  I think it'd be nice if we could come up with some thing better  
> than that though.
> 
> Any takers?   :-)
> 
> --
> Garance Alistair Drosehn     =     gad@eclipse.its.rpi.edu
> ITS Systems Programmer            (handles NeXT-type mail)
> Rensselaer Polytechnic Institute;           Troy NY    USA

David Pollack, the author of Mesa, has written an extension to the Font Panel  
which is really cool.  He adds a matrix below the normal Font panel that has  
chips, like in the color panel.  You can just put your most commonly used fonts  
down there and drag them around the screen exactly like you can drag and drop  
color chips.

I also like Tom's idea of making the Font Panel a generalized browser that you  
can organize as you wish.  It's getting ridiculous!

Just my $2 x 10^-2

--
+--------------------------------+-------------------------------------------+
|        Drew  Davidson          | The perfect development team:             |
|         Software Guy           | One person paid per line of code written  |
| First National Bank of Chicago | and another paid per line of code removed |
|     drew@fnbc.com  (NeXTmail)  |                     - Frank Mitchell      |
+--------------------------------+-------------------------------------------+
From: mas@csa.bu.edu (Mark A. Semich)
Newsgroups: comp.sys.next.programmer
Subject: Trouble compiling gcc 2.2.2 on NS 3.0
Date: 21 Aug 92 02:44:02 GMT
Organization: The Internet


I finally got the sources to gcc 2.2.2, did a
'configure --target=next' and when I tried to make gcc, things
compiled along fine until rtl.c where it bombed w/ the following
errors:

cc -c    -g     -I. -I. -I./config rtl.c
rtl.c:192: illegal expression, found `__extension__'
rtl.c:192: illegal expression, found `__extension__'
rtl.c:192: illegal expression, found `int'
rtl.c:192: illegal external declaration, found `)'
rtl.c:192: illegal external declaration, found `if'
rtl.c:192: illegal method selector, found `0'
rtl.c:192: illegal method definition, missing `{' after `)'
rtl.c:192: syntax error, found `->'
rtl.c:192: illegal external declaration, missing `;' after `)'
rtl.c:192: illegal method definition, found `->'
rtl.c:192: illegal method definition, missing `{' after `)'
rtl.c:192: illegal external declaration, missing `;' after `__o1'
rtl.c:197: illegal external declaration, missing `;' after `unsigned'
rtl.c:201: illegal external declaration, found `return'
rtl.c:656: illegal expression, found `__extension__'
rtl.c:656: illegal expression, found `int'
rtl.c:656: illegal expression, found `)'
rtl.c:660: illegal expression, found `else'
rtl.c:663: illegal expression, found `__extension__'
rtl.c:663: illegal expression, found `)'
rtl.c:666: illegal expression, found `__extension__'
rtl.c:666: illegal external declaration, found `)'
rtl.c:667: illegal external declaration, missing `;' after `*'
rtl.c:667: illegal external declaration, found `if'
rtl.c:667: illegal method selector, found `0'
rtl.c:667: illegal method definition, missing `{' after `)'
rtl.c:667: syntax error, found `->'
rtl.c:667: illegal external declaration, missing `;' after `)'
rtl.c:667: illegal method definition, found `->'
rtl.c:667: illegal method definition, missing `{' after `)'
rtl.c:667: illegal external declaration, missing `;' after `__o1'
rtl.c:689: illegal method selector, found `1'
rtl.c:689: illegal method definition, missing `{' after `)'
rtl.c:690: illegal function prototype, found `('
rtl.c:690: illegal function definition, found `)'
*** Exit 1
Stop.

Before I went in and tried to figure out what was wrong, I thought I'd
ask if someone has already run across this...  Am I missing something
obvious?


Thanks for any help...

--
===========================================================================
    "Success taps softly on the back door in the middle of the night...
  Never rings the bell...  Disaster comes through the living room picture
               window with headlights on and sirens blaring!"
--   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   --
mark a. semich                                               mas@csa.bu.edu
===========================================================================
Newsgroups: comp.sys.next.programmer