HDTenEightyP/NetNews huggingface dataset:
From: dylan@midiline.la.ca.us (Comrade D)
Newsgroups: comp.sys.next.programmer
Subject: Problems with built-in LZW image compression code
Date: Thu, 23 Jul 92 20:00:23 PDT
Organization: MIDILine BBS - Altadena, CA - (818) 797-3285


Help!  It seems LZW image compression under 2.1 is faulty.  I have
encountered several images that won't reopen when saved using LZW,
like so:

    [bitmap writeTIFF:s usingCompression:NX_TIFF_COMPRESSION_LZW
        andFactor:10.0];

I get messages like so:

    TIFF Error: LZWDecode: Not enough data for scanline 259 (decode 1249 
bytes).

Has anyone else encountered this, and if so, please tell me there's a
patch for this under 2.1.


Please e-mail me at dylan@angst.com,
thanks in advance.

        --Dylan

P.S.  Has anyone else noticed JPEG under 2.1 has problems saving
images with large regions of pure red in them?  It changes it to green.



-------------------------------------------------------------------
Dylan Kohler
dylan@angst.com     (NeXTmail welcome)

Newsgroups: comp.sys.next.programmer
From: thomsen@spf.trw.com (Mark Thomsen)
Subject: Re: Objective-C with gcc on a sun?
Organization: TRW Inc., Redondo Beach, CA
Date: Thu, 30 Jul 92 17:34:32 GMT

Klaus Hofrichter writes
> Dear objective-c friends,
> 
> I have gcc 2.2.2 installed on NeXT and Sun machines. Is any experience out  
> there with compiling Objective-C code on Sun-machines using gcc? I am  
> missing the basic class Object in the distribution.
> Any suggestions how to create Object.h compatible to NeXT and the basic  
> runtime-library?

This is one of the hot issues in NeXT third party developer land.

There is a concerted effort to describe the advantages to NeXT and to
product developers about supporting (in some fashion that works) the
availability of the run-time stuff and development tools NeXT has developed
on other platforms. By development tools I don't mean AppKit and
Interface Builder (someday, maybe) but the necessary linking and format
stuff.

Please, if you have something to add beyond porting of apps, expanded
market, and such then email your most cogent arguement or post it. It will
get into the best channels for trying to make this happen.

Mark R. Thomsen
Newsgroups: comp.sys.next.programmer
From: pclark@is.com (Pete Clark)
Subject: Re: Will Sybase run on NeXTstep 3.0?
Keywords: sybase, dbkit, 3.0
Reply-To: pclark@is.com (Pete Clark)
Organization: Boss Logic
Date: Tue, 21 Jul 1992 03:05:59 GMT

In article <1992Jul19.034110.13072@monu6.cc.monash.edu.au>  
ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson) writes:
> 
> >I have heard that the current Sybase SQL Server will not run under  
NeXTstep  
> >3.0, and Sybase is not going to support the SQL Server anymore.  Has  
anyone  
> >else heard this?  Is it true?
> >Anonymous from Eugenics Review, July 1929, 86/2 [NeXT Quotations]
> 
> I have heard this also, but I am waiting for true confirmation on the  
matter.  Sure makes the DB-Kit look pretty useless if it is true though.

	I can't speak for 3.0, but the sybase server SQL Server/4.0.1L,  
which was shipped as part of the Sybase/Allegro/Mathematica update bundle,  
works fine with DB-Kit under 3.0PR2. 

	Pete C
-- 
*********************************************************************
Pete Clark -	 Software Engineer          | You know that way that  
Integrity Solutions, Inc.                    | you always are?
pclark@is.com    NeXTMail preferred           | Don't be that way.
Newsgroups: comp.sys.next.programmer
From: jjfeiler@relief.com (John Jay Feiler)
Subject: Updating a browser with multiple selected cells
Reply-To: jjfeiler@relief.com
Organization: relief consulting
Date: Tue, 28 Jul 1992 08:03:49 GMT

