HDTenEightyP/NetNews huggingface dataset:
From: glenn@rightbrain.com (Glenn Reid)
Newsgroups: comp.sys.next.programmer
Subject: Re: Bobbing for Apples (was How to generate the complete character set)
Date: 10 Jan 93 01:07:05 GMT
Reply-To: glenn@rightbrain.com


Eric P. Scott writes

> Now examine the file /NextLibrary/Fonts/Symbol.font/Symbol:
> |dup 238 /braceleftbt put
> |dup 239 /braceex put
> |% dup 240 /apple put
> |dup 241 /angleright put
> 
> Hey!  Something's commented out!

Heh heh.  The Apple logo was in the Symbol font on the original
LaserWriters.  This is not gospel, but my recollection was that when
Digital signed up with Adobe, their QA people noticed the Apple logo
in there and requested that it NOT be in their printers, thank you
very much.  Can't blame them.  I believe the solution was to comment
it out in non-Apple printers, although there have been so many printers
made since then, it's hard to know what was done in each one.  Maybe
it's commented out in Apple printers nowadays, too.

Of course, "commented out" probably means not in ROM at all in a printer,
since they probably execute the font into ROM when building it.

In any case, despite the obvious implications, it wasn't NeXT that got
rid of the Apple logo :-)

--
 Glenn Reid        		NeXTmail: glenn@rightbrain.com
 RightBrain Software		415-326-2974 (NeXTfax 326-2977)
 Palo Alto, California		Electronic Frontier Foundation, member #054
From: zeno@phylo.genetics.washington.edu (Sean Lamont)
Newsgroups: comp.sys.next.programmer
Subject: Re: tcsh
Date: 6 Jan 1993 21:05:06 GMT
Organization: University of Washington, Seattle
NNTP-Posting-Host: phylo.genetics.washington.edu

In article <1993Jan6.155021.23331@ms.uky.edu> iguana@mik.uky.edu writes:
>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.
>

What a totally bogus statement.  Any reasonable shell programmer uses
bourne shell just because it's more flexible.  And cshell does NOT allow shell
programming in the C language, just some of the syntax is shared.

tcsh has a number of features that are desirable:  Command-history scrollback,
tab filename completion, watches, periodically executed commands, 
date/time/cwd in the prompt string, and many others.

-- 
Sean T. Lamont                           |   "Don't oppress me, It's
zeno@genetics.washington.edu             |    'computer of color!' "
lamont@abstractsoft.com                  |_______________________________
Abstract Software
From: burkhold@next.com (Thomas Burkholder)
Newsgroups: comp.sys.next.programmer
Subject: Re: Archiving memory streams
Keywords: memory, NXStream, archiving
Date: 13 Jan 93 02:21:37 GMT

In article <1993Jan8.150148.6961@ornl.gov> woo@ornl.gov (John W. Wooten)  
writes:
> I have a NXStream that contains information I wish to archive.
> 
> I have demonstrated that the Object I am archiving which as
> the stream pointer as an instance variable works properly as far as  
> being able to set and retreive the contents of the stream pointer.
> 
> When archiving the Object, I wish to archive the contents of the stream  
> pointer.  How do I do this?  I've tried * as type, and several other  
> options, but the stream is a structure, should I have to describe the  
> structure?
> 
> - - - - - - - - -
> J. W. Wooten

Just hacked this up on the fly, so it probably isn't error-free; but you  
get the idea.  A production version should probably be more careful about  
how memory is allocated, not to mention error checking.  Hope it helps.

-thomas
Thomas Burkholder (burkhold@next.com)
NeXT Developer Support Team
* And, no, I don't speak for NeXT, at least, not when I post on the net.*

-----cut here-----
-writeStreamToTypedStream(NXTypedStream *cooked, NXStream *raw)
{
  char formatStr[10], *buf;
  int len, maxLen;

  NXGetMemoryBuffer(raw,&buf,&len,&maxLen);
  sprintf(formatStr,"%c%dc%c",len,'[',']');
  NXWriteTypes(cooked,"i",len);
  NXWriteTypes(cooked,formatStr,buf);
  return self;
}

