HDTenEightyP/NetNews huggingface dataset:
From: samurai@uriel.cs.mcgill.ca (Darcy Brockbank)
Subject: Stupid Answer. (Re: Stupid question:  What does ** mean?)
Organization: SOCS, McGill University, Montreal, Canada
Date: Fri, 24 Jul 1992 15:40:43 GMT

In article <1992Jul23.135419.7435@cs.mcgill.ca> samurai@uriel.cs.mcgill.ca  
(Darcy Brockbank) writes:
> In article <1992Jul22.225838.13892@vlsisj.uucp> smadsen@leland.Stanford.EDU  
> (Steve Madsen) writes:
> > Here's an easy one. . .I'm stumped by the double asterisk declaration, for  
> example:
> > 
> > (int **)
> > 
> > I've tried to locate it in Chapter 3, 6 and 7 of NextStep Concepts, as well  
> as two
> > different C manuals, so it's not a pure RTFM question (I hope). . .
> > 
> > Thanks!!
> > 
> > Steve Madsen 
> 
> It's called a pointer-pointer, or a double pointer. Look out for
> these guys as well: triple pointers!


> 
> So i[][] implies that i is a pointer-pointer to an int. A &i is a 

This is not correct!!!!! Sorry!!!

- db

--
-------
I always thought that NeXTStep was very good in its approach to color since
the tasteless are protected from their own stupidity. -- Jason Breckenridge
(I know Jason, Jason is a close personal friend of mine, and I am not Jason!)
Newsgroups: comp.sys.next.programmer
From: burchard@horizon.math.utah.edu (Paul Burchard)
Subject: Shouldn't there be a NXObjectPBoard pasteboard type?
Organization: University of Utah Computer Center
Date: Thu, 23 Jul 92 05:50:26 GMT

Wouldn't it be nifty to copy and paste objects between windows or even apps?   
This could easily be done using the Objective-C's built-in archiving  
capabilities.  To copy, just archive the object onto the Pasteboard.  To paste,  
unarchive it.  (Multiple objects can be placed into a List for transfer.)

However, to make this work between apps there would need to be a standardized  
Pasteboard type registered with NeXT and included in the appkit header files.   
Anyone know how I could register an NXObjectPBoard type with NeXT?

--
--------------------------------------------------------------------
Paul Burchard	<burchard@math.utah.edu>
``I'm still learning how to count backwards from infinity...''
--------------------------------------------------------------------
Newsgroups: comp.sys.next.programmer
From: brian@umbc4.umbc.edu (Brian Cuthie)
Subject: Re: NXBrowser problem.
Organization: University of Maryland Baltimore Campus
Date: Mon, 27 Jul 1992 02:18:52 GMT

In article <SCOTT.92Jul23004939@nic.gac.edu> scott@nic.gac.edu (Scott Hess) writes:
>I've a situation where I need the action method for an NXBrowser
>to modify the values in the browser.  Unfortunately, I've been
>having some problems.  [This is under NS2.1.]
>
>An obvious incantation to reload the browser would be to incant
>[browser loadColumnZero].  _But_, there's a problem here.  The
>action method will have been called from a Matrix in the browser
>- and loadColumnZero frees all of the columns and then recreates
>them!  So, when you return from the action method after doing a
>loadColumnZero, your program crashes (because the Matrix id was
>moved out from under the Matrix mouseDown: routine).
>
>OK, another option is to do [browser reloadColumn:0].  This _works_,
>but not all that well.  What happens is that I get the output:
>
>Assertion failed: You removed a View from the View hierarchy that
>had been lockFocus'ed
>
>which isn't quite what I wanted, either.  The solution that I've
>used is to schedule a delayed method invocation via
>perform:with:afterDelay:cancelPrevious:.  This works, but does have
>other drawbacks.  Anyone have a better idea?
>
>Thanks,
>--
>scott hess <shess@ssesco.com>  <Who's now in a programming Berserker-frenzy>
>12901 Upton Avenue South, #326  Burnsville, MN 55337 (612) 895-1208 Anytime!
><I want to become so famous that people buy tapes of me reading source code>

Try using perform:with:afterDelay:cancelPrevious: to send the message
to the browser.  If you use a delay of 1, it will simply place the message
on the application's event queue, thus allowing the current browser action
to finish properly.

-Brian


-- 
Brian Cuthie
Systemix Software, Inc.
brian@systemix.com
Newsgroups: comp.sys.next.programmer
From: nevin@dtint.dtint.com
Subject: Re: Example use of DBKIT?
Keywords: DBKIT 3.0 (PR2)
Reply-To: nevin@dtint.dtint.com
Organization: Digital Technology, International
Date: Thu, 23 Jul 92 16:32:06 GMT