I've got a browser that I need to update programmatically.  Ordinarily I  
would use - selectCellAt:: (Matrix), but I need to select multiple cells in  
the matrix.  I'm currently using [cell setState:1], followed by [matrix  
highlightCell::lit:YES], but it doesn't seem to be working correctly.  (Of  
course, the bug may be somewhere else entirely)  Does anyone have any example  
code where they did such a thing?

	Thanks

		John
From: sam_s@NeXT.com (Sam Streeper)
Newsgroups: comp.sys.next.programmer
Subject: Re: shared memory & semaphores
Date: 22 Jul 92 00:15:22 GMT
Reply-To: sam_s@NeXT.com

chris@quay.ie (Christopher Davey) writes:
> 2 Questions:
> 1. Can anyone recommend a good book on the subjects of either or both of
>     * Shared Memory
>     * Semaphores
>    for programming on a NeXT?
> 2. In the meantime, can anyone tell me what the calls are, because I can't 
>    seem to track them down with "man" and "apropos".

I don't think there's a supported way to do shared memory on the NeXT.
(It's possible, but undocumented and subject to change.  At any rate,
Mach is a _leetle bit_ different from some other OS's with respect to
shared memory)  Someone will probably tell me I'm wrong.

Mutex's can be used as semaphores among threads within a process.  They
busy-wait, so they're typically used to construct more elaborate locks that  
block (see mutex, condition_wait, etc in the manual)

It almost (8^) sounds like you're trying to use shared memory and semaphores to  
construct a message passing scheme (if I might read into your question).  If  
so, I suggest you reconsider your implementation to use Mach messages.  Mach is  
really good at this sort of thing.  You might use MiG to generate your rpc's,  
or you can construct messages by hand, though that's a bit tedious.

The Speaker/Listener classes make messages between applications pretty easy.   
If you wait for NeXTSTEP 3.0, you'll get Distributed Objects which provides a  
very general and dynamic way to send Objective C messages between objects in  
different applications (in fact it's easier to send a message to a remote  
object than to find out whether the object is local or remote!)

I hope I've been more helpful than presumptuous, but I doubt it...  8^O

-sam

--
Opinions 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: goldly@u.washington.edu (Lloyd P. Goldwasser)
Subject: Why doesn't initFrame see Forms, make assignments?
Organization: University of Washington
Date: Tue, 21 Jul 1992 23:46:01 GMT

Why doesn't    - initFrame   see outlets that the rest of its object sees, such  
as Forms?

E.g.,

  x = [aForm floatValueAt:0];

does not give an error message, but, within initFrame, it does not assign x  
either.  The same statement in other methods of the same object do assign x  
properly.

Any insights?

Thanks in advance,

Lloyd Goldwasser
goldly@u.washington.edu
From: marcel@opal.cs.tu-berlin.de (Marcel Weiher)
Newsgroups: comp.sys.next.programmer
Subject: Re: AFS volunteers to keep FAQ, provide free email support
Date: 28 Jul 92 17:19:35 GMT
Distribution: fb20
Organization: Techn. University of Berlin, Germany

greg@afs.com (Gregory H. Anderson) writes:

>With the new NeXT support policies, an earlier poster suggested that  
>c.s.n.programmer create an FAQ and prepare for a barrage of questions  
>starting in August. Anderson Financial Systems accepts the challenge with  
>two offers you can't refuse:
>
>1) We are volunteering to maintain the FAQ for c.s.n.programmer.
>
>2) We will provide FREE application development advice by email (only) to  
>all interested NeXT developers, to the extent of our abilities (see below  
>for details), RTFMs notwithstanding. 8^)

[some details of amazing offer deleted]

>coming up to speed on DBKit and distributed objects. We are not so strong  
>in PostScript drawing, although we have done a fair amount. We can offer  
    ^^^^^^^^^^
I think I could help out with PostScript, WindowServer and client
library stuff, having been involved with significant deviousness
in that area.  Not too much drawing, however.

>almost no advice on Sound Kit, Indexing Kit, Phone Kit, and the 3DKIt for  
>now. I hope others will help build the FAQ sections and volunteer their  
>services in these areas.
>
>That's the offer. Could I have a general show of hands? And if favorable,  
>could you include suggestions for FAQ categories and organization? Digital  
>Librarian-compatible, perhaps?

