HDTenEightyP/NetNews huggingface dataset:
From: finton@barney.cs.wisc.edu (David J. Finton)
Newsgroups: comp.sys.next.programmer
Subject: Re: How do I tell a text Form to select the next text cell?
Date: 26 Jan 93 16:00:08 GMT
Distribution: usa
Organization: University of Wisconsin, Madison -- Computer Sciences Dept.


In article <C1BEJI.A3M@iat.holonet.net> cmumford@iat.holonet.net 
(Chris Mumford) writes:
>Can you link the fields so that when the user hits the tab key they
>automatically get selected?

That's what I've done.  But when the user hits return, I have a method
process the text, and I want it to then select the next field, just
as if the user had pressed the tab key.

I got suggestions that I should use something like
           [[sender nextText] selectText:self]

This doesn't work;  I get a warning that says the compiler can't 
find the method and that "return type for 'nextText' defaults to id."
or "structure has no member named nextText" if I try to access that
variable directly by sender->nextText.

Essentially, I need to access a variable internal to the object.  That's
not allowed, but I would expect there to be a method to select the
field pointed to by that variable so I don't have to access it.

Help?

David Finton
finton@cs.wisc.edu
Newsgroups: comp.sys.next.programmer
From: iwelch@agsm.ucla.edu (Ivo Welch)
Subject: Re: RGB... How to change all pixels
Organization: UCLA, Anderson Graduate School Of Management
Date: 28 Jan 93 10:13:36 PST


I'd  like  to add a value of  10 to all R values  of a TIFF file.  Or x to all
[RGB] values. And a second utility to map all  x values into a  given y value,
only  for one color or  for all three colors.

Is there a  utility  that does this?

/ivo welch
Organization: Sponsored account, Mathematics, Carnegie Mellon, Pittsburgh, PA
Newsgroups: comp.sys.next.programmer
Date: Fri, 22 Jan 1993 20:34:54 -0500 
From: David Apfelbaum <da0g+@andrew.cmu.edu>
Subject: Re: Memory Allocation Error

Excerpts from netnews.comp.sys.next.programmer: 21-Jan-93 Re: Memory
Allocation Error by Erich S. Boleyn@alamo.mt 
>   I have seen this problem many times.  It has always (so far at least)
>been caused by attempting to call 'free' on a statically allocated string.
>.....
>   Basically, your answer is to just bite the bullet and fix the bad
>code that technically shouldn't have worked anyway, even though SunOS
>and a few others are permissive.


????

If this truly is the problem, there's a much easier, though far less
"correct" solution:

(from "man cc")
     -fwritable-strings
          Store string constants in the writable data segment and
          don't make them unique.  This is for compatibility with
          old programs that assume they can write into string
          constants.  Writing into string constants is a very bad
          idea; "constants" should be constant.


Remember, NeXT 'cc' is/was based around GNU's gcc.

        -David.


Newsgroups: comp.sys.next.programmer
From: statman@stat.ufl.edu (charles d. kincaid)
Subject: DSP questions
Reply-To: statman@stat.ufl.edu
Date: Wed, 27 Jan 93 22:10:53 GMT

Hello,
	I am trying to do a convolution between a data array and a filter.