-NXStream *readStreamFromTypedStream(NXTypedStream *cooked)
{
  int len;
  char *formatStr;

  NXReadTypes(cooked,"i",&len);
  buf = (char *)malloc(len * sizeof(char));
  sprintf(formatStr,"%c%dc%c",len,'[',']');
  NXReadTypes(cooked,formatStr,&buf);
  return NXOpenMemory(buf,len,NX_READONLY);
}
From: trung@cs.bu.edu (Trung Dung)
Newsgroups: comp.sys.next.programmer
Subject: HELP: compiling C++ using gcc on NeXT
Date: 6 Jan 93 03:01:57 GMT
Organization: Computer Science Department, Boston University, Boston, MA, USA

I have gcc2.3.3, and libg++2.3 installed. I have the following "hellow world"
program to test out the stream library:

#include <stream.h>
main()
{
cout << "hello world" << endl;
}

It compiled fine, but failed when it tried to link. Here is the messag:

ld: Undefined symbols:
_endl__FR7ostream
_cout
___ls__7ostreamPCc
.....

Am I missing something? Any help would be highly appreciated!
Trung

Xref: sparky comp.sys.next.programmer:8070 comp.lang.postscript:6231
From: josh@MITL.COM (Joshua A. Tauber)
Newsgroups: comp.sys.next.programmer,comp.lang.postscript
Subject: Installing a type 3 font
Summary: Unable to install type 3 font under NextStep 2.1
Keywords: NextStep, font, type 3
Date: 11 Jan 93 19:05:10 GMT
Organization: Matsushita Information Technology Laboratory, Princeton, NJ
Originator: josh@awabi

I am trying to create/install a type 3 font on a NeXT (NextStep 2.1).

The PostScript for defining the font works.  By that I mean that I can
include it in the prolog of a PostScript page description and use it
to show text on a page (findfont, scalefont, selectfont, show, etc.)

I have also created a .afm file (by modifying one from another type 3
font) which at least allows me to have the font appear in the NextStep
font panel.  (I have placed both the PS font description and the .afm
file in a directory under ~/Library and run buildafmdir on them.) I
believe the .afm file is correct. 

I can select the font in the font panel and type. (I am using edit.)

Never the less, text in my font does not appear on the page. 
Error messages appear on the console complaining that:

Jan 11 12:51:20 amber Edit[6618]: DPS client library error: PostScript program error, DPSContext 48160
Jan 11 12:51:20 amber Edit[6618]: %%[ Error: undefined; OffendingCommand: workdict ]%%

workdict is a dictionary defined in the PostScript file defining
the font.

Any help would be appreciated.

    	    	    	    	    	-jat42
-- 
Joshua A. Tauber
Matsushita Information Technology Laboratory  | Email: josh@mitl.com
182 Nassau Street, Third Floor		      | Phone: +1 609 497-4600
Princeton, NJ  08542-7072 USA		      | Fax:   +1 609 497-4013
From: louie@sayshell.umd.edu (Louis A. Mamakos)
Newsgroups: comp.sys.next.programmer
Subject: Re: Symbol tables of dynamically loaded objects in gdb
Date: 4 Jan 1993 23:31:19 GMT
Organization: University of Maryland, College Park
NNTP-Posting-Host: sayshell.umd.edu

In article <6148@rosie.NeXT.COM> dave_moore@next.com (Dave Moore) writes:

>If you're running on 3.0 you shouldn't have to do anything to get the  
>symbols loaded.  Gdb just notices that code was loaded, and loads up the  
>symbols.  In fact you can use the future-break (fb) command to set  
>breakpoints in the code before you load it.  Any breakpoints in it are  
>forgotten about when the code is unloaded or the program is restarted, but  
>they come back when the code is loaded again.  It just ought to work.  

