HDTenEightyP/NetNews huggingface dataset:
From: mzeller@namu01.gwdg.de (Meinrad Zeller)
Subject: TEXT.H TextFunc how does it work???
Organization: GWDG, Goettingen
Date: Thu, 7 Jan 1993 03:52:37 GMT

Hi there,

I've worked quite a bit with the text object and also had problems with those 
scanning and drawing functions. I've debugged the whole thing and think, that  
its just too much work to write your own functions. 
Originally I wanted to write a small wordprocessor using the text object, 
and wanted to implement decimal and right justified tabs and also justified 
text. Because of missing documentation and bugs in the text object I've 
dropped the project. I'm not sure, whether its simpler, to rewrite the whole 
thing so you know whats going on, or to explore the text object and find out
 how to write your own functions.

I don't understand why NeXT makes those functions public, but doesnt 
document them at all. The documentation tells us, that things like 
NX_JUSTIFIED and NX_RIGHTTAB are not implemented #yet#. But 3.0 didn't 
change anything. 

There are flames going on in next/misc about the horrible situation 
with wordprocessors for the NeXT. It's true - except FrameMaker there is
no serious WP for the NeXT. WriteNow is too simple and WordPerfect is a pain 
in the a.. And there's still no WP you could use in connection with a database. 
The text object could be a good basis for a more serious wordprocessor for the 
NeXT, but without documentation you just have to rewrite the whole thing.

Anybody out there, who wrote a new text object or who found out how to use the 
scan and draw functions?

Meinrad 

--
** Meinrad Zeller - Foehrenweg 1 - 3400 Goettingen - Germany **
** email: mzeller@namu01.gwdg.de      Phone: +49-551-300095  **
Newsgroups: comp.sys.next.programmer
From: root@aunext1.amd.com (Operator)
Subject: Re: UNIX INTERFACE
Reply-To: rpomeroy@aunext1.amd.com
Organization: Advanced Micro Devices, Inc.; Austin, Texas
Distribution: usa
Date: Wed, 6 Jan 93 19:27:46 GMT

In article <1iee25INNksa@nigel.msen.com> oscar@msen.com (Oscar Linares) writes:
> 
> Subject:UNIX INTERFACE QUESTION
> Newsgroups: comp.sys.next.programmer
> Organization: Msen, Inc. -- Ann Arbor, Michigan
> Summary:
> Keywords:
> 
> Hi,
> 
> I am wondering if there is a Nextstep 3.0 object that would allow me to  
interface to the UNIX
> on a color turbo station.  Hopefully, an interface along the lines of the  
C-shell but which
> would allow me to exploit the GUI features of the next.
> 
> Thanks in advance,
> 
> Oscar A. Linares, MD
> Laboratory of Computers in Biomedical Applications
> (oscar@msen.com)

Look at the Subprocess example in /NeXTDeveloper/Examples/UNIX/Subprocess.

Ronald Pomeroy
Advanced Micro Devices
CAM Applications Group
Austin, Texas
rpomeroy@aunext1.amd.com
From: bjorn@darmok.uoregon.edu (Bjorn S. Fjeld Pettersen)
Newsgroups: comp.sys.next.programmer
Subject: Re: The Darker Side of C++ (forwarded)
Date: 12 Jan 93 19:18:43 GMT
Article-I.D.: pith.1iv5ijINN8ba
Distribution: usa
Organization: University of Oregon Network Services
NNTP-Posting-Host: cisco-ts2-line34.uoregon.edu

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???)

--bjorn
------------------------------------------------------------------------------
Bjorn S. Fjeld Pettersen
bjorn@doek.uoregon.edu                       NextMail Welcomed
#include <std-disclaimer.h>
------------------------------------------------------------------------------
From: alex@cs.umd.edu (Alex Blakemore)
Newsgroups: comp.sys.next.programmer
Subject: Re: ada developement tools??
Date: 7 Jan 93 16:27:31 GMT
Distribution: comp
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742

In article <SHAWN.93Jan7134542@litsun.epfl.ch> shawn@litsun.epfl.ch writes:
> Does anyone know if there are any Ada developement tools for the Next
> machine?? what about cross compilers??

Yes, Meridian sells their OpenAda compiler and environment for the NeXT.
They can be reached in the US at (714) 727-0700 - California time.