Earlier I posted a request for sample code for using the DBKIT in 3.0,  
because I was stumped by something.  Now that I've had a good nights  
sleep, I have found that the thing that stumped me was really quite silly.   
So, ignore my earlier post!

--
NeXTmail preferred!
-- 
---
root	                               root@dtint.dtint.com
Digital Technology Int.                (801)226-2984	
500 W. 1200 South, Orem UT, 84057      FAX (801) 226-8438
Newsgroups: comp.sys.next.programmer
Subject: Re: Does SoundView class exist in 2.1?
From: scott@nic.gac.edu (Scott Hess)
Date: 23 Jul 92 14:07:27
Organization: Gustavus Adolphus College
In-reply-to: eps@futon.SFSU.EDU's message of Thu, 23 Jul 1992 05:48:52 GMTLines: 41

In article <1992Jul23.054852.11368@csus.edu>
	eps@futon.SFSU.EDU (Eric P. Scott) writes:
>In article <1992Jul22.212148.26961@aio.jsc.nasa.gov>
>	bill@epnxt.jsc.nasa.gov writes:
>>According to my docs, there is a SoundView class located at
>>View:Responder:Object.  I have ver 2.1 of the operating system
>>and do not find that class in IB.  Was it taken out?
<...>
>Note that IB won't have parsed the interface definition, so you
>won't be able to connect directly to the "reduction" or "sound"
>ids.
>
>If this disturbs you, there are two workarounds:
>
>	(1) Attempt Save As... to /usr/include/soundkit/UNTITLED
>	    [This SHOULD fail for lack of permissions!]
>	  -or-
>	(2) Create a symlink from /usr/include/soundkit/SoundView.h
>	    into your project directory (or home directory if you
>	    haven't created a project directory yet).
>
>	THEN Parse will work.  (If you used (2), you can remove the
>	symlink now.)

Or, drag the file from /usr/include/soundkit/SoundView.h and drop it
in the Classes suitcase or window (whichever is easiest).  Or, just
add the outlets manually in IB (just make certain the spelling is
correct).  Parsing and Unparsing in IB is simply a convenience
function that allows the user to easily update either IB or the .[hm]
file so that both have the same ideas about what exactly the class
looks like.  If you don't want to use that convenience - don't!  There
are many cases where IB doesn't do so well (Unparsing over top of
existant sources, or Parsing when you have instance variables like
Button *, or Parsing when you have Categories in the .h file), and
manually is the way to go ...

Later,
--
scott hess <shess@ssesco.com>  <Who's now in a programming Berserker-frenzy>
12901 Upton Avenue South, #326  Burnsville, MN 55337 (612) 895-1208 Anytime!
<I want to become so famous that people buy tapes of me reading source code>
From: Anil_-_Mandava@cup.portal.com
Newsgroups: comp.sys.next.programmer
Subject: Re: Problems implementing services and new problem
Date: Wed, 29 Jul 92 15:24:46 PDT
Organization: The Portal System (TM)
Distribution: usa
  <1992Jul29.181314.26490@leland.Stanford.EDU>
  <1992Jul29.205038.25257@magnus.acs.ohio-state.edu>

Use the shell command make_services to dynamically update your services menus.

Referring to the original problem, check the 'Send type' in services.txt file.
The type should be a valid pasteboard type.

Hope this helps,
Anil Mandava.

Internet: anil_mandava@cup.portal.com
Newsgroups: comp.sys.next.programmer
From: colin@agincourt.bsd.uchicago.edu (& Garrett)
Subject: Re: Non-copyable TextField
Organization: University of Chicago Computing Organizations
Date: Thu, 30 Jul 1992 14:57:39 GMT