I am looking into using the DSP for this (hey, it's there! why not!).
However, I am having some problems getting into the right mindset.  If
some very kind person can help I would appreciate it very much.  This is
a small part of my work for my dissertation and it's bogging me down.

	First, the DL documentation says that when two vectors are multiplied
the range of the data must be between -1 and 1.  Does it matter how this
is done?  Can I just subtract the minimum and then divide by the range to
get into -1 to 1?  Then after the fft do I just multiply and add to get
the right answer?
	I am using the fft.c code in the DSP folder of the Examples.  It
does an FFT, but not an inverse FFT.  Can the inverse FFT be calculated
using DSPAPfftr2a? 
	As you can see, I am new to Fourier transforms.  That may be
part of my problem.  I originally intended to use the Numerical Recipes
in C book, but their method isn't working properly.  Any help is
greatly appreciated.  

Sincerely,

charles d. kincaid
statman@stat.ufl.edu
------------------------------------------------------------------------------
Dept. of Statistics  \_    \_   \_\_\_\_\_   'Damn fine coffee...and hot, too!'
From: grant@Manticore.COM (Grant J. Munsey)
Newsgroups: comp.sys.next.programmer
Subject: Selecting multiple items in an NXBrowser
Date: 26 Jan 93 04:06:46 GMT
Reply-To: grant@Manticore.COM

I want to select multiple non-contiguous rows in a column of an NXBrowser.
I have set it to allow multiple leaf selection. When I call selectCellAt::
for the Matrix in the NXBrowser it will only selects one at a time.
Anybody got a pointer for me? Thanks, 
----
Grant Munsey, Mainticore, Inc. (408)252-1135
grant@Manticore.COM,  uunet!ub-gate!gouche!grant   NeXTMail ok.
Newsgroups: comp.sys.next.programmer
From: nicolson@strauss.berkeley.edu (Ed Nicolson)
Subject: Re: NXBundles and external libraries
Reply-To: nicolson@robotics.berkeley.edu
Organization: University of California, at Berkeley
Date: Thu, 21 Jan 1993 18:41:10 GMT

In article <PFKEB.93Jan20214908@kaon.SLAC.Stanford.EDU>  
pfkeb@kaon.SLAC.Stanford.EDU (Paul F. Kunz) writes:
>    I would appreciate advice on how to best handle the following 
> situation...
> 
>    I have a large body of code with nibs which I've encapsulated in to
> a NXBundle.  The code makes calls to an external library package.  The
> purpose of the bundle is so that a number of other applications can
> load this bundle rather than compiling and linking their own copies of
> the source code.  These other applications also link against the same
> external library, but far fewer members of the library.
> 
I have a similar question.  When distributing a custom Palette I
need to distribute a library of the object code along with the
Palette, which I believe is a bundle.   The Palette contains my
custom subclass of IBPalette (MyIBPalette) along with other classes I have
created.  The palette (bundle) also contains nib and tiff files
that the other classes need.  To get those resources I use 

bundle = [NXBundle bundleForClass: [MyIBPalette class]];
[bundle getpath:buf forResource .....]

in the code for the other classes.

To create the library I took all the object code files from the 
   palette and used ar and ranlib to create a library which I link in 
   with the application using the custom Palette.  This gives the message:

/bin/ld: Undefined symbols:
objc_class_name_IBInspector
_IBObjectPboardType
objc_class_name_IBPalette

Questions:

a) Is there another library other than the standard -lMedia_s -lNeXT_s
   that could be linked to solve this problem (I could not find one.)

b) Should I not be using the class MyIBPalette to be the class 
   "holding" the bundle for all the custom palette resources since
    the application will not require the IBInspectors and IBPalette
    classes during execution.  It only needs them when running
    Interface Builder.

Ed Nicolson
nicolson@robotics.berkeley.edu
Newsgroups: comp.sys.next.programmer
From: drew@fnbc.com (Drew Davidson)
Subject: Re: Why can't I load a palette?
Reply-To: drew@fnbc.com
Organization: First National Bank Of Chicago, Chicago IL, USA
Date: Thu, 21 Jan 93 15:34:01 GMT

In article <1jkmq1INNb5g@mirror.digex.com> hacker@access.digex.com (Dark  
Hacker) writes:
> I'm building a palette patterned after the example palette in the
> NeXT Digital Librarian Concepts guide.  It builds properly but when
> I use "Load Palette" inside IB I get an Alert that says "Can't load
> the palette blah blah blah..."
> 
> So why can't I load this palette?  Is there some magic flag to set?
> Like I say, the build is fine but the palette load from IB fails.
> Anything I have to look for in particular?  I'm building this under
> NS 3.0 so maybe there's something I have to do that hasn't been
> covered in the guide.

More than likely you either (a) already have the palette loaded, or (b) you  
have a class used in both your new palette and a palette that is already  
loaded.  If you don't have anything other than the standard palettes loaded,  
then you might have a problem with your palette.table file in the ExportClasses  
list.  Make sure you have all your external (i.e. ones that IB will see like  
Inspectors) named here.