Its fast, easy to use and pretty stable.  I've found a few minor compiler
bugs, but have easily worked around them.  Its a basic Unix port, no
NeXTSTEP GUI stuff or natural connection to NeXT IB - but they are talking about it.
Let them know if thats important to you.  My biggest dissapointment is that
they use their own debugger which doesnt always work, instead of gdb.
Most Ada compiler vendors do this to support concurrent tasks, but NeXT gdb
already knows about threads.  But the compiler is so fast, debugging with tracers
is not nearly as painful as it sounds.

It interfaces with C easily using the standard Ada pragma interface.
I imagine you could interface with Objective C the same way by calling the
objective C runtime directly.

-- 
---------------------------------------------------
Alex Blakemore alex@cs.umd.edu   NeXT mail accepted
Newsgroups: comp.sys.next.programmer
From: gad@eclipse.its.rpi.edu (Garance A. Drosehn)
Subject: Re: TEXT.H TextFunc how does it work???
Date: Tue, 12 Jan 1993 22:50:13 GMT

dave@prim.demon.co.uk (Dave Griffiths) writes:
> mzeller@namu01.gwdg.de (Meinrad Zeller) writes:
> >Hi there,
> >
> >I've worked quite a bit with the text object and also had problems
> >with those scanning and drawing functions.
   [skipping over additional comments on text object]
> 
> It seems to be agreed that the Text object is the worst part of the app
> kit.  Most WordProcessors for the NeXT don't use it, which is wasteful
> because you've got all these developers reinventing the wheel. NeXT
> don't seem to be putting much effort into supporting it.
> 
> Solution? I think NeXT should release the source for the Text object.
> What do they have to lose? It's hardly a jewel in their crown.

I guess the question is, why doesn't everyone else (all the people who are  
reinventing the text object) get together and release *their* work?  

--
Garance Alistair Drosehn     =     gad@eclipse.its.rpi.edu
ITS Systems Programmer            (handles NeXT-type mail)
Rensselaer Polytechnic Institute;           Troy NY    USA
Newsgroups: comp.sys.next.programmer
From: woo@ornl.gov (John W. Wooten)
Subject: Archiving memory streams
Reply-To: woo@ornl.gov
Organization: Oak Ridge National Laboratory
Date: Fri, 8 Jan 1993 15:01:48 GMT

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
Newsgroups: comp.sys.next.programmer
From: ah@fml.tuwien.ac.at (Andreas Haleger)
Subject: ConnectionInspector in IB
Organization: Technical University of Vienna
Date: Tue, 12 Jan 1993 12:37:52 GMT


I am writing a connection inspector for InterfaceBuilder which should  
first behave like the normal connection inspector and further support more  
than one connection attached to an outlet (like e.g. DBModule).
The DBModule's Editor allows the user to control-drag a connection line  
from an icon in the editor's window to the target. If somebody knows how  
to do this, please tell me, but I am satisfied in making connections  
between my object in the object's window and the target by double clicking  
in the connection inspector window.
My problem is where to get outlet names and action methods from. I  
couldn't find any hints in the documentation. (I would not have this  
problem if I were able to subclass IBConnectInspector. It is really a  
pitty that one has to totally rewrite an existing class).
The outlet information could be stored in the inpected objects (e.g.  
-getOutlets: like -getInspectorClassName). For I have to provide  
additional information (like this is an outlet allowing multiple  
connections or this is a "target-action" outlet) I have to write such  
methods nevertheless.
This solution doesn't work for action methods (the target could be of any  
class). The only workaround I see is to have a TextField where the user  
can enter the action method.

Waiting for help,
--
== Andreas ==
Wir entschuldigen uns fuer die Strapazen (Douglas Adams). NeXTmail  
accepted.
Newsgroups: comp.sys.next.programmer
From: dave@prim.demon.co.uk (Dave Griffiths)
Subject: Re: TEXT.H TextFunc how does it work???
Organization: Primitive Software Ltd.
Date: Fri, 8 Jan 1993 00:07:00 GMT