In article <1992Jul29.162437.3218@agora.uucp> bobb@agora.rain.com (Bob  
Beauchemin) writes:
> 
>   I'm trying to make a subclass of TextField object that cannot be  
copied
> with the cut/copy keys or cut/copy menu entries. I made a subclass  
called
> XTextField and set it up with a "empty" copy method (ie a copy method  
that
> does nothing but printf("copy method invoked").
>   However, I can still copy the text and my custom copy method does not
> ever appear to get invoked during the COPY operation.
> 
>   I've read that all TextField objects share the same Text object for
> rendering text. Can I override the COPY method in this Text object  
somehow?
> Is this why my subclass of TextField with a custom COPY method will not
> work?
> 
>   Does anyone have/know of any examples of a TextField (or Text)  
subclass
> that cannot be copied?

Why not just set a regular TextField to be non-selectable?  Cut/copy/paste  
have to have a selection to work on.


Colin Garrett
colin@delphi.bsd.uchicago.edu
From: simsong (Simson L. Garfinkel)
Newsgroups: comp.sys.next.programmer
Subject: Re: rtfd in 3.0
Date: 25 Jul 92 12:17:50 GMT
Reply-To: simsong@next.cambridge.ma.us
Organization: Simson Garfinkel and Associates, Inc.

In article <1992Jul21.164656.24476@Trirex.COM> mmelling@Trirex.COM writes:
> 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

You could always drag applications into Mail.  Edit now allows you to drag in  
any kind of file.  Double-clicking on it causes an open-file message to be sent  
to workspace.
-- 

................................................................simson
From: aozer@next.com (Ali Ozer)
Newsgroups: comp.sys.next.programmer
Subject: Re: <Help> preferred image data representation (Planer .vs. interleaved)
Date: 21 Jul 92 20:47:40 GMT
Organization: Next Computer, Inc.

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
From: Mr..Eustress@f236.n104.z1.FIDONET.ORG (Mr. Eustress)
Newsgroups: comp.sys.next.programmer
Subject: CYBER-TYPING TO A REMOTE WINDOW
Date: 29 Jul 92 19:32:00 GMT
Organization: FidoNet node 1:104/236 - MacCircles, Genesee CO

--  
Mr. Eustress - via ParaNet node 1:104/422
UUCP: !scicom!paranet!User_Name
INTERNET: Mr..Eustress@f236.n104.z1.FIDONET.ORG
From: kho@hubble.fokus.gmd.de (Klaus Hofrichter)
Newsgroups: comp.sys.next.programmer
Subject: Objective-C with gcc on a sun?
Keywords: next sun gnu gcc objective-c portable
Date: 30 Jul 92 08:50:28 GMT
Organization: GMD-Fokus

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?
Thank you in advance!

- Klaus

*******************************************************************
GMD Fokus (German National Research Institute for Computer Science)
Klaus Hofrichter 
Hardenbergplatz 2
D-1000 Berlin 12
E-Mail X.400 	hofrichter@fokus.berlin.gmd.dbp.de   (NeXTmail ok)
E-Mail SMTP	kho@fokus.gmd.de 		     (NeXTmail ok)
Voice +49 30 254 99 211
Fax   +49 30 254 99 202
*******************************************************************
Newsgroups: comp.sys.next.programmer
From: jgg@proforma.com (J. G. Gregory)
Subject: Re: dynamic parsers?
Organization: Pro Forma
Date: Tue, 28 Jul 1992 17:41:03 GMT

In article <1992Jul28.122557.18900@infoserver.th-darmstadt.de> 
>Another thing is that I just went along and 'objected' (or, better, C++-ified)
>Bison and Flex such that you have a 'main class' that has all the code that
>is used for all parsers/scanners and several sub-classes that consists of
>the tables and the special actions. If you have interest in these, e-mail me,
>but be warned that this code is really not-yet-ready (working at the moment,
>but not too-well tested...)
>

Can you say whether Bison is now able to be used in commercial code?  When I  
looked at it, its OUTPUT was restricted by the GNU copyleft, although there was  
some words that the restriction might be lifted.

--J Gregory
From: aoml@enh.nist.gov
Newsgroups: comp.sys.next.programmer
Subject: Addendum to Color Wells
Date: 24 Jul 92 18:17:18 GMT
Organization: NIST

This is to follow up on my previous post about the color wells.

I sat down and created a bare bones view to do what I need.  It works great,
and is very simple.  I would like to have a matrix of such objects.  Is anyone
familiar with the best way to go about doing this?  It should be quite simple,
but I don't know how to go about doing it.  It would be nice if I could make
the matrix larger in the IB, the way Controls work, but if that is too
complicated, forget it!

Thanks

Kevin
Newsgroups: comp.sys.next.programmer
From: smadsen@leland.Stanford.EDU (Steve Madsen)
Subject: Stupid question:  What does ** mean?
Organization: VLSI Technology, Inc. San Jose, California
Date: Wed, 22 Jul 92 22:58:38 GMT

Here's an easy one. . .I'm stumped by the double asterisk declaration, for example:

(int **)

I've tried to locate it in Chapter 3, 6 and 7 of NextStep Concepts, as well as two
different C manuals, so it's not a pure RTFM question (I hope). . .

Thanks!!

Steve Madsen 

Newsgroups: comp.sys.next.programmer
From: pat@expovision
Newsgroups: comp.sys.next.programmer
Subject: Power sound
Date: 22 Jul 92 03:42:31 GMT
Article-I.D.: expovisi.1992Jul22.034231.310
Organization: Edition Electronique Expovision inc.

Bonjour,

I was wondering if there is a way to change the sound file played at  
power-up and if so how?

Tanks
Pat

NeXTMail Prefered
pat%expovision@cam.org 
-- 
_________*NeXTMail Prefered*_________
Patrique Lalonde
189 Le Grand Duc
Mont Shefford, Qc.
From: tom@ennex1.eng.utsa.edu (Tom Arnow)
Newsgroups: comp.sys.next.programmer
Subject: ScrollView in loadNib
Date: 27 Jul 92 19:06:28 GMT
Reply-To: tom@ennex1.eng.utsa.edu (Tom Arnow)
Organization: Univ of Texas at San Antonio

I have a fairly sample program that uses a ScrollView set up in IB.This  
worked OK until I tried to convert the program to multiple windows by using  
a loadNib. The window with the scrollview is in the Nib that is loaded. I  
am able to create new windows and put an image in them but the scrollers  
don't work.

Thanks,
Tom Arnow
From: ldp@pkyn.questor.wimsey.bc.ca (Lyle Parkyn)
Newsgroups: comp.sys.next.programmer
Subject: DigitialLibrarian can't find methods with multiple arguments
Date: Thu, 30 Jul 1992 18:28:06 GMT
Reply-To: ldp@pkyn.questor.wimsey.bc.ca (Lyle Parkyn)
Distribution: na
Organization: V-NUS (Vancouver NeXT Users Society)

This might be common knowledge but I just noticed that the librarian can't find  
methods that have multiple arguments. 

	E.g. getFrameRect:forContentRect:style:

Is this normal? If it is normal for 2.1 what about 3.0? 

The fact that I just discovered this after months of programming might  
indicated that it isn't a big problem but...!
-- 
=====
ldp@pkyn.questor.wimsey.bc.ca (Mail and/or NeXTMail )
Lyle Parkyn - Reveal Development Service
Newsgroups: comp.sys.next.programmer
From: greg@afs.com (Gregory H. Anderson)
Subject: Re: Formcell behaviour
Reply-To: greg@afs.com
Date: Tue, 28 Jul 1992 22:18:31 GMT

In article <1992Jul27.132231.19873@monu6.cc.monash.edu.au>  
ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson) writes:

> I have a form and one of the formCells connected to a validateField  
method. I have a number of buttons which are enabled only if the fields  
are valid.  When I type in the formcell (not pressing return) or click  
into another cell or even _OUTSIDE_ the form the action is not sent.  
WHY!!!!!.
> 
Because this object is braindead.  8^)

Seriously, only an actual <CR> forces the action method. This is a Bad  
Thing, because I have watched many users not bother to hit any field  
movement key after they finish typing a field. If the next thing they hit  
is the Save button, the last field never gets a chance to validate.

For what you want, the matrix which contains the FormCells must have a  
text delegate, and then you must use the delegate methods (textWillEnd:,  
textDidGetKeys:, etc.) to validate as they type. Even with this procedure,  
the delegate methods seems to jump off at different points depending on  
whether the keyboard (Tab, Shift-Tab, etc.) or the mouse is used to  
trigger the next field. The bottom line is, only textDidGetKeys: and  
textDidEnd: are reliable indicators of keystrokes and field movement under  
all circumstances.

--
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)  | 
Lines: 38
Date: Wed, 29 Jul 92 08:43:12 MDT
From: yackd@alaska.et.byu.edu (Don Yacktman)
Newsgroups: comp.sys.next.programmer
Distribution: world
Organization: Brigham Young University, Provo UT USA
Subject: Re: NeXTmille and swapping


In article <1992Jul29.124549.8044@ms.uky.edu>, soward@slow.inslab.uky.edu (John Soward) writes:
>Shawn Willden writes
>-> Hi all, 
>-> 
>-> 
>-> 	1)	MallocDebug was wrong and I was missing something that
>-> 		a little more work with the code could uncover.
>-> 	2)	Something was wrong with Mach's swapping algorithm.
>-> 	3)	I was REALLY missing some vital information and if it
>-> 		was in the on-line manuals I couldn't find it.
>
>Easy thing to do is use "ps" from terminal and *see* what processes seem to  
>have a large chunck of memory allocated to them...I haven't looked at the code  
>at all, but my guess would be that the WindowServer will be the culprit. And  
>that it arises from many Views/Windows/etc that are being allocated and perhaps  
>not freed/re-used.
>
>Good luck, 
>--
>    ________________________________________________________________________
>   /   'The midnight sun will burn you up" -The Cure, Piggy in the Mirror  /
>  /      soward@ms.uky.edu | soward@slow.inslab.uky.edu (NeXT Mail)       /
> /_______________________________________________________________________/