> - Hacker
> -- 
> Dark Hacker @ Black Silicon, Fortress Of Computation
> hacker@black-silicon.mclean.va.us
> 
> "Life itself is... COMPUTATION!"

--
+--------------------------------+-------------------------------------------+
|        Drew  Davidson          | "Never ask a programmer if he'll have     |
|         Software Guy           |  another cup of coffee because it's       |
| First National Bank of Chicago |  nobody's damn business how much he's     |
|     drew@fnbc.com  (NeXTmail)  |  already had!"       - me                 |
+--------------------------------+-------------------------------------------+
From: austin@cs.usask.ca (Alvin Austin)
Newsgroups: comp.sys.next.programmer
Subject: Sam Leffler TIFF library - Where is it?
Date: 27 Jan 1993 18:04:13 GMT
Organization: University of Saskatchewan
Distribution: world
NNTP-Posting-Host: after.usask.ca
Keywords: Sam Leffler TIFF Group4

Can anyone point me to the location of the Sam Leffler
TIFF library.  I recently received the following note
from a fellow at NeXT ...

> Our fax file format is TIFF (multi-page, Group 4
> encoded).  A lot of TIFF readers probably don't support
> all of the TIFF features that we use, so some conversion
> might be necessary.  The Sam Leffler TIFF library
> supports everything we use.  
..
> It's probably available somewhere using anonymous ftp.

If you know where this stuff is archived, please email me.

Thanks,

Alvin
---------
Alvin Austin
austin@cs.USask.Ca
University of Saskatchewan, Saskatoon, SK Canada
From: sam_s@NeXT.com (Sam Streeper)
Newsgroups: comp.sys.next.programmer
Subject: Those RGB color palettes
Date: 29 Jan 93 02:49:18 GMT
Reply-To: sam_s@NeXT.com

I seem to have lost those 4096 color eps files I NewsGrazer-posted here a few  
months back, and a few people have asked for them.  Could someone repost, make  
them available for ftp, or NeXT-mail them to me?

I think they were called
	rgbPalette.eps  and
	bgrPalette.eps

AtDhVaAnNkCsE
-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: kessler@roses.Stanford.EDU (Will Kessler)
Subject: Video on the NeXT?
Organization: DSO, Stanford University
Date: Sat, 23 Jan 93 00:03:08 GMT

Hello Nexters,

A firm that I consult for is preparing a project bid for a large
company that wants to monitor faults at its factories remotely using
color cameras and a computer network.  I would like to consider the
NeXT as the basic platform since I've been hacking in Unix for years,
but Quicktime on Macs/PC's seems the simplest solution (however,
networks of macs and PC's are a drag).

Does anybody have any suggestions on info. sources (companies, mags,
users groups, a book) for video input/output/compression on a network
of NeXT machines?  I realize this question may be too basic for this
group, feel free to flame me about it at the below address.

Thanks in advance,

Will Kessler
kessler@roses.stanford.edu
Rehabilition Research Division
Dept. of Veterans Affairs
3801 Miranda Avenue/153
Palo Alto, CA 93404-1200
(415) 493-5000 x4478 (w/v-mail) FAX (415) 493-4919

Seen on local vending machine:

  "Anti-theft device prevents obtaining free product."


-- 
Will Kessler
kessler@roses.stanford.edu
Rehabilition Research Division
Dept. of Veterans Affairs
3801 Miranda Avenue/153
Palo Alto, CA 93404-1200
(415) 493-5000 x4478 (w/v-mail) FAX (415) 493-4919

Seen on local vending machine:

Newsgroups: comp.sys.next.programmer
From: karl@ensuing.com (Karl Kraft)
Subject: Re: init methods with Project Builder
Reply-To: karl@ensuing.com (Karl Kraft)
Organization: Ensuing Technologies Inc.
Distribution: usa
Date: Fri, 22 Jan 1993 19:35:43 GMT