In article <HNJ060R@gwdu03.gwdg.de> mzeller@namu01.gwdg.de (Meinrad Zeller) writes:
>Hi there,
>
>I've worked quite a bit with the text object and also had problems with those 
>scanning and drawing functions. I've debugged the whole thing and think, that  
>its just too much work to write your own functions. 
>Originally I wanted to write a small wordprocessor using the text object, 
>and wanted to implement decimal and right justified tabs and also justified 
>text. Because of missing documentation and bugs in the text object I've 
>dropped the project. I'm not sure, whether its simpler, to rewrite the whole 
>thing so you know whats going on, or to explore the text object and find out
> how to write your own functions.
>
>I don't understand why NeXT makes those functions public, but doesnt 
>document them at all. The documentation tells us, that things like 
>NX_JUSTIFIED and NX_RIGHTTAB are not implemented #yet#. But 3.0 didn't 
>change anything. 
>

It seems to be agreed that the Text object is the worst part of the app kit. 
Most WordProcessors for the NeXT don't use it, which is wasteful because 
you've got all these developers reinventing the wheel. NeXT don't seem to be 
putting much effort into supporting it.

Solution? I think NeXT should release the source for the Text object. What do 
they have to lose? It's hardly a jewel in their crown. And there's loads to 
gain for all of us.

Dave Griffiths
From: sam_s@NeXT.com (Sam Streeper)
Newsgroups: comp.sys.next.programmer
Subject: Re: Pointers to functions in method definitions
Date: 6 Jan 93 05:10:45 GMT
Reply-To: sam_s@NeXT.com

alastair@hecate.phy.queensu.ca (A.B. McLean) writes:
> I want to write a method that will accept a pointer to a C function.


I would guess that this isn't directly possible; it looks like the Objective-C  
runtime doesn't have the ability to encode data of type function pointer.

A couple of solutions might include passing the function pointer as an int  
pointer and then casting it to a function pointer, or to remove the function  
interface and pass a selector:

- invokeThisMethod:(SEL) aMethod
{
	[self perform: aMethod with:self];

}

If aMethod = @selector(foo:), this is roughly equivalent to [self foo:self].

-sam
--
Opinions expressed herein are not those of my employer.  They're not even
mine.  They're probably wrong besides.  How did they get in here, anyway?
From: bizarre@clients-r-us.tamu.edu (Tom Swanner III)
Newsgroups: comp.sys.next.programmer
Subject: libnwapi_s.a
Date: 8 Jan 1993 22:42:59 GMT
Organization: Texas A&M University, College Station, TX
NNTP-Posting-Host: clients-r-us.tamu.edu
Keywords: novell netware

Has NeXT released libnwapi_s.a, the Novell NetWare library yet?  If so, where  
could I get it?

Thanks,

Tom Swanner III
bizarre@clients-r-us.tamu.edu
Newsgroups: comp.sys.next.programmer
From: pyramid@shell.portal.com (Fouad Habboub)
Subject: Re: dbkit and sybase server connections
Organization: Portal Communications Company
Date: Tue, 12 Jan 1993 04:16:52 GMT

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
From: rick@akbar.cc.utexas.edu (Rick Watson)
Newsgroups: comp.sys.next.programmer
Subject: Finder info for mounted Macintosh disks
Date: 6 Jan 1993 21:25:35 GMT
Organization: University of Texas at Austin
Distribution: world
NNTP-Posting-Host: akbar.cc.utexas.edu

Under 3.0 if I've mounted a Macintosh disk, I can read the file's data
fork as a normal file and refer to the resource fork as
<filename>.#rsrc#. Is there any way to get any of the finder info from
the directory, particularly the FInfo fdType and fdCreator fields? 

Has anyone written any utilities to convert to/from macbinary 
files, etc?

Rick Watson 
The University of Texas Computation Center, Networking Services, 512/471-3241
 internet: r.watson@utexas.edu

Newsgroups: comp.sys.next.programmer
From: Michael_Pizolato@afs.com (Michael Pizolato)
Subject: Workspace ghosting rules
Reply-To: Michael_Pizolato@afs.com
Date: Thu, 7 Jan 1993 15:21:48 GMT