Show of hands?  Like, toadally ossum, dudes!

Marcel (NeRD, but what for?)

NeXTMail preferred at this address:  marcel@spock.in-berlin.de
From: wjs@blorf.cpac.washington.edu (William Shipley)
Newsgroups: comp.sys.next.programmer
Subject: Re: Linking libraries in NS3.0
Date: 22 Jul 92 21:20:10 GMT
Article-I.D.: u.1992Jul22.212010.2044
Organization: University of Washington

Lans H Carstensen writes:
> Has anyone else tried to recompile their apps that use local libraries  
> under NS3.0?  I've been trying, and so far it looks like the linker is  
> refusing to look at /usr/local/bin.  Also, everything is coming up gray  
> under libraries in ProjectBuilder.  Is there something I'm missing, or is  
> this just an incredible oversight by NeXT (most likely the former)?

The linker looks in /usr/local/lib by default.  /usr/local/bin should be used  
for non-NeXTStep executables.

Libraries are always gray in PB, to indicate that you can't double-click on  
them and edit them.

-William Shipley
The Omni Group
Newsgroups: comp.sys.next.programmer
From: mmelling@Trirex.COM
Subject: rtfd in 3.0
Organization: Trirex Systems Inc.
Date: Tue, 21 Jul 1992 16:46:56 GMT

I noticed that applications can be dragged into Edit in 3.0.  Is this now
a supported feature of rtfd in the text object, or just an added feature
in Edit and Mail?  I haven't seen it documented anywhere.

-Mike
Newsgroups: comp.sys.next.programmer
From: goldly@u.washington.edu (Lloyd P. Goldwasser)
Subject: Accessing the values of variables in other objects?
Organization: University of Washington
Date: Tue, 21 Jul 1992 23:44:21 GMT

Here's a simple Objective-C question with, I suspect, a simple yes-or-no  
answer.

Is it possible to access directly the values of variables in other objects?

  e.g., [anotherObject whatIsTheValueOf: this_variable];
  and   [anotherObject whatIsTheValueOf: that_variable];

It would be convenient not to have to dedicate a whole method to transferring  
the value of this_variable only; i.e., without putting

   - tellTheValueOfThisVariable:(float *)dummy_variable
   {
     *dummy_variable = this_variable;
   }

into the implementation of anotherObject.

Simply including the header file of the other object doesn't seem to do the  
trick.


Thanks in advance,

Lloyd Goldwasser
goldly@u.washington.edu
Newsgroups: comp.sys.next.programmer
From: gregf@shaman.sps.mot.com (Greg Ferguson)
Newsgroups: comp.sys.next.programmer
Subject: Lint for Next? (SUMMARY)
Date: 24 Jul 92 03:25:23 GMT
Reply-To: gregf@shaman.sps.mot.com
Organization: SPS

Well, it appears that a true lint doesn't exist. Here's the notes that've
come in today. It's unanimous for "cc -Wall file.c", for better or worse.

Maybe release 3.0...

Thanks for the responses,

Greg Ferguson
rtmd30@email.sps.mot.com
gregf@shaman.sps.mot.com

-------[attachments follow]-----------

From uunet!CS.YALE.EDU!rochberg-david Thu Jul 23 11:46:31 1992

cc with the -Wall option is a fairly effective lint replacement.

Apologies if you've heard this already and are looking for the real
thing.

					-david
-------------------------------------------------------
From: Brian Glaeske <uunet!cs.uwp.edu!glaeske>

Compile your programs with the -Wall option.  GNU C does it's own checking.