In article <1993Jan22.184146.2218@leland.Stanford.EDU>  
fud@leland.Stanford.EDU (Fred Lide Cheng) writes:
>Hi,
>
>I'm aa beginner to programming the NeXT and to OOP in general.  I'm trying
>to initialize a Matrix class object ( with a different cellClass) at
>the beginning of the program.  I was wondering how one would go about 
>doing this since the main file isn't supposed to be modified.

give the application a delegate and use appDidinit:

or

Make an object that does these modifications and uses awakeFromNib

or

modify the main file, but turn off "Generate Main File on Save" in PB's  
Attributes inspector for the project.


--
__________
Karl Kraft
karl@ensuing.com  (NeXT mail)

Newsgroups: comp.sys.next.programmer
From: hugh@ear.mit.edu (Hugh Secker-Walker)
Subject: Re: Compiling Wizards? Try this one on for size.
Organization: Massachusetts Institute of Technology
Date: Thu, 28 Jan 1993 04:15:40 GMT

In article <1993Jan24.030840.10637@galileo.cc.rochester.edu> jtod_ltd@uhura.cc.rochester.edu (John "Jeep" Todd) writes:

   I have a question regarding a program called TERM099n and it's compilation
   and running behaviour on a NeXT.  This program is actually several programs
   designed to enable a person without root access or "permission" to run
   several shells at once or even several Xwindows through ONE serial line all
   at once.  (Simulates ports on a single serial line - does automatic data
   compression so it's reasonably fast even over a modem)  

   [ stuff deleted ]

   This seems like an
   INCREDIBLY useful program, since it doesn't require all the hassle of SLIP
   and it runs without needing root permission right from the user's shell.  If
   some Unix/NeXT wizard finds this program useful, or just wants to give a
   non-wizard a hand, please try and re-compile this program which is found at
   archive site sunsite.unc.edu in /pub/Linux/Incoming among many places (try
   an archie on it for the most recent version).

Great!  I've asked about and even outlined designs for just such a
program for months now.  But, I couldn't justify the time to develop
it from scratch.  Michael O'Reilly, has done most of the work, (I'll
just have to get it running under NeXTstep ;-).  It has Makefile
options for NeXT, but doesn't appear to work yet.

BTW, the latest version can be found in the directory

  tartarus.uwa.edu.au:/pub/oreillym/term/

They're up to term102, with new versions appearing every few days, so
it may not be stable.  But that hasn't stopped me.

Hugh
--
--
Hugh Secker-Walker                    INTERNET:  hugh@ear-ache.mit.edu
MIT, Research Lab of Electronics      UUCP:      mit-eddie!mit-athena!hugh
From: erich@alamo.mth.pdx.edu (Erich S. Boleyn)
Newsgroups: comp.sys.next.programmer
Subject: Re: Memory Allocation Error
Date: 21 Jan 93 12:08:16 GMT
Article-I.D.: alamo.erich.727618096

bobb@agora.rain.com (Bob Beauchemin) writes:


>  I'm having a problem with the NeXT 2.1 compiler and wonder if anyone else
>has experienced it. Code that compiles OK and works on other platforms
>fails on the NeXT. The error messages (at program execution) are:

>  memory allocation error: attempt to free or realloc space not in heap
>  bad zone
>  IOT trap


   I have seen this problem many times.  It has always (so far at least)
been caused by attempting to call 'free' on a statically allocated string.

   Interestingly enough, running this on SunOS seems to work just fine,
i.e. it ignores such requests and goes on without an eyeblink.

   I've had to fix GNU readline, some berkeley daemons, helped a friend
with the really cool FTP daemon from wuarchive, etc.  and this is in
many cases pretty much the only problem.  Hint:  always look for it! ;-)

   Basically, your answer is to just bite the bullet and fix the bad
code that technically shouldn't have worked anyway, even though SunOS
and a few others are permissive.

   Good luck,
      Erich Boleyn