I'm working on some drag 'n' drop stuff where I intend to use ghosting,
a la File Viewer.  I have an example app called ToolInspector that
ghosts by compositing 50% NX_LTGRAY over the icon, and that's not
bad.  However, in studying File Viewer closely I've noticed that the
ghosting behavior is more complex than that:

   1. When dragging a file icon over an empty shelf slot, the ghosting
      leaves light gray and white alone, turns black into dark gray
      and dark gray into light gray.

   2. A file that I have no permissions for appears on the shelf always
      ghosted, but differently than as described in 1.

   3. I have access to a color machine, but I have no idea how to
      describe how the ghosting is done there, although there is still
      a difference between an icon being dragged over an empty shelf
      slot and an icon for a file I have no permissions to.

I'm a compositing beginner, and I was not able to duplicate any of the
above by experimenting with CompositeLab.  Before I kill more brain
cells trying to figure this out, does anyone know the rules for these? 
I'd like to have my ghosting behavior identical to File Viewer if
possible.   

Thanx,
Michael

--
Michael_Pizolato@afs.com
~18 kyu
Q16
NeXTMail appreciated
Newsgroups: comp.sys.next.programmer
From: gordie@cyclesoft.com (Gordie Freedman)
Subject: Re: Pointers to functions in method definitions
Reply-To: gordie@cyclesoft.com
Organization: Dolphin Software
Date: Tue, 5 Jan 1993 08:22:36 GMT

