HDTenEightyP/NetNews huggingface dataset:
From: andrew@stone.com (Andrew Stone)
Newsgroups: comp.sys.next.programmer
Subject: Re: appkit errors in header files
Date: 16 Nov 92 23:04:23 GMT
Article-I.D.: stone.1992Nov16.230423.1330
Reply-To: andrew@stone.com
Organization: Stone Design Corp

In article <61992@mimsy.umd.edu> alex@cs.umd.edu (Alex Blakemore) writes:
> In article <1992Nov11.161902.60706@cc.usu.edu> edx@cc.usu.edu writes:
> > [including] /NextDeveloper/Headers/appkit/drag.h [is] giving me these  
errors:
> > cc   tst.c  -o tst
> > /NextDeveloper/Headers/appkit/drag.h:47: illegal keyword selector,  
missing `)'
> 
> mv tst.c tst.m # should fix it
> 
> you can also change some CFLAG in your Makefile preamble but I forgot
> what its called.

-ObjC is the CFLAG...

-- 
||<<-->>||<<==>>||<<++>>||<<??>>||<<++>>||<<-->>||<<==>>||<<++>>||
!!      Andrew Stone            !!        (505) 345-4800        !!
!!    andrew@stone.com          <>       Stone Design Corp      !!
||<<-->>||<<==>>||<<++>>||<<??>>||<<++>>||<<-->>||<<==>>||<<++>>||
From: isbell@cats.ucsc.edu (Art Isbell)
Newsgroups: comp.sys.next.programmer
Subject: Custom IB File window icons and custom palettes
Date: 24 Nov 1992 05:33:39 GMT
Organization: Cubic Solutions - NeXT software development and consulting
Distribution: world
NNTP-Posting-Host: si.ucsc.edu
Summary: Need help!!
Keywords: IB, palette



I've run into a couple of brick walls trying to use 3.0's custom palette
capabilities and would like some suggestions.

In our suite of apps, we'll probably have aver 300 nibs, each of which need
about 10 classes added to NeXT's classes.  6 of them are in 2 separate
inheritance chains rooted at Object.  I thought it would be nice to make a
custom palette with custom File window icons so that for each new nib, I
wouldn't have to drag these 10 classes into the Classes suitcase (in the proper
order) and I would have a visual way to distinquish their instances instead of
having them all look like the sphere icon.

However, it appears that all non-View classes in custom palettes must be
immediate Object subclasses (as the docs hint at, but I wasn't certain that
"immediate" Object subclasses were required).  Whenever I try to add a subclass
of an Object subclass (an Object grandchild), I get a palette load error.  Am I
correct in assuming that only immediate Object subclasses can be used in
non-View palettes?

Also, I've had no luck implementing getIBImage in my non-View palette classes
so that a custom icon appears in IB's File window whenever one of these classes
is dragged off my palette and dropped in the File window.  All I ever get is
the standard sphere icon.  I've implemented getIBImage to return an NXImage
initialized from a tiff in the project directory, but gdb indicates that
getIBImage is never messaged at all.  Has anyone gotten this to work and if so,
what am I doing wrong?

Thanks.
-- 

Art Isbell                                                      Cubic Solutions
NeXT Registered Developer #745         NeXT software development and consulting
NeXTmail: isbell@cats.UCSC.EDU                             Voice: (408)335-1154
USmail: 95018-9442                                           Fax: (408)335-2515
From: ralf@reswi.en.open.de (Ralf E. Stranzenbach)
Newsgroups: comp.sys.next.programmer
Subject: SybaseDemo.dbmodel seems to be defective
Date: 19 Nov 1992 22:56:09 GMT
Organization: News Server fuer en.open.de
NNTP-Posting-Host: localhost.en.open.de

Hi,

i tried to get some things done using NeXT's dbKit adaptor for the
SyBase database server. I spent some time (the whole evening) to get
a very small program working. The things it should do is to show a
list of "Authors" and, in a second browser, a list of their
publications.

As a first step i would be pleased to see the cartesian product of
Authors * "their titles".

But even this very small example failed. Everytime i tried it to "Run"
from the InterfaceBuilder it crashed.

After some time peeking around i noticed, that the model
"SybaseDemo.dbmodel" has some missing relationships:

	RelationName         Local Field       matches      External Field
	-----------------    ----------------- ------- -------------------
	Author.Titles      = Author.authorId      >> TitleAuthor[authorId]
	Title.Authors      = Title.titleId        >> TitleAuthor[titleId]
	TitleAuthor.author = TitleAuthor.authorId >  Author[authorId]
	TitleAuthor.title  = TitleAuthor.titleId  >  Title[titleId]

After i've entered this relationships by hand, my tinyApp(tm) works...


	IS THERE ANY REASON WHY THESE RELATIONSHIPS WERE MISSING ?

I thought about it, but i do no reason why it should be better not to
enter these valid relationships... Therefore i am currently somehow
confused.

	- ralf
--
Ralf E.Stranzenbach  -   (NeXT)-Mail: ralf@reswi.en.open.de
                                Fido: Ralf_Stranzenbach 2:245/5800.12
                       (Voice)-Phone: +49 2302 / 68403
--
Computer sind die praktische Anwendung der Murphyschen Gesetze.
Newsgroups: comp.sys.next.programmer
From: gvh@metrosoft.com (Gordon Van Huizen)
Subject: Re: UI: Suggestion for open and save panels
Reply-To: gvh@metrosoft.com (Gordon Van Huizen)
Organization: Metrosoft
Date: Mon, 23 Nov 1992 17:08:35 GMT

In article <1992Nov23.023044.5490@asw.com> jayson@millennium.com (Jayson Adams)  
writes:
> In article <1992Nov21.063637.210@metrosoft.com> gvh@metrosoft.com (Gordon  
> Van Huizen) writes:
> > One thing we're planning to do ... is allow you to drag files and
> > folders out of our dock so you could use it like a shelf. It would have
> > the added benefit (over the file viewer's shelf) of not having the icons
> > disappear after they have been dragged out. 
> 
> Great idea!  If you want to do this today (and a lot more), check out  
> Engage!.
> 

MetroTools does a *few* other things as well. :)

Gordon
-- 
----------------------------------------------------------------
Gordon Van Huizen           vox: 619.488.9411  fax: 619.488.3045
Metrosoft                   gvh@metrosoft.com [NeXTmail welcome]
----------------------------------------------------------------
Newsgroups: comp.sys.next.programmer
From: nevin@dtint.dtint.com
Subject: Re: Coding Rules/Suggestions
Reply-To: nevin@dtint.dtint.com
Organization: Digital Technology, International
Date: Fri, 20 Nov 92 02:52:59 GMT

In article <1992Nov19.082837.3889@netcom.com> abell@netcom.com (Steven T.  
Abell) writes:
> nevin@dtint.dtint.com writes:
> >I've been the route of extremely strict conventions (see Charles  
> >Symoni, MIT/Microsoft on type naming calculus commonly referred to as  
> >"Hungarian"), and I find the middle ground more appealing (i.e. a  
> >'relaxed' but enforceable, democratic group of standards).

Actually, Kevin Sven Berg at Pages wrote the above in an email message to me.
I posted it to the net.  Sorry for the confusion, Steve.

> If anybody out there hasn't seen this stuff and is interested, send e-mail.
> 
> Steve abell@netcom.com

--
Nevin Pratt, Digital Technology, Int'l    Orem, Ut
NeXTmail preferred, but ONLY at my REAL email address: nevin@dtint.dtint.com

-- 
---
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
From: mohr-eric@CS.YALE.EDU (Rick Mohr)
Subject: Re: Can a View delegate its event handling capability?
Organization: Yale CS Mail/News Gateway
Date: Mon, 23 Nov 1992 08:21:14 GMT

I got 5 suggestions and 2 "me too's" in response to my question on how to
get a "tool object" to handle events for a document view.  The only solution
that really does the job in my opinion is to insert the tool object into the
responder chain as the View's next responder.  That was suggested by one
person and appears below.

-Rick


From: Josh Doenias <Josh_Doenias@NeXT.COM>
Date: Tue, 17 Nov 92 20:23:28 -0800
To: mohr-eric@CS.YALE.EDU (Rick Mohr)
Subject: Re: Can a View delegate its event handling capability?

In comp.sys.next.programmer article
<199211162313.AA25672@NEBULA.SYSTEMSZ.CS.YALE.EDU> you wrote:
>Can a View delegate its event handling capability?
>
...
>
>When a window object receives a "mouseDown" event message from the window
>manager it determines what View gets first crack at the event and sends it a
>mouseDown: message.  What I want is some way for the view to say "instead of
>sending ME event messages, send them instead to HIM (the selected tool
>object)."  Do I have to subclass window and duplicate the event distribution
>capability??

This is the whole idea behind the Responder object and Responder chain.
A View gets messages like "mouseDown:" and "keyDown:" because it is a
Responder object. If the view didn't respond to any of these messages, the
event will get passed down to the nextResponder.

You can simply set up your tools to have the behavior you described by
making the Tools subclasses of Responder.  Then, whenever a tool is
selected, you can make that tool the nextResponder


Newsgroups: comp.sys.next.programmer
From: henry@trilithon.mpk.ca.us (Henry McGilton)
Subject: Minor Problem With Save Panel
Keywords: delegates
Organization: Trilithon Software
Date: Thu, 19 Nov 1992 19:18:00 GMT




I have a question about the Save Panel's delegate 
method -- panel:filterFile:inDirectory:

I set myself as delegate and then start the Save
Panel with runModalForDirectory:file:

The delegate method seems to be called many times,
like more than 100 times when the panel comes up.
Then every time I click on any directory in the
browser, the delegate gets called 20 or 30 times
more.

Any pointers to the correct FM to R appreciated.

	Thanks,
		........  Henry
Newsgroups: comp.sys.next.programmer,comp.sys.next.misc
From: ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson)
Subject: Documentation set question
Organization: Monash University, Caulfield Campus
Date: Fri, 20 Nov 1992 03:19:42 GMT

I currently own the previous document set for 2.1 by Addison and Wesley

There are really useful pieces like "Technical Summaries" and 
"Supplmenetal Documentation" and the System software one too.

My question is Does the new set completely supersede this set all these
references now out of date.

I need to know as I am about to travel overseas shortly and I would prefer
not to carry such a large bundle of heavy books accross.

I know that the "General Reference" Volumes are out of date where 3.0 stuff
is concerned I just don't know about the rest thats all.

Cheers.



Newsgroups: comp.sys.next.programmer
From: samurai@cs.mcgill.ca (Darcy BROCKBANK)
Subject: NXBRowsers and Arrow Keys
Organization: SOCS - Mcgill University, Montreal, Canada
Date: Tue, 17 Nov 1992 19:10:20 GMT

Can someone tell me the trick used to make the NXBrowser work
with arrow keys?

The docs say do this:

[myBrowser acceptArrowKeys:YES andSendActionMessages:YES]

And that's all you need. The browser should then respond to
- acceptsFirstResponder with YES, which it does, but even if
I programatically tell it - becomeFirstResponder the arrow
keys never get through to it (and I get the system beep).

The browser is in a Panel, BTW.

Any suggestions?

- db
From: sam_s@NeXT.com (Sam Streeper)
Newsgroups: comp.sys.next.programmer
Subject: Re: NeXT Event Loop Question
Date: 24 Nov 92 01:38:03 GMT
Reply-To: sam_s@NeXT.com

west@turing.toronto.edu (Tom West) writes:
>   I am porting over an interpreter to the NeXT.  (...)
>   Rather kindly, the execution process does come up for air fairly regularly.
> Looks like: 	do
> 	        {
> 		    running = Execute ();
> 		} while (running != FINISHED)

In the past you have been simply polling the execution loop from the event  
loop.  The event loop is rather more hidden under NeXTstep, but you can get the  
same effect by installing a timed entry that runs the Execute() loop.

Timed entries happen "between" the dispatch of normal events (like keypresses).   
You must specify the interval at which you want to invoke the function  
(presumably a very small value in your case).  One thing to be aware of is that  
timed entries normally can go off any time you ask for an event (like "what is  
the next key?")  A timed entry will never directly reenter the handler function  
(that is, the function is locked out until the timed entry returns) but it  
could happen if you call the Execute() handler responding to a key-down event  
and you look for another event.  If you need to do this, a simple semaphore  
will keep you happy.  Oh yeah, the documentation is under DPSAddTimedEntry().

-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: sam_s@NeXT.com (Sam Streeper)
Newsgroups: comp.sys.next.programmer
Subject: Re: Compiling for 2.1
Date: 21 Nov 92 00:47:11 GMT
Reply-To: sam_s@NeXT.com

ballew@wimpy (bill ballew) writes:
> Is there any way to compile a NeXT App under 3.0 so that it will still
> run under 2.1 ?  The app doesn't use anything in 3.0 that wasn't in 2.1.

I don't think so.  It uses the shlibs, at least.  "What," you may ask,
"if I link against my old shlibs?"  I don't know.  In general, backwards  
compatibility is a one-way street.

-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: paul@phoenix.Princeton.EDU (Paul Lansky)
Subject: paste
Originator: news@nimaster
Organization: Princeton University
Date: Sun, 22 Nov 1992 19:31:33 GMT


In classical bsd-type systems there was a program called
paste, which would merge two files in multicolumn output.
I can't find any comparable utility in NeXT 3.0.  
Does anyone know of one, or can someone mail me the
source for the bsd version?  thanks

Paul Lansky
music 
princeton

paul@Princeton.edu
Xref: sparky comp.sys.next.programmer:7347 comp.sys.next.misc:22183
From: ricardo@chuy (Ricardo Parada)
Newsgroups: comp.sys.next.programmer,comp.sys.next.misc
Subject: Aritcle "Why I Need Objective-C" in JOOP
Date: 20 Nov 92 19:35:40 GMT
Organization: Pencom Software

Several people have asked me about the article I read in the Journal of O-O  
Programming.  Here's the info:

______________________________________

Lozinski, Christopher,
"Why I Need Objective-C,"
Journal of Object-Oriented Programming,
September 1991, pp.21-28
_______________________________________


+ Ricardo J. Parada
Newsgroups: comp.sys.next.programmer
From: root@cello.ethz.ch. (Operator)
Subject: Editable ButtonCells
Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
Date: Mon, 16 Nov 1992 00:43:43 GMT

Reply-To: massimo@cello.open.ch
Distribution: world

I need a cell, which is able to diplay an icon and an editable text  
together, for example in a browser or in matrix. Unfortunately the  
ButtonCell class supports icons with non-editable text. Is it right or I  
am missing something ?
How is it possible to overcome this limitation ?

Massimo Arnoldi, Via Vignascia, 6982 Serocca d'Agno, Switzerland
Tel:     +4191 595539
E-mail:  massimo@cello.open.ch (NeXT)
NeXT Registered Developer
From: neil@alamo.mth.pdx.edu (John Neil)
Newsgroups: comp.sys.next.programmer
Subject: Making a text field respond to any keystroke
Summary: What needs to be done to do this?
Keywords: text field, next
Date: 16 Nov 92 19:58:48 GMT
Article-I.D.: dehn.neil.721943928


I'd like to be able to make a text field in a particular window to respond
to any keystrokes on the keyboard whenever that window is open and not just
when you click on the field.  Is this possible?  I'm not sure where to look
in Librarian to find the answer.  Please respond via e-mail and do your little
bit to reduce bandwidth.  Thanks.

--John Neil



--
John Neil, Graduate Teaching Assistant           e-mail:  neil@math.mth.pdx.edu
Mathematics Department                         NeXTMail:  neil@dehn.mth.pdx.edu
Portland State University
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Newsgroups: comp.sys.next.programmer
From: thf@zelator.in-berlin.de (Thomas Funke)
Subject: Re: tcl: did anyone compile it successfully?
Reply-To: thf@zelator.in-berlin.de (Thomas Funke)
Organization: NNU Corp. - NeXT is Not UN*X
Date: Sun, 22 Nov 1992 17:11:46 GMT

In article <1992Nov21.150745.16229@itnsg1.cineca.it> ronchet@itnsg1.cineca.it  
(Marco Ronchetti) writes:
> The subject says it: did anyone successfully compile tcl (tool control 
> langauge) under NextStep 3.0 ?
> 


YES !


-- 
------------------------------------------------------------------
Thomas Funke  ** E-mail: thf@zelator.in-berlin.de
NeXT-Developer * Unix-Consultant
------------------------------------------------------------------
Newsgroups: comp.sys.next.programmer
From: pfkeb@kaon.SLAC.Stanford.EDU (Paul F. Kunz)
Subject: Re: strip DB - Application doesn't work
Organization: Stanford Linear Accelerator Center
Date: Fri, 20 Nov 1992 04:53:26 GMT

>>>>> On 17 Nov 92 01:33:05 GMT, sam_s@NeXT.com (Sam Streeper) said:

> peter@aki.en.open.de writes:
>> I have tested the AddressBook MiniExample Sept 92 ...
>>  and it works fine. But then I  
>> wanted to install it (make install). The make install command strips the  
>> application. This seems to be a very good idea, because it saves disk space 
>> ( >1 Mb to 40 K) !
>> 
>> But this example works with dynamically loaded adaptors. 

> I haven't seen this example, but apps that will dynamically load code need
> some symbols left behind to allow linking.  You can only strip them so far:

> strip -x   or
> strip -x -A

> (I think... this is off the top of my head)

   According to /NextDeveloper/Makefile/app/app.make one wants to
put in one's Makefile.postamble the following line...

      APP_STRIP_OPTS = $(DYLD_APP_STRIP_OPTS)

It does "strip -A -n".  I put this into an application that
dynamically loads a bundle and also uses rld() directly, and it seems
to work fine.  I have not tried it on a DBKit based application.

   For my one and only DBKit app, I've put the following in my
Makefile.preamble...

     LDFLAGS = -u libdbkit_s -u libNeXT_s -u libsys_s

That magic was in the PreRelease notes on the DBKit.   I don't know
where it is in the final release.

   But watch out!  The makefiles are considerably changed between
the PreRelease and the final.   I don't know if the above magic is
still valid since I've not re-compiled my DBKit app since PreRelease days.
--
Paul F. Kunz	pfkeb@slac.stanford.edu (NeXT mail ok)
Stanford Linear Accelerator Center, Stanford University
Voice: (415) 926-2884   (NeXT) Fax: (415) 926-3587
From: cc100aa@xray.gatech.edu (Ray Spalding)
Newsgroups: comp.sys.next.programmer
Subject: Re: Determining dimensions of text object
Date: 18 Nov 92 19:26:42 GMT
Organization: Georgia Institute of Technology

In article <1992Nov16.080646.2606@worg.questor.wimsey.bc.ca>
	david@worg.questor.org (David Lau) writes:
>Suppose I want to make a text object big enough to hold m-by-n characters from
>a fixed-width font, how do I go about determining its dimensions?

You can use NXTextFontInfo() to get the font's line height.
You can use the getWidthOf: method of Font to get the width of
any single, arbitrary character (they should all be the same
in a fixed-width font).  Then, just multiply it out...
-- 
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: ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson)
Subject: rld: undefined symbols
Organization: Monash University, Caulfield Campus
Date: Sat, 21 Nov 1992 09:07:43 GMT


I am writing a Workspace contents inspector.

Upon trying to load the bundle I get the following
message on the console.

/robert/Apps/RIBInspector.bundle/RIBInspector

Nov 21 19:59:45 steffi WM[148]: rld(): Undefined symbols:

My Bundle's nib has a customView is this legal with bundles?
From: dillon@overload.Berkeley.CA.US (Matthew Dillon)
Newsgroups: comp.sys.next.programmer
Subject: Re: printf g format still broken under NeXTSTEP 3.0
Distribution: world
Date: 22 Nov 92 11:27:16 PST
Organization: Not an Organization

In article <1992Nov11.012228.23372@access.usask.ca> eric@skatter.usask.ca writes:
>I reported this bug in December 1989, and when NeXTSTEP 2.0 came out,
>and when NeXTSTEP 2.1 arrived, and now that NeXTSTEP 3.0 has arrived ...
>IT STILL ISN'T FIXED!!!!!
>
>Here's an example program:

    NeXT is not using an ANSI printf() spec.... for example, NeXT's
    printf() does not return the number of characters output and atexit()
    doesn't work if you kill a process with -HUP.  In fact, quite a few
    functions aren't ansi and there seems to be no option to get an 'ansi'
    compatible library.

					-Matt
>--
>Eric Norum			eric@skatter.usask.ca
>Research Engineer		phone: (306) 966-6308
>Accelerator Laboratory
>University of Saskatchewan

--

    Matthew Dillon		dillon@Overload.Berkeley.CA.US
    1005 Apollo Way		uunet.uu.net!overload!dillon
    Incline Village, NV. 89451	ham: KC6LVW (no mail drop)
    USA 			Sandel-Avery Engineering (702)831-8000

Newsgroups: comp.sys.next.programmer
From: bbum@object.com (Bill Bumgarner)
Subject: Disabling command-shift & keyboard remapping under 3.0
Keywords: keyboard maps, kernel mod, caps-lock
Organization: Objective Technologies,Inc.
Date: Tue, 17 Nov 92 19:28:37 GMT


Does anyone have a 3.0 compatible version of the kernel patch that disabled the  
command-shift as caps-lock?  I would really like to have rightCommand-shift as  
my caps lock, but I would settle for just turning the damn thing off.

Along the same lines, does anyone have a fixed version of the keyboard remapper  
that put '|' as shift-delete and '\' as shift-return (the 2.x version of that  
program didn't seem to Do the Righ Thing).

BTW: for a non-ADB keyboard....

b.bum
--
Bill Bumgarner <bbum@object.com> | "The devils of truth...
Objective Technologies, Inc.     |    steal the souls of the free." -- NIN
-- 
Bill Bumgarner <bbum@object.com> | "The devils of truth...
Newsgroups: comp.sys.next.programmer