--
             "I haven't lost my mind; I know exactly where it is."
   / --  Erich Stefan Boleyn  -- \        --=> *Mad Genius wanna-be* <=--
  { Honorary Grad. Student (Math) }-->  Internet E-mail: <erich@cs.pdx.edu>
   \  Portland State University  /       WARNING: INTERESTED AND EXCITABLE
From: cc100aa@xray.gatech.edu (Ray Spalding)
Newsgroups: comp.sys.next.programmer
Subject: Re: How do I tell a text Form to select the next text cell?
Date: 26 Jan 93 17:01:55 GMT
Distribution: usa
Organization: Georgia Institute of Technology

In article <1993Jan26.160008.16406@cs.wisc.edu> finton@barney.cs.wisc.edu (David J. Finton) writes:
>In article <C1BEJI.A3M@iat.holonet.net> cmumford@iat.holonet.net 
>(Chris Mumford) writes:
>>Can you link the fields so that when the user hits the tab key they
>>automatically get selected?
>I got suggestions that I should use something like
>           [[sender nextText] selectText:self]
>This doesn't work;  I get a warning that says the compiler can't 
>find the method and that "return type for 'nextText' defaults to id."

If the objects involved are just plain TextFields, all that is
required is to link up the nextText outlets in IB.  Provided you
#import <appkit/TextField.h>, the above code should work OK.

The situation is more involved if you have a Matrix of TextFieldCells,
or a Form (which is of course a subclass of Matrix).  Matrix's
(and, by inheritance, Forms) only look at "nextText" when you get
to the last Cell in the Matrix; tabbing from Cell to Cell within
a Matrix or Form is handled automatically.  Furthermore, for some
reason Matrix does not implement a "nextText" method.  But anyway,
see the documentation on the TextDidEnd:endChar: method of Matrix
for a description of how this works.
-- 
Ray Spalding, Office of Information Technology
Georgia Institute of Technology, Atlanta Georgia, 30332-0715
Internet: ray.spalding@oit.gatech.edu (NeXT Mail accepted)
Newsgroups: comp.sys.next.programmer
From: greg@afs.com (Gregory H. Anderson)
Subject: IB broken with custom Box classes?
Reply-To: greg@afs.com
Date: Thu, 21 Jan 1993 16:48:23 GMT