In article <C0CAtI.KqM@knot.ccs.queensu.ca> alastair@hecate.phy.queensu.ca  
(A.B. McLean) writes:
> POINTERS TO FUNCTIONS IN METHOD DEFINITIONS
> 
> I want to write a method that will accept a pointer to a C function.
> For example, let the function be a simple Gaussian:-
> 
> void gaussian(x,a,y)
> float x,a[],*y;
> {
>   float arg;
>   
>   arg = (x-a[2])/a[3];
>   *y += a[1]*exp(-arg*arg);
> }
> 
> In the interface file I would expect (Kernigham amd Ritchie section 5.11)
> the method definition to look like 
> 
> - methodName:void(*gaussian)(float, float*, float*);
> 
> and in the implementation file I may have
> 
> - methodName:void(*gaussian)(float, float*, float*)
> {
>   // ...
>   return self;
> }
> 
> When I try to do this the compiler gives me the message
> 
>   parse error before `void'
>   
> Any suggestions ?
> 
> Alastair McLean
> alastair@hecate.phy.queensu.ca

This should do it:

- methodName:(void (*) (float, float*, float*)) gaussian
{
	return self;
}

Hope this works for you, I just tried this:

- doit : (void (*) (int, int)) foo :(int) x :(int) y
{
	// do something
}

in some obj-c code and it worked.

Remember, the syntax for declaring parameters to obj-c methods is different  
than declaring parameters for C functions, objc uses a "cast"-like syntax for  
parameter declarations in methods.

-- 

--- Gordie Freedman gordie@cyclesoft.com  NeXTMail Yes! ---
>>> Thou shalt not inline functions more complicated than 20
From: sam_s@NeXT.com (Sam Streeper)
Newsgroups: comp.sys.next.programmer
Subject: Re: Some questions
Date: 10 Jan 93 06:01:16 GMT
Reply-To: sam_s@NeXT.com

hubert@cubx.com (Hubert Delahaye) writes:

> - Next he wants to know if it will be possible to run OS/2 under NeXTSTEP  
> 3.0 (Arrrghhhhh !), and especially Lan Manager.

I assume you mean NeXTSTEP 486.  OS/2 cannot be run under NeXTSTEP, but they  
can reside on a single disk.  Also NeXTSTEP can read the OS/2 partition if it  
uses the FAT file system.

-sam

--
Opinions expressed herein are not those of my employer.  They're not even
mine.  They're probably wrong besides.  How did they get in here, anyway?
Newsgroups: comp.sys.next.programmer
From: trivedi@npoint.com
Subject: Re: HELP: - app: fileOperationCompleted:
Organization: nPOINT, Ltd.  8026 North Washington, Niles, IL  60714
Date: Sat, 9 Jan 1993 18:22:12 GMT

I had the exact same problem and the answer that I got was that it's
fully documented but not implemented. Major :-( 

Kam
---
pbeiler@fnma.com (Phil Beiler) writes:


>I am having problems with the method:

>app: fileOperationCompleted:

>I performed the following command:

>	rc = [[Application workspace] 
>		performFileOperation:WSM_RECYCLE_OPERATION 
>		source:THE_PATH 
>		destination:"" 
>		files:fileList
>		options:NULL];

>The request returns a positive integer, which means that it should call  
>the fileOperationCompleted method, when the operation has completed. The  
>file gets moved to the recycler, by the method never gets called.

>I am positive that the application delegate is set to the file with the  
>app: fileOperationCompleted method.

>I wrote a simple test program and can't get it to work. 

>Any help would be appreciated.

>Phil Beiler
>FannieMae, Washington DC
-- 
Kam Trivedi
kam@nPOINT.COM
Newsgroups: comp.sys.next.programmer
From: jalegre@tsp.med.umn.edu (John Alegre)
Subject: Video on a NeXT?
Organization: University of Minnesota
Date: Mon, 11 Jan 1993 20:38:11 GMT

I am looking for genersl opionion on the best way to
display Video Frames in a NeXT Window.

At this stage of the game we have the options of
receiving the frames via DMA from the SCSI port as
either:

1. 16 bit/pixel frames.  That would be 5 bits Red,
   5 Blue, and 5 Green with a garbage bit, set to
   0
   
2. 32 bit/pixel frame.  That would be 8 bits Red,
   8 Green, 8 Blue, with 8 garbage bits set to 0.

The frame would be just an array of pixel data in
one of the above formats, starting at the upper
left corner of a quarter or half CIF image and
continuing till the last pixel of that frame.
The next DMA would bee next frame, etc.

What is the general opinion of the best way to
get such frames on the screen in the context of
NeXT objects.

We are looking at both NXImage and NXLiveVideoView
objects as well as the possibility of writing
directly to screen buffer.  The scheme that has
worked well on the Macintosh is using copyBits on
off screen bit maps.

All comments welcome.

Thank you
---
John N. Alegre
Andante Systems
VideoLabs Inc.

#############################################################
# NeXTMail preferred.             |
# jdev@andante.mn.org             |
# alegrej@andante.mn.org          | If you plant ice,
# jalegre@lenti.med.umn.edu       |  you're gonna harvest wind!
# alegrej@libros.andante.mn.org   |    Hunter/Garcia      
#############################################################
From: louie@sayshell.umd.edu (Louis A. Mamakos)
Newsgroups: comp.sys.next.programmer
Subject: Re: Trouble with setitimer and getitimer.
Date: 11 Jan 1993 15:29:37 GMT
Organization: The University of Maryland, College Park
NNTP-Posting-Host: sayshell.umd.edu

In article <1993Jan8.215238.29927@news2.cis.umn.edu> jalegre@tsp.med.umn.edu (John Alegre) writes:
>I am trying to time a tight SCSI read loop on a 
>NeXT machine.
>
>I am having trouble with the UNIX functions
>setitimer and getitimer.

You don't want to use setitimer or getitimer, which are used to generate
alarm clock signals to your process.  What you really want to use is
gettimeofday() before and after.  Do 'man 2 gettimeofday' and also look
at <sys/timer.h>

Louis Mamakos

Newsgroups: comp.sys.next.programmer
From: dcheslow@impact.flint.umich.edu (David A. Cheslow)
Subject: Project Builder make all problem
Date: Mon, 11 Jan 93 11:12:04 EST
Organization: The University of Michigan, Ann Arbor

According to NeXT, you can put -t all in the arguments field of project  
builder to cause all files to be touched before the project is built (thus  
causing all classes to be recompiled).  When I do this, a file called  
"all" is created, but make does not recompile any of my classes. can  
someone explain what I am doing wrong?  Please respond to
dcheslow@impact.flint.umich.edu


--
=================================================================
*NOT* an official document of the University of Michigan - Flint
=================================================================
            David A. Cheslow
			          
E-Mail    : dcheslow@impact.flint.umich.edu
Newsgroups: comp.sys.next.programmer
Subject: Re: TEXT.H TextFunc how does it work???
From: glocker@futon.SFSU.EDU (Andreas R. Glocker)
Date: 5 Jan 93 09:07:35 PST
Distribution: usa
Organization: San Francisco State University
Keywords: text.h text, textfunc, NXTextFunc

That is how do I fill the NXLayInfo structure with meaningful 
data. Does any one no of an example doing this via the scan function??

Andreas
glocker@futon.sfsu.edu
x:>)
.

Newsgroups: comp.sys.next.programmer