I've been using gdb and it really does load the symbols as modules are
dynamically loaded.  I didn't know about the fb command, though, this
sounds way-cool and will be a real big help.

>As for the above commands add-file is the one to use.  This can force  
>symbols in.  If you supply a "debug-file" argument to rld_load or  
>objc_loadModules (there is no way to do this if you're using bundles),  
>this is the file to give to add-file.

I've been using NXBundle quite a bit lately on a project that I've
been working on, and its been working pretty well.  However, I'm
thinking of dropping back to using objc_loadModules since I can get it
to create the debug file.  It would be *real* nice if there was a way
to have the NXBundle class make an object file as it loads modules.
While running a program under gdb works most of the time, if you get a
core dump, you're pretty much hosed trying to debug it

louie
Newsgroups: comp.sys.next.programmer
From: fankhaus@nessie.cs.id.ethz.ch (George Fankhauser)
Subject: Re: dbkit and sybase server connections
Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
Date: Tue, 12 Jan 1993 13:07:34 GMT

In article <C0q3w5.2Lq@unix.portal.com> pyramid@shell.portal.com (Fouad Habboub) writes:
>estrin!kswanson (Kevin Swanson) writes:
>
>>I'm working on an application that uses dbkit along with sybase.
>>I've come across the problem that my application makes two and sometimes
>>three connections to the sybase server, when it really should only need
>>a single connection.
>
>>Has anyone who has worked with dbkit experienced any problems like this?
>
>>thanks,
>>kevin
>
>
>>kswanson@rdr.com
>
>
>I've experienced similar problems. At one point it seemed that every
>instance of RecordList make a separate connections to sybase.
>
>fouad
>

no, only instances of DBDatabase create new tcp connections to the
db server.

George
From: ricardo@pencom.com (Ricardo Parada)
Newsgroups: comp.sys.next.programmer
Subject: Re: The Darker Side of C++ (forwarded)
Date: 12 Jan 93 23:40:17 GMT
Distribution: usa
Organization: Pencom Software

In article <1iv5ijINN8ba@pith.uoregon.edu> bjorn@darmok.uoregon.edu (Bjorn S.  
Fjeld Pettersen) writes:
> In article <1993Jan12.165154.26915@dvorak.amd.com> rpomeroy@aunext1.amd.com  
> (Ron Pomeroy x(Coop)) writes:
> > In article <63320@mimsy.umd.edu> alex@cs.umd.edu (Alex Blakemore) writes:
> > >>I thought some Obj-C users would find it interesting.
> > [munch munch]
> > >>
> > >>                       ANNOUNCEMENT OF A LECTURE
> > >>                       
> > >>                    
> > >>                    -- "THE DARKER SIDE OF C++" --
> > >>                    
> > >>                     Wednesday, January 27, 1993
> > >>               15.15 o'clock (end at 17.00 at the latest)
> > >>
> > >>
> > >>          Ecole Polytechnique Federale de Lausanne - Site Ecublens
> > >>          Batiments du Departement d'informatique - room INR 219
> > >>         
> > >>
> > >>           by MARKKU SAKKINEN, University of Jyvaskyla, Finland
> > >>
> > >>
> > [munch munch]
> > 
> > >>The worst disadvantage of C++ at the moment is political:  accepting
> > >>C++ as the standard OO language de facto tends to kill other existing
> > >>languages, and stifle the development of a new generation of
> > >>essentially better OO languages.
> > 
> > Aaaaaaaaaamen!!
> > 
> > --
> > Ronald Pomeroy		[Objective-Cruntime: [Smalltalk runtime]];
> 
> When I can do this in Obj-C I would be happy (tm):
> 
> 	String a = "hello", b = " ", c = "world";
> 	cout << a + b + c + '\n';
> 
> Until then things (tm) look soooo much prettier in C++.
> (BTW, where is that multiple inheritance in Obj-C???)
> 

Where are those productivity gains in C++?  Where is that real run-time  
binding in C++?  Where are those Distributed Objects seamlessly integrated  
into the language?  Sorry, but you won't see that on C++?

Operator overloading **is cool and simplifies notation**.  It's pretty handy  
for complex numbers and strings.  But it does NOT have as much impact on code  
maintenance and programmer productivity as ObjC's features.

As of multiple inheritance, I usually use composite objects in ObjC.  To build  
a SavePanel you don't inherit from a button and from a window you use a button  
(i.e. a button that says Save and another for Cancel) object and a window (or  
panel) object.  The window will contain a button object, making it a composite  
object.  It's cleaner.  If you find a case where composite objects do not  
solve your problem and you have to use multiple inheritance let me know 'cause  
I'm still looking for a practical example.

That's why I like ObjC++.  But to me:

	 ObjC >> C++ 

where >> means "much greater than."  I'm not being religious, just  
"Objective."  Keep the one you like better!

--
Ricardo J. Parada
Pencom Software
Newsgroups: comp.sys.next.programmer,comp.sys.next.software,comp.sys.next.misc
From: obrooks@dale.ksc.nasa.gov(Oscar Brooks)
Subject: GNU g++ compiler help???
Organization: NASA
Date: Tue, 12 Jan 1993 21:05:38 GMT


Can someone tell where and which version of g++ to get that works on 
NeXTStep 3.0 ? I would also like libg++ as well. I have also heard there
are some tricks to compiling under 3.0?

Oscar

--

------------------------------------------------
Oscar Brooks		
NASA, Real Time Systems Branch
Kennedy Space Center, Fla. 32899
Mail Code: DL-DSD-24
From: joseph@lilliput.fdn.org (Joseph Goldstone)
Subject: Re: Getting Renderman examples involving RiLightSource to work?
Keywords: renderman
Organization: Lilliputian Pictures - Paris, France.
Date: Thu, 7 Jan 1993 13:05:46 GMT

Peter Milne writes
> Following advice from other recent posters I managed to get the simple
> Renderman example on page 18 of "The Renderman Companion" to work.
> Unfortunately thought, I haven't been able to get the next example on
> page 20 to work.  This example involves a RiLightSource call.
> When I execute this example I get the following warning msg:
> 
> 	Warning in context RMContext00001 in command RiLightSource :
> 	nullpointer: 'light' == 0
> 
> and nothing involving the specification of the lightsource gets written into
> the .rib file.
> 
> Now I've tried it with and without the following RiOption
> 
> 	RiOption(RI_ARCHIVE, "outputversion", &v31, RI_NULL);
> 
> The release notes for 3DKit say not to use this form of RiOption because
> the version number doesn't get correctly written to the .rib file
> and that instead you should use RiComment("\nversion 3.1");  Trouble is
> RiComment doesn't seem to be in Media_s or NeXT_s and isn't commented
> anywhere that I could find.
> 
> The release notes also say that this form of RiOption causes RiLightSource
> to generate invalid sequence numbers and that it should be avoided.
> 
> Has anyone succeeded in getting the page 20 example to work?  Is so how
> did you do it?
> 

RiLightSource underwent a sea-change post 3.1, to accomodate some interface  
changes involving handle scoping.

Try this:
#import <ri/ri.h>

RtPoint Square[4]={{.5,.5,.5}, {0.5,-.5,.5}, {-.5,-.5,.5}, {-.5,.5,.5}};

RtColor Color = {.2, .4, .6};
RtToken myDistantHandle;

int main(void)
{
  char *archive = "archive";
  char *ribfile = "pg20.rib";
  RiBegin(RI_NULL, "renderer", &archive, "filepath", &ribfile, RI_NULL);
    RiDisplay("pg20.tiff", RI_FILE, RI_RGBA, RI_NULL);
    myDistantHandle = RiCreateHandle("myDistantHandle", RI_LIGHTSOURCE);
    RiLightSource(myDistantHandle, "distantlight", RI_NULL);
    RiProjection("perspective", RI_NULL);
    RiTranslate(0.0,0.0,1.0);
    RiRotate(40.0,-1.0,1.0,0.0);
    RiWorldBegin();
      RiSurface("matte", RI_NULL);
      RiColor(Color);
      RiPolygon(4, RI_P, (RtPointer) Square, RI_NULL);
    RiWorldEnd();
  RiEnd();                                                               
  return 0;
}

If you like you can collapse the pedantic RiCreateHandle/RiLightSource couplet  
into:
  myDistantHandle = RiLightSource("myDistantHandle", "distantlight", RI_NULL);
which also works. This version is more or less what's documented on p.21 of the  
QRM beta release notes in Digital Librarian.

-- joseph
Newsgroups: comp.sys.next.programmer
From: woo@ornl.gov (John W. Wooten)
Subject: RTFD, copying to Objects and Archiving
Reply-To: woo@ornl.gov
Organization: Oak Ridge National Laboratory
Date: Thu, 7 Jan 1993 21:30:19 GMT

I am working on an application where I compose questions
that will contain rich text (including diagrams).  I have a simple  
subclass of Object called QuestionObj that I create an instance of for  
each question and then maintain the questions in a List Object.

The text is in a text field with id "text".

I try to do the following:
	NXStream *buffer;
	
	count = [questions count];
	newQuestion = [[QuestionObj alloc] init];
	buffer = NXOpenMemory(NULL,0,NX_WRITEONLY);
	[text writeRTFDTo:buffer];
	[newQuestion setText:buffer];

Now in the QuestionObj, I have:
- setText:(NXStream *)str
{
	buffer = str;
	return self;
}
- (NXStream *)text
{
	return buffer;
}
with interface of:
@interface QuestionObj:Object
{
	int num;
	NXStream *buffer;
}

- setNum:(int)val;
- (int)num;
- setText:(NXStream *)str;
- (NXStream *)text;

Now, first it appears that I'm not getting the Rich Text because I  
can't get it back out of the object with text method.

I know most of this works with ascii text (I tried this all out using  
char *buffer;
first)

Also, if this even works, in the -read -write methods of the
QuestionObj class, what do I put for the descriptor when I use
NXWriteTypedStreamToFile ?
I used a * when it was a char * and it worked.

What do I put for a typed stream?


- - - - - - - - -
J. W. Wooten
From: glocker@futon.SFSU.EDU (Andreas R. Glocker)
Newsgroups: comp.sys.next.programmer
Subject: TEXT.H TextFunc how does it work???
Summary: appkit text.h contains scanFunc how does it work?
Keywords: text.h text, textfunc, NXTextFunc
Date: 4 Jan 93 23:35:05 GMT
Distribution: usa
Organization: San Francisco State University

Please let me know ifsombody out there knows of any example of
how to use the setScanFunc in the Text objc.

Please make it a good one with some source code explaining the
scan function itself

Thank you in advance.....

Andreas
glocker@futon.sfsu.edu
~:x
Newsgroups: comp.sys.next.programmer
From: powhwee@ncb.gov.sg (Tan Pow Hwee)
Subject: Scrolling
Organization: National Computer Board, Singapore
Date: Wed, 6 Jan 1993 12:55:29 GMT

Two questions about scrolling:

1.  I have a subclass of View as the docView in a ScrollView.  How do
I set the amount for scrollView to scroll automatically when user
moves the scrollers?  Specifically I am drawing text on the view and
I want scrolling to fall on line boundary.  I've looked at adjustScroll
but the documentation (Online stuff) didn't say much. 


2.  Perhaps related to 1.  How do I know where my view is after the user
scrolled.  And how do I know scrolling has occurred?

Thanks.

PS: Don't tell me to use text object instead. :-).  I'm working on a
terminal emulator.
From: alex@cs.umd.edu (Alex Blakemore)
Newsgroups: comp.sys.next.programmer
Subject: Re: The Darker Side of C++ (forwarded)
Date: 13 Jan 93 05:51:40 GMT
Distribution: usa
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742

In article <1iv5ijINN8ba@pith.uoregon.edu> bjorn@darmok.uoregon.edu (Bjorn S. Fjeld Pettersen) writes:
> (BTW, where is that multiple inheritance in Obj-C???)

and where is dynamic binding in C++?

about MI, it is a technique, _a_ solution to a class of programming problems.
same with delegation using dynamic binding in Obj-C.

in C++, MI is critical because inheritance is the main tool in the langugage.
in other languages, MI may not be as critical because other language features
can be used to solve problems (perhaps more elegantly) for which C++ requires MI.

for example, MI is often used to mix in functionality - there is a true parent class
in an abstract sense and several other parents that just provide some methods.
Delegation can play the same role in Obj-C, other languages may have other features
that can achieve the same effect.

classes that are really multiple things at the same time (both an airplane and a radio)
really benefit from MI, its the most natural way to express that - but many people state
that use of MI is rare compared to the others - and even then there are other ways
(let each airplane _contain_ a radio).

Bottom Line: MI can be very useful in some situations and languages, but that
doesnt mean it should be added to every OO language.  there may be other langage
features that obviate much of the need for MI in that case.  MI does bring some
complications as well.
-- 
---------------------------------------------------
Alex Blakemore alex@cs.umd.edu   NeXT mail accepted
Xref: sparky comp.sys.next.programmer:8073 comp.sys.next.software:3392
From: szatrows@gandalf.rutgers.edu (John Kheit)
Newsgroups: comp.sys.next.programmer,comp.sys.next.software
Subject: NUCA
Date: 11 Jan 93 20:39:18 GMT
Followup-To: comp.sys.next.programmer
Organization: Rutgers Univ., New Brunswick, N.J.


N U C A
NeXT Users' Choice Awards---Thanks to Conrad Geiger for the name!

     I will take submissions from the net until Jan 23, 1993.

     All you need to do is send back the form attached below with
your favorite software or hardware products for 1992.
     The subject of the post should be Re: NUCA (or just replying
to this post).  Send votes to szatrows@gandalf.rutgers.edu

     I will post the results and maybe see about getting little
trophies or ribbons made up for the winners.
     This is your chance to reward the great NeXT Developer
community by shining some well deserved praise their way.

The rules are:
- You can only vote once (i.e. one vote per e-mail address).
- You can vote for any product you wish; be it from NeXT, a 3rd
party developer, shareware/freeware (or those tasty frosted donuts
from Hostess under the 'other' category ;-)

     Finally I made up a logo for the winners to use (if they want
to) to let everyone know that they won the NUCA.  I'll put it up on
both orst and nova.  People can let me know if they think it stinks
and if so please feel free to make your own (after all it is the
U S E R S ' choice award so the users should get involved!).  BTW
you will need Helvetica-Black and Avant Garde (Book Oblique & Demi
Oblique) to see the logo in all of its glory :-)

NUCA Form below:
-----------------------------------------------------------------------

1.)  Software
a.) Audio              :
b.) Communications     :
c.) DataBase           :
d.) Developer          :
e.) DTP                :
f.) Game               :
g.) MultiMedia         :
h.) Spreadsheet        :
i.) Wordprocessing     :
j.) Utility            :
k.) Video              :
l.) Other              :

2.)  Overall Software Product of the Year   :


3.)  Hardware
a.) Audio             :
b.) Communications    :
c.) Display           :
d.) Graphic Input     :
e.) Mass Storage      :
f.) Printing/Output   :
g.) Video             :
h.) Other             :

4.)  Overall Hardware Product of the Year   :


5.)  Overall Product of the Year            :
-- 
NeXT Campus Consultant---Rutgers, the State University of New Jersey |my    %^)
John Kheit/monoChrome  | Opinions expressed represent me only!       |fried %-)
173 Westgate Drive     | Audix Voice Mail# (415) 366-0900 X5512      |brain %>)
Edison, NJ 08820-1163  | kheit@hangout.rutgers.edu,szatrows@gandalf.rutgers.edu
Newsgroups: comp.sys.next.programmer