Has anyone else noticed braindead behavior for custom Box classes in IB  
3.0? We have an AfsBox class with some additional ivars to secure the  
contents. Of course, the Group operation doesn't work, so you have to  
alt-drag objects into it individually. So far so good. But once they're  
inside, IB refuses to recognize them as attachable (i.e., it won't draw  
rings around them while you're alt-dragging). Has anyone else noticed  
this, and has it been reported to NeXT?

--
Gregory H. Anderson          | "History, despite its wrenching pain, 
Commander-in-Chief           | Cannot be unlived, but if faced
Anderson Financial Systems   | With courage, need not be lived again." 
greg@afs.com  (Nextmail OK)  | -- Maya Angelou, "On the Pulse of Morning"
From: klui@corp.hp.com (Ken Lui)
Newsgroups: comp.sys.next.programmer
Subject: Re: reading CD data
Date: 25 Jan 1993 20:06:12 GMT
Organization: Hewlett-Packard Company
NNTP-Posting-Host: klui.corp.hp.com

In article <1993Jan23.204420.12525@drefla.mese.com> matt@drefla.mese.com (Matt Brandt) writes:
>In the new apple machines I believe that they hook the audio output from
>the CD player into the mic input on the motherboard. That is how they play
>the sound. I don't think you can access the digital sound data.
>
No, someone disconnected the microphone and was still able to
record an audio CD.  Here's an excerpt from Apple's data sheet
for the AppleCD 300:

	... It not only plays standard audio CDs, but
	can also transfer CD digital audio data via
	the SCSI bus to your Macintosh for further
	editing.

	FORMATS SUPPORTED
	o   CD digital audio data via SCSI

Sounds like direct reading of data from audio CDs to me.


Ken
-- 
Kenneth K.F. Lui, klui@corp.hp.com                  3000 Hanover Street MS20BJ
Corporate Administrative Information Systems        Palo Alto, CA  94304   USA
Core Application Technologies                1(415)857-3230 Fax 1(415)852-8026
Newsgroups: comp.sys.next.programmer
From: monty@intuitiveedge.com (Montgomery Zukowski)
Subject: ATC sounds, random access?
Reply-To: monty@intuitiveedge.com
Organization: The Ohio State University
Date: Fri, 22 Jan 1993 16:26:41 GMT

	I need to record, compress and playback huge sounds (>55M) with random  
access into the sounds.  I know that NeXT's ATC uses frames which represent  
ATC_FRAME_SIZE (256) samples each, but I don't know enough about ATC to know  
if I can uncompress frames individually or if each frame uses information from  
the previous frame.  

	Any pointers to articles about ATC would be greatly appreciated also.
	If I can't uncompress frames individually I'll need to break each  
sound into chunks which would then be compressed.  Even if I can uncompress  
frames individually I'll need to set up an index structure so I can get to any  
frame quickly without having to jump from frame to frame.  The format  
specifies that each frame says how large it is, giving a pointer to the next  
frame.  

	It would be easier to use ATC as it is, so I hope the answer is yes.

Thanks,

Monty
Newsgroups: comp.sys.next.programmer
From: bagchi@oosik.sprl.umich.edu (Ranjan Bagchi)
Subject: 3D Kit example -- FAQ?
Organization: University of Michigan EECS Dept., Ann Arbor, MI
Date: Sun, 24 Jan 1993 05:39:00 GMT


	Hi.  I'm just getting my feet wet with the 3D kit and despite the
NeXT-supplied docs, I'd appreciate a some real source code to
play with...  Can anyone mail me something small but suitable?  

--
Ranjan Bagchi			                    
bagchi@oosik.sprl.umich.edu
o o  oooo ooo o       o        oooooooo		   NeXTMail accepted here!
oo   oooo  o oo   ooo oo oo   oo       o o  oooo ooo o       o         
oooooooo
From: sam_s@NeXT.com (Sam Streeper)
Newsgroups: comp.sys.next.programmer
Subject: Re: RGB Values of "NeXT Help Blue"
Date: 27 Jan 93 02:48:46 GMT
Reply-To: sam_s@NeXT.com

tjb@strangeways.unh.edu (Thomas J. Baker) writes:
> Does anyone know the exact rgb values of the blue that NeXT uses in 
> their help panels (like for Mail)?  It has the quality of being blue 
> on color machines and pure light grey on monochome ones.

On a related topic, does anyone have a tiff or EPS file that contains
every color that is both 12-bit pure and maps to a pure 2 bit gray-
scale value?  This would make a useful color panel palette.

I posted a couple of EPS files here a while ago that generate every 12
bit pure color, so these could be used for ideas if no one has
undertaken this pursuit.

please post or email if you have such a beast.

-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: karl@ensuing.com (Karl Kraft)
Subject: Re: Printing Text efficiently
Reply-To: karl@ensuing.com (Karl Kraft)
Organization: Ensuing Technologies Inc.
Distribution: usa
Date: Thu, 21 Jan 1993 05:38:27 GMT

In comp.sys.next.programmer article <sfLSrsq00WA7FdN0pM@andrew.cmu.edu> you  
wrote:
>
>One more quick question for you all:
>
>    Is there any way to trivially print plain-text-information on a
>printer from inside an App?  Or do I need to stuff everything I wish to
>print into a text-object and send that object a print-message?
>


You could just use popen() to send it to lpr.


>    (It just seems like a lot of overhead...)
>

It's not a lot of overhead (maybe 20 lines (from creation to deletion)),  
and your user will get a Print and Page Layout Panel that will

* Allow them to select a printer
* Allow them to select a page size
* Allow them to save the postscript
* Fax the text
* Preview before they print to find out how many pages
* Select certain pages to print
* Possibly choose other fonts to print the document in
* Select margins

So do you want to use popen() and write a UI to do all that, or do you want  
to use the Text object, and get it for free?


--
__________
Karl Kraft
karl@ensuing.com  (NeXT mail)

Newsgroups: comp.sys.next.programmer