Brian Glaeske
-- 
 -  /|                        glaeske@cs.uwp.edu  		[Internet]
  o.O`   --Ooop ACK!!         ..!uunet!plains!gehenna!brian 	[NeXT UUCP]
=(___)=
   U    "Bill the Cat for Prez in '92"
-------------------------------------------------------

From uunet!PSUVM.PSU.EDU!MKK2 Thu Jul 23 13:45:44 1992

Ah!  The monthly "Where's lint?" question.

I don't want to get into the argument---I am not expert in these matters.
However, the usual answer is (a) use the -Wall option on the gnu C
compiler, it does most of what lint does, and (b) if you are porting software
to another platform (which is what lint helps with above and beyone -Wall)
then use the lint on the other platform.

cheers
-------------------------------------------------------

From: N Tomczak-Jaegermann <uunet!vega.math.ualberta.ca!ntomczak>

Try first -Wall flat to your compiler and study docs for other
-W... flags which are not covered by -Wall.   This has both
advantages and disadvantages over lint, but this is all what
you are going to get, I am afraid.  At least as far as I know.

   Michal Jaegermann
   ntomczak@vega.math.ualberta.ca
From: mbutler@sdcc13.ucsd.edu (M. COOPER / B. McQUAID)
Newsgroups: comp.sys.next.programmer
Subject: NXBrowser Class Help!
Date: 23 Jul 92 19:38:58 GMT

I am very new to both oop and NeXTstep and am having problems
understanding how to implement the NXBrowser class. All I want to 
do is fill a browser I put in a window from IB with a few rows. I
don't need any columns or anything.  The docs on the class are
cryptic (for me anyway).  What exactly is the delegate for? Do I
create a matrix xl class and fill it with NXBrowserCells manually
and then link them to the NXBrowser somehow?  If someone would
please e-mail me some examp[le code I would be eternally grateful.

thanks in advace!

-Brad


-- 
/-----------------This message brought to you by: ------------------\
| BRAD McQUAID: Programmer.     |  MILO D. COOPER: Graphics artist. |
|  Flynn Rainbow Nurseries      |       Park Place Productions      |
\-------------------------------------------------------------------/
Newsgroups: comp.sys.next.programmer
From: mmelling @Trirex.com(Michael Mellinger)
Subject: dragFile method and ImageText
Organization: Trirex Systems Inc.
Date: Sat, 25 Jul 1992 00:13:10 GMT

I need to be able to drag icons out of a Scrollview as well as drag icons  
into into them, like Edit permits in NS 3.0.  Fortunately, each scrollview  
needs to only accept icons or allow them to be dragged out of the view,  
much like in the Mail.app scrollviews (applications can be dragged out of  
mailboxes, and attachments can only be dragged into new mail). In short,  
my application, needs to both take and give tiff images to the WorkSpace.

Currently, I am modifying ImageText to be able to do this.  I have created  
two documents, one is capable of either receiving an icon while the other  
allows it's icons images to be dragged out.  However, I am not able to  
drag the icon out of my one window.  The icon almost immediatley slides  
back, and the dragFile methods returns with a non-nil value.  If I drag  
the icon fast enough, I can get the image to appear in the other document.   
The documentation leaves me with the impression that I should just be able  
to call dragFile with the icon's pathname, etc. and the rest is "magic".   
Unfortunately, this doesn't seem to be the case.

Has anyone implemented this functionality under NS 2.0?  Any help or  
caveats would be appreciated.

-Mike

Btw, NS 3.0 is not an option.  In my timeframe, it is vapor.
Newsgroups: comp.sys.next.programmer
From: tjb@strangeways.unh.edu (Thomas J. Baker)
Subject: Indentifying menu Items from a target object
Reply-To: tjb@strangeways.unh.edu (Thomas J. Baker)
Organization: Baker Consulting  -  Dover, NH
Date: Fri, 31 Jul 1992 17:06:12 GMT


I'm building a submenu on the fly that will contain the names of the  
current uucp-connected systems:  Here is the code:


systemMenu = [[Menu alloc] init];	
subCell = [mainMenu findCellWithTag:28];
[mainMenu setSubmenu:systemMenu forItem:subCell];
	
pp = popen("/usr/bin/uuname","r");
	
while(fgets(instr,sizeof(instr),pp) != NULL) {
	instr[strlen(instr) - 1] = '\0';
	strcat(instr,"...");
	newCell = [systemMenu addItem:instr action:@selector(newMonitor:)
		keyEquivalent:0];
	[newCell setTarget:self];
}
	
pclose(pp);



The newMonitor is defined as - newMonitor:sender.  The menu builds  
beautifully but when testing and choosing one of my new menu items,  
instead of getting the id of the menuCell in newMonitor, I get the id of  
the Matrix of menuCells.  

How can I set this up so that I can identify which cell sent the message?   
Is this the best way to approach the problem?

Thanks,

tjb
--
+-------------------------------------------------------------------+
| Thomas Baker        Director of the New Hampshire NeXT User Group | 
| P.O. Box 213           Internet/NeXTmail: tjb@strangeways.unh.edu |
| Durham, NH 03824                   Voice: (603) 743-4987          |
+-------------------------------------------------------------------+
Newsgroups: comp.sys.next.programmer
From: bizarre@clients-r-us.tamu.edu (Tom Swanner III)
Subject: Source Code for Preview
Keywords: errors source preview
Organization: Texas A&M University, College Station
Date: Tue, 28 Jul 1992 15:44:03 GMT

Has NeXT ever published the source code for Preview.  I am interested in the  
way they do their error trapping.

Thanks!

Tom Swanner III
bizarre@clients-r-us.tamu.edu
From: woo@ornl.gov (John W. Wooten)
Newsgroups: comp.sys.next.programmer
Subject: tin on NeXT
Date: 30 Jul 92 17:47:01 GMT
Organization: Oak Ridge National Laboratory

I'm trying to install tin on my NeXT to read newsgroups from home via  
dial-in vt100 environment.  I've installed it on a Sun with no  
problems, but the installation on the NeXT usually does a core-dump  
when the second news group is selected for reading.

I can't locate a newsgroup for nntp, but the problem is the NeXT  
implementation.  It is a nice product for Sun's and would be really  
useful on the NeXT for dial-in.

Any pointers to the proper group or has someone else installed it  
sucessfully?  I have version 1.0 of tin.  

--
-----------------
J. W. Wooten
Newsgroups: comp.sys.next.programmer
From: zeno@hardy.u.washington.edu (Sean T. Lamont)
Subject: response of view keydown messages
Organization: Abstract Software
Date: Tue, 21 Jul 1992 23:18:19 GMT


I'm running a  high-priority timed entry which updates a view.  I've
also got a keydown handler within the view.  The odd thing I found is that
there is a significant delay between the time I press the key and the time it
is actually registered by the view.

Playing with this some more, I found that if the timed entry specifically
checks the event queue with NXGetOrPeekEvent(), that it works in a more timely
manner. It seems the view doesn't know about key events as often as the
event queue produces them.

Is this normal behavior?
-- 
Sean T. Lamont, Abstract Software        |   "Don't oppress me, It's
zeno@u.washington.edu                    |    'computer of color!' "
Next Mail............................... |  yang.cpac.washington.edu!zebu!zeno 
----------------"My employers opinions are my own, not yours."-----------------
Newsgroups: comp.sys.next.programmer
From: eps@futon.SFSU.EDU (Eric P. Scott)
Subject: Re: Remote Line Select & "currentactiveapp"
Reply-To: eps@cs.sfsu.edu
Organization: San Francisco State University
Date: Wed, 22 Jul 1992 06:58:56 GMT

This isn't the answer you're looking for, but you might want to
try pointing a Speaker at the victim app and applying
	performRemoteMethod:"unhide"

					-=EPS=-
Newsgroups: comp.sys.next.programmer
From: doberman!mike (Mike Panzitta)
Subject: Re: AFS volunteers to keep FAQ, provide free email support
Reply-To: doberman!mike@esunix.sim.es.com
Organization: Doberman Systems
Date: Wed, 29 Jul 92 05:23:22 GMT

In article <1992Jul28.044229.205@afs.com> greg@afs.com (Gregory H.  
Anderson) writes:
> With the new NeXT support policies, an earlier poster suggested that  
> c.s.n.programmer create an FAQ and prepare for a barrage of questions  
> starting in August. Anderson Financial Systems accepts the challenge  
with  
> two offers you can't refuse:
> 
> 1) We are volunteering to maintain the FAQ for c.s.n.programmer.
> 
> 2) We will provide FREE application development advice by email (only)  
to  
> all interested NeXT developers, to the extent of our abilities (see  
below  
> for details), RTFMs notwithstanding. 8^)
[...detailed deleted...]
> --
> Gregory H. Anderson          | "We're very tolerant around here,
> Benevolent Dictator-for-Life |  being only amateurs ourselves."
> Anderson Financial Systems   | - Tortoise (Godel, Escher, Bach)
> greg@afs.com  (Nextmail OK)  | 

I think this is quite a nice gesture.  I've been very pleased with the
overall responsiveness of the net-at-large, but it would be even better
to have a group volunteer this type of additional support.

(Did you notice my hand raised, by the way?  :-)

-Mike

--
Mike Panzitta                                                           Member
Doberman Systems                                   Salt Lake NeXT User's Group
doberman!mike@uunet.uu.net (NeXTMail)                                  (SLNUG)
Newsgroups: comp.sys.next.programmer
From: marcel@opal.cs.tu-berlin.de (Marcel Weiher)
Subject: Re: <Help> preferred image data representation (Planer .vs. interleaved)
Organization: Techn. University of Berlin, Germany
Distribution: fb20
Date: Wed, 22 Jul 1992 08:46:20 GMT

aozer@next.com (Ali Ozer) writes:

>In article <2A64BFDE.2220@deneva.sdd.trw.com> kieffer@spf.trw.com (Robert Kieffer) writes:
>>I'm looking for confirmation about NeXT's preferred data arrangement for  
>>RGB image data (planar .vs. interleaved)... i.e. Which one does it convert  
>>it into for display?
>>Judging from the way in which most tiff's are generated/saved, especially  
>>from applications such as Grab and Icon, the answer seems to be  
>>interleaved... is this correct?
>
>Yes, it's correct. For monochrome images with alpha the preferred data 
>arrangement is planar.
>
>Ali, Ali_Ozer@NeXT.com

I can't answer with the same authority, but for RGB images the answer
is packed, er interleaved.

Marcel
Newsgroups: comp.sys.next.programmer
From: roder@mayo.edu (Mark N. Roder)
Subject: Working with SYBASE bits with DBKit
Keywords: 3.0 SYABASE DBKit
Reply-To: roder@mayo.edu(Mark N. Roder)
Organization: Mayo Foundation, Rochester MN. Campus
Date: Wed, 29 Jul 92 16:56:53 GMT



	Has anybody worked with bits under SYBASE using DBKit(3.0 PR2)?
I am having some problems.  The table was created using:
CREATE TABLE dbo.PERSON
	([.......]
	death_ind bit not null,
	[.....])

	How do I access this?  When setting up the model, you don't get a  
bit choice, only int, string,float,etc.  The model comes up with it as a  
Int.  When I try doing a setValue:forProperty:at method, It returns a  
0(error). 

	
	Any help would be appreciated.  E-mail if you need more details.
--
Mark Roder
NeXT Consultant, Mayo Foundation
NeXT Mail: 	roder@mayo.edu  
Office Vision:	m.roder
phone:		284-5306
Newsgroups: comp.sys.next.programmer
From: qureshi@unixhub.slac.stanford.edu ( "For deposit only")
Subject: Re: Problems implementing services
Reply-To: cooldude@elaine43.stanford.edu
Organization: DSO, Stanford University
Date: Wed, 29 Jul 92 18:13:14 GMT

In article <1992Jul29.042157.18366@morrow.stanford.edu> hinds@cmgm.Stanford  
(Alexander Scott Hinds) writes:
> I have a program in which I'd like to implement services.  That is, I'd  
> like it available as a service to other programs.  As per the Appkit  
> documentation in the release notes (2.0) I created a file that looks like  
> this: (called services.txt)
> 
> 	2.  Why doesn't my program show up in the Services menu?  I tried
> 	rebooting with the program in LocalApps, and it doesn't show up in
> 	the workspace like the services for CopyPath do.
> 
> --X
You have to add a Services Item to your menu before your application can  
provide services to other applications.  Why? I'm not sure.  Maybe adding the  
Services item forces the linker to bring in other code or maybe the services  
menu communicates with the WorkSpaceManager.  All I know is that it works.  To  
add a Services item in IB, simply drag the Services item from the menu palette  
to your main menu.

Imran