Yes, it _is_ the window server.  Run it with -NXShowAllWindows.  Every time
you drag a card, etc, an offscreen buffer for the card is created, and the
card is drawn in it, but the buffer is never freed.  Thus, the window server
grows and grows and grows. :(  I haven't had time to fix this problem myself,
but I know that that is the problem.  If anyone _does_ fix it, let me know
before you post it to sonata, because I _have_ made a colorized version, and
would like to include the color support in the fixed version.  If you wait
long enough, I'll fix it myself anyway. :)  (The colorized version required
new .tiffs and a change to the pswrap that draws the stoplights; simple
changes, really.)

Later,
-Don Yacktman
Newsgroups: comp.sys.next.programmer
From: abell@netcom.com (Steven T. Abell)
Subject: Multple views of a Text object
Date: Thu, 23 Jul 92 06:55:12 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Summary: Programmer trying to do something obscure
Keywords: Text multiple views

I'm trying to display the same text in multiple views.

Unfortunately, Text is a subclass of View, not something that projects into
a View.

Fortunately, the Concepts manual says that Text can be displayed in multiple
views.

Unfortunately, neither Concepts nor Reference say how to do this (at least,
I haven't found it after about 10 hours of looking).

I've tried copying various pointers and things inside Text using the *evil*
@defs technique. So I have multiple Text objects that point at a lot of the
same stuff. The other Text objects seem to know that *something* is there
(the cursor can be moved out of the upper left corner), but they won't display
anything when sent a "display" message, and my app crashes without diagnostics
when I try to type into any but the original Text view.

Is there some slick way to do this?

If not, is there some grubby way to do this?

Thanks,

Steve abell@netcom.com
From: doug@foxtrot.ccmrc.ucsb.edu (Douglas Scott)
Newsgroups: comp.sys.next.programmer
Subject: Re: problem with Malloc Debug
Date: 27 Jul 92 21:06:16 GMT
Distribution: na
Organization: Center for Computer Music Research and Composition, UCSB

In article <1992Jul24.173754.17638@MITL.COM> edlau@mitl.com (Ed Lau) writes:
|
|Does anyone have insights as to why Malloc Debug won't recognize my  
|application? Selecting Open... in the menu pops up a panel informing me that I  
|do not own any "application configured for use with the Malloc Debugger." Yet I  
|have linked my application with the proper library by adding  
|/usr/lib/libMallocDebug.a to "Other libs" in IB as instructed in the Help  
|Panel.

With programs run from a shell, the program must be run using its full path
name in order for MallocDebug to find it.  Try running the App from a Terminal
window with its full path, i.e., "/Users/johnDoe/Apps/My.app".  If this is not
it, check to be sure the -lMallocDebug is the first library in the link
arguments for the link stage of the make--in other words, look at the make
output to be sure it *is* using that library.


-- 
Douglas Scott                              (805)893-8352
Center for Computer Music Research and Composition
University of California, Santa Barbara
Internet: (NeXTMail ok)   <doug@foxtrot.ccmrc.ucsb.edu>
Newsgroups: comp.sys.next.programmer
From: colin@agincourt.bsd.uchicago.edu (& Garrett)
Subject: Re: Working with SYBASE bits with DBKit
Organization: University of Chicago Computing Organizations
Date: Thu, 30 Jul 1992 14:52:39 GMT

In article <1992Jul29.165653.12826@bmw.mayo.edu> roder@mayo.edu (Mark N.  
Roder) writes:
> 	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.

Well in sybfront.h you find the line:
typedef  unsigned char   DBBIT;          /* DataServer bit type */

So it shouldn't be a problem that DBKit wants to store these as integers.   
NeXT probably just didn't want to trouble with another datatype yet, and  
the only problem is that you waste three bytes for each DBBIT value you  
retrieve and store.
I wrote a little test app so I could try setValue:forProperty:at: with a  
bit field and I didn't have any problems, so I don't think it's that  
that's tripping you up.
' luck.

Colin Garrett
colin@delphi.bsd.uchicago.edu