HDTenEightyP/NetNews huggingface dataset:
From: mikem@afs.com (Mike Matlack)
Subject: emacs objective-C mode?
Date: Wed, 19 Aug 1992 18:19:46 GMT

Hi

Does anyone have an Objective-C mode for emacs that works?  I found one  
about a year ago, but it did not deal with "//" comments too well.

Thanks!

mikem
--
Michael J. Matlack
Anderson Financial Systems
mikem@afs.com (NeXTmail is OK)
Newsgroups: comp.sys.next.programmer
From: andrew@cubetech.com (Andrew Loewenstern)
Subject: Re: Animating lots of small bitmaps
Organization: Cube Technologies, Inc.
Distribution: usa
Date: Wed, 12 Aug 1992 04:09:12 GMT

In article <22171@venera.isi.edu> dstrout@darpa.mil (David Strout) writes:
>I need to animate many (up to 40) small (48>x>20) bitmaps in a view
>under 3.0.  (Think what the X game netrek looks like)  I tried doing
>it with a subview per bitmap, but that flashed badly.  I tried putting
>them all in the drawSelf:: of the main view, but that makes the whole
>view flash.  Current idea is to define a Type 3 font with my bitmaps,
>then use xyshow to draw them.  This seems really gross.  If I wanted
>to do graphics with fonts, I'd program (pick one: X, TI99/4a, IBM PCs)
>etc.  Does anyone have a better method?  Ideas welcome, example code 
>even better.

turning flushWindow off before drawing will hide the flashing, but
compositing may be too slow...  Fonts are really fast though.


andrew
-- 
andrew@cubetech.com     | "We shall not cease from exploration
Andrew Loewenstern      |  And the end of our exploring
Cube Technologies, Inc. |  Will be to arrive where we started
                        |  And know the place for the first time." -T.S. Eliot
Newsgroups: comp.sys.next.programmer
From: qureshi@unixhub.slac.stanford.edu ("For deposit only")
Subject: Re: How to rebuild a .nib file from .nib~
Reply-To: cooldude@elaine49.stanford.edu
Organization: DSO, Stanford University
Date: Fri, 14 Aug 92 19:08:24 GMT

In article <1992Aug14.151116.1579@arrocha.charlotte.nc.us>  
roberto@arrocha.charlotte.nc.us (Roberto Arrocha) writes:
> Anyhow, has anybody been able to rebuild a .nib file from a .nib~? Is this  
> possible or should I just forget about it? It's only a couple of day's  
> work, but I thought it would be nice to know, ..in case I decided screw up  
> again! You never know..
> 

Just rename it to .nib.  That is remove the tilde at the end.

Imran
From: bill@epnxt.jsc.nasa.gov
Newsgroups: comp.sys.next.programmer
Subject: How does one add text to an Icon?
Date: 21 Aug 92 19:25:37 GMT
Reply-To: bill@epnxt.jsc.nasa.gov
Organization: nasa-jsc

I wish to print some text on an icon.  Icon.app, though it has a font  
panel, does not appear to support the placement of text. Does anyone else  
know of a public domain program which will work?


Thanks in advance.
			Bill
From: aozer@next.com (Ali Ozer)
Newsgroups: comp.sys.next.programmer
Subject: Re: How does one color windows?
Date: 18 Aug 92 01:03:53 GMT
Organization: Next Computer, Inc.

In article <1992Aug17.140940.22938@aio.jsc.nasa.gov> bill@epnxt.jsc.nasa.gov writes:
>I am trying to change the color of a window from the default gray to let's  
>say yellow.  There is a method in the window class for doing this ...  
>called setBackgroundColor but it does not work.  I get no errors ... but  
>the color remains grey.  The window is the main window provided by IB.  Is  
>the setBackgroundColor method supported?  I do have a color monitor.

This method doesn't redisplay the window. As a first attempt, try putting a
[window display] right after the place where you set the background color.
If that works, then your problem probably is that the window has already
been created and displayed by the time you get around to setting the color.
You can try making the window deferred and making sure the color is set before
it is displayed; that will assure that by the time the window is ordered
front (at which time it is displayed) the background color will be set...

Ali, Ali_Ozer@NeXT.com
Newsgroups: comp.sys.next.programmer
From: drew@fnbc.com (Drew Davidson)
Subject: Re: atoh
Reply-To: drew@fnbc.com
Organization: First National Bank Of Chicago, Chicago IL, USA
Date: Fri, 14 Aug 92 15:20:40 GMT

In article <1992Aug14.005754.7977@csus.edu> eps@futon.SFSU.EDU (Eric P. Scott)  
writes:
> In article <1992Aug13.071225.9818@cco.caltech.edu>
> 	madler@tybalt.caltech.edu (Mark Adler) writes:
> >However, I get:
> >
> >/bin/ld: Undefined symbols:
> >_atoh
> >
> >indicating that it's not really there.  Is there some other sneaky
> >library I have to link to get it?
> 
> -lcs
> 
> >                                   Or is it not there at all?  Is
> >it in 2.2?
> 
> /usr/lib/libcs.a is identical in 2.1 and 2.2.
> 
> >            3.0 beta?
> 
> Dunno.
> 
> 					-=EPS=-

Hmm...no libcs in 3.0PR2.  It didn't get folded into any other lib either,  
because I can't find it in any of the lib files in /usr/lib or /lib.  Guess  
we'll have to get it from CMU ourselves!

--
+--------------------------------+-------------------------------------------+
|        Drew  Davidson          | "When you're jacked up on 3 pots of       |
|         Software Guy           | coffee it's easy to make a mistake."      |
| First National Bank of Chicago |             - Krantz and Stanely,         |
|     drew@fnbc.com  (NeXTmail)  |               "Programming the 68000"     |
+--------------------------------+-------------------------------------------+
Newsgroups: comp.sys.next.programmer
From: pclark@bosslogic.com (Pete Clark)
Subject: Re: Drag&drop of colors in Views - how does -acceptColor: atPoint: work?
Keywords: colors, dragging, views
Reply-To: pclark@bosslogic.com (Pete Clark)
Organization: Boss Logic
Date: Tue, 18 Aug 1992 06:32:38 GMT

In article <SCOTT.92Aug17092008@nic.gac.edu>  writes:
> So, what's up?  Am I just not doing something right?  There's not
> much area to go wrong, here, and I've checked the spelling against
> the documentation about a billion times.  It just doesn't seem to
> work.  Anyone out there got an example of receiving colors for your
> View?
> 

Scott:

	This class works as expected under 3.0PR2. The instance of MyView is a  
subview of a Box, which is in a Window. 

@implementation MyView
- acceptColor:(NXColor)color atPoint:(NXPoint *)aPoint
{
	printf("ouch!\n");
	return self;
}
@end

	Other advice:
	1) Are you sure that your view is an instance of the right object,  
rather than being a CustomView?
	2) Is there a superview of your view that might be catching that  
message?

	Best,
		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.
From: alex@cs.umd.edu (Alex Blakemore)
Newsgroups: comp.sys.next.programmer
Subject: Re: Faster draw
Date: 15 Aug 92 04:12:26 GMT
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742

In article <1992Aug14.220646.5882@u.washington.edu> goldly@u.washington.edu (Lloyd P. Goldwasser) writes:
> Are there any good NeXT examples floating around of the use of
> Postscript forms (PS Reference Manual, 2nd ed., p. 172) for
> speeding up drawing?  Does anyone have any experience with the
> relative merits of forms vs. user defined paths?

absolutely.

AdobeExamples.tar.Z

available at your neighborhood NeXT Internet archive.
(e.g. sonata.cc.purdue.edu in pub/next/doc)

there is a book from Adobe that goes with the examples
"Programming the Display PostScript System with NeXTStep"
aka the purple book.

Adobe will send you one for less than $30, 1-(800)344-8335



-- 
---------------------------------------------------
Alex Blakemore alex@cs.umd.edu   NeXT mail accepted
Newsgroups: comp.sys.next.programmer
From: roberto@arrocha.charlotte.nc.us (Roberto Arrocha)
Subject: How to add Controls to an app's icon
Keywords: NeXT Appkit
Reply-To: roberto@arrocha.charlotte.nc.us
Organization: Roberto E. Arrocha
Date: Sat, 15 Aug 1992 16:11:51 GMT

The subject field pretty much sums it up. I would like to add Control  
objects to the app icons (ala Engage!).

I've been able to display the Control objects, but cannot get them to  
respond to mouse events on them (i.e. clicks). Can anyone help?

- setInterface
{
	id contentView;
	
	iconWindow = [NXApp appIcon];
	contentView = [iconWindow contentView];
	/* controlsMatrix is Matrix of Buttons */
	[contentView addSubview:controlsMatrix];
	[contentView addSubview:counterField];
	[iconWindow setDelegate:self];
	[iconWindow display];
	[accesoryWindow free];
	return self;
}


Thanks.

-- 
Roberto
NeXTmail: roberto@arrocha.charlotte.nc.us
Newsgroups: comp.sys.next.programmer
From: ede978e@monu6.cc.monash.edu.au (Robert D. Nicholson)
Subject: Window's order
Summary: [window orderfront]
Organization: Monash University, Caulfield Campus
Date: Fri, 21 Aug 1992 08:21:46 GMT

I wish to only make a window order front if it 
is not already at the front.  I tried this.

- makeKeyAndOrderFront:sender
{
		/* only bring to front if not already at front */
		
	unsigned int windowNumber;
	int frontWindowNum;
	int localWindowNum;
			
	localWindowNum = [window windowNum];
	if (localWindowNum > 0) {
		NXConvertWinNumToGlobal(localWindowNum, &windowNumber);
 		PSfrontwindow(&frontWindowNum);
 	  
 		if (frontWindowNum != windowNumber) {
 			[window orderFront:sender];
  		}
	} else {			
	    [window orderFront:sender];
	}
			
	return self;
}
From: wjs@blorf.cpac.washington.edu (William Shipley)
Newsgroups: comp.sys.next.programmer
Subject: Re: Faster draw (PSL2 forms are SLOW)
Date: 18 Aug 92 02:01:34 GMT
Article-I.D.: u.1992Aug18.020134.8498
Organization: University of Washington

Lloyd P. Goldwasser writes:
> Are there any good NeXT examples floating around of the use of
> Postscript forms (PS Reference Manual, 2nd ed., p. 172) for
> speeding up drawing?  Does anyone have any experience with the
> relative merits of forms vs. user defined paths?
> [...]I am a duck.

When I tested PR2 it appeared that PostScript Level 2 forms are currently no  
faster than simply redrawing your image multiple times with a clip path.

That is to say, they don't appear to be cached.  They sure oughta be, but they  
aren't.  Bummer.  Forms would be a great way to encode multi-color sprites, if  
they worked.

This may have changed with the final release of 3.0, but I kinda doubt it.

-William Shipley
The Omni Group

PS: Patterns, on the other hand, are cached.  They're tres fast.
Newsgroups: comp.sys.next.programmer
From: lele@itnsg1.cineca.it (Lele Gaifax)
Subject: How to change the cursor position in a TextField?
Organization: Laboratorio di Fisica Computazionale, INFM. Trento Italia
Date: Fri, 21 Aug 1992 12:35:27 GMT

Hi again,
I'm still trying to get a better response from a TextField (from my pov, of
course !-).
I'd like to be able to programmatically change the contents of a TextField:
whenever the user press the BackSpace key, I want the character preceeding the
caret to be blanked, WITHOUT any other change in the text. In other words,
if the user keeps pressing the BackSpace key, all the previous characters
should be blanked, ie changed to blank chars, instead of removed at all.

My approach is simple; in my TextFilterFunction I do this:

static char *
myTextFilter (id textObj,
	      char * inputText,
	      int * inputLength,
	      int position)
{
  ...
  if (*inputText == NX_BACKSPACE)
  {
    [textObj setSel:position-1 :position];
    return " ";
  }
  ...
}

and it does work, but the caret obviously doesn't move and it keeps blanking
the same position.
Is it possible to move the caret from the application? How? (I tryied using
moveCaret: but it does not work at all!)

Thanx a lot, 
lele
-- 
Lele Gaifax - lele@itnsg1.cineca.it
Sicuramente i cattivi hanno scoperto qualche cosa che i buoni ignorano.
						- Woody Allen
Newsgroups: comp.sys.next.programmer
From: pan@dearth.media.mit.edu (Howard Pan)
Subject: Re: 3.0 Palette
To: pan@athena.mit.edu
Reply-To: pan@athena.mit.edu
Cc:  kaveh@ms.uky.edu, pan@athena.mit.edu
Organization: MIT Media Laboratory
Date: Wed, 12 Aug 1992 15:21:41 GMT

In article <1992Aug11.212228.11068@ms.uky.edu> kaveh@ms.uky.edu (Kaveh  
Baharestan) writes:
> 1> How does one get subclasses of objects (that are
> not views) to appear in paletteView.  I can get views
> to subclass (just as easily as always) and have them
> custom draw themselves, but then they are not really
> buttons or buttoncells or whatever it is i want to
> create.

If I understand your question correctly, I think what you want to do is to  
create something that will represent your custom object in the Palette  
Menu. What I usually do is just drag a button (and customize it with an  
image/words) that remind me of the object into Palette View. And then link  
that image to the custom object by implementing the associateObject: as  
specified in the documentation. You should take a look at the  
InterfaceBuilder.rtf file in  
/NextLibrary/Documentation/NextDev/ReleaseNotes  and also the  
CustomPalette documentation in the DevTools directory. 
 


=Howard Pan=
Internet: pan@athena.mit.edu
410 Memorial Dr. 		
Cambridge MA 02139		
Newsgroups: comp.sys.next.programmer
From: eps@futon.SFSU.EDU (Eric P. Scott)
Subject: Re: Shared libs on NeXT (was Re: What command do I use...)
Reply-To: eps@cs.sfsu.edu
Organization: San Francisco State University
Date: Sun, 16 Aug 1992 07:46:29 GMT

NeXT does not support user-created shared libraries.

Other techniques (e.g. dynamic loading) can be used to achieve
similar benefits.  2.x is weak in this area; 3.0 promises to be
somewhat better.

					-=EPS=-
From: glenn@rightbrain.com (Glenn Reid)
Newsgroups: comp.sys.next.programmer
Subject: Re: Tracking the currentdocument
Date: 16 Aug 92 18:47:44 GMT
Reply-To: glenn@rightbrain.com

Chris Lloyd writes

> Get rid of this erase, it's pointless since you do a composite with COPY
> right after it which just blasts over the fill.
> >    PSsetgray(NX_WHITE);
> >    NXRectFill(&rects[0]);
> 
> >    [image composite:NX_COPY
> >              fromRect:&rects[0]
> >              toPoint:&rects[0].origin];

That's not quite good advice. If there is alpha in the image being
composited, you'll get weird results on a color system if you don't
fill with white first (you get black wherever there was alpha).

--
 Glenn Reid        		NeXTmail: glenn@rightbrain.com
 RightBrain Software		415-326-2974 (NeXTfax 326-2977)
 Palo Alto, California
Newsgroups: comp.sys.next.programmer,comp.sys.next.misc
From: spagiola@frinext.stanford.edu (Stefano Pagiola)
Subject: Missile Command and Other Submissions
Reply-To: spagiola@frinext.stanford.edu
Organization: DSO, Stanford University
Date: Thu, 20 Aug 92 18:13:03 GMT

Please oh please could anybody who submits apps to the  
archives either provide separate source and binary-only  
versions or include a README telling people what files they  
can chuck if all they want is to run the thing.

I love all the apps that are posted, I'm real grateful to  
the people who post them, but i can't afford the disk space  
to keep all that source around that I will never use.

--
-
Stefano Pagiola
Food Research Institute, Stanford University
spagiola@frinext.stanford.edu (NeXTMail encouraged)
Newsgroups: comp.sys.next.programmer
From: kaveh@ms.uky.edu (Kaveh Baharestan)
Subject: Palettes and Inspectors
Keywords: Damn!
Summary: Damn!
Date: Sun, 23 Aug 1992 15:59:49 GMT
Organization: University Of Kentucky, Dept. of Math Sciences

I have been tring to develop a really customized palette of
buttons and other objects.  I have no real problems with the
creation of these objects, i just follow the instuctions in
the releasenotes.  The problem i am having is that i cannot
get the desired inspector panel to appear in the inspector
window.  Yes, i am spelling the name of the inspector object
correctly in the "getInspectorClassName" method in the custom
object's implementation.  I use the correct pasteboard type for the
"associateObject:type:with:" method.  And i have a fprintf statement
in the "revert:" that prints the Id of the [super object] that the
inspector is associated with.  It prints a non null positive number.

What i get when i click on a clustom object a blank inpector panel
(with ok and revert buttons) and the following error message on
console:


Aug 22 19:15:50 addiction InterfaceBuilder[708]: DPS client
  library error: PostScript program error, DPSContext ae090
Aug 22 19:15:50 addiction InterfaceBuilder[708]: %%[ Error: typecheck; 

Does anyone have a clue?
I would appreciate any help you could give me.

thanx,
kaveh.
-- 
/-  Kaveh Baharestan                               -==================|>=====o\
|"Though your lips are tempting, They're the wrong lips, They're not her lips |
| but they're such tempting lips That if some night you're free, Dear...      |
\______________________________________ -Cole Porter__________________________/
From: Robert_La_Ferla@hot.com (Robert La Ferla)
Newsgroups: comp.sys.next.programmer
Subject: Re: Change HostID - How ??
Keywords: hostid
Date: 20 Aug 92 14:42:52 GMT
Article-I.D.: hot.1992Aug20.144252.6882
Reply-To: Robert_La_Ferla@hot.com
Organization: Hot Software

Why do you need to change the hostid?  Why would you want to change the hostid?

Inquiring minds want to know...

-r


In article <1992Aug18.153253.3473@midway.uchicago.edu>  
eer1@midway.uchicago.edu(Paul Woods) writes:
> Hi -
> 
>  Last week I posted to .sysadmin and I received a couple of responses to the  
> following question (none of them were detailed enough).  The HostID on a NeXT  
> can be changed ( At least that is what I have been told ) and I need to be  
able  
> to change it on several of my NeXT's.  HOW DO I PATCH THE OS SO THAT IT WILL  
> ALLOW ME TO CHANGE THE HOSTID.  I am not a programmer (not really anyway) so  
> please keep it on a very simple level.
> 
> Thanks,
> 
> Paul-
Newsgroups: comp.sys.next.programmer
From: drew@fnbc.com (Drew Davidson)
Subject: NIDomain and sub-domains
Reply-To: drew@fnbc.com
Organization: First National Bank Of Chicago, Chicago IL, USA
Date: Tue, 18 Aug 92 17:46:40 GMT

Does anyone know how to get a list of all NetInfo domains under another NetInfo  
domain?

--
+--------------------------------+-------------------------------------------+
|        Drew  Davidson          | "When you're jacked up on 3 pots of       |
|         Software Guy           | coffee it's easy to make a mistake."      |
| First National Bank of Chicago |             - Krantz and Stanely,         |
|     drew@fnbc.com  (NeXTmail)  |               "Programming the 68000"     |
+--------------------------------+-------------------------------------------+
Newsgroups: comp.sys.next.programmer
From: waltrip@capd.jhuapl.edu
Subject: Request for DBkit Information
Organization: CAPVAX, JHU/APL
Date: Wed, 19 Aug 1992 01:04:46 GMT

I'm designing an application and it would be extremely helpful to me if I could
get information on DBkit.  We're not coding yet and don't expect to be ready to
start much before NS 3.0 is out.  But I can't go much further on design without
knowing a fair amount about DBkit.  I need to know the model of a database it
presents which means I need to know about what operations it provides.

Does anyone have a description in a form they could send along?  In case there
are a lot of kind souls out there who have this info and are willing/able to
share it, please let me know by email what might be available and I'll contact
one of you to hold down the net traffic.

Thanks.

c.f.waltrip
Internet:	<waltrip@capsrv.jhuapl.edu>
From: cyk@tos28.teradata.com
Newsgroups: comp.sys.next.programmer
Subject: NeXT Concepts.
Keywords: Objetive-C, super, NeXT Window Server, MACH.
Date: 14 Aug 92 20:50:21 GMT
Reply-To: cyk@tos28.teradata.com ()
Distribution: usa
Organization: ATT/NCR Teradata Business Unit
Originator: cyk@tos28


Hi Guys,

   I came accross a couple of questions while reading the
NeXT Concept document.  I would appreciate if any one can
give me some help.  My questions are listed in the following:

   1] Can a client of a NeXT Step window server be running
      on a remote host?  If this is possible, under which
      document is this capability documented?

   2] Does NeXT Step take advantage of MACH's threading, 
      virtual memory management and messaging facilities?

      Is there any documentation on how application programs
      can benefit from the MACH facilities?

   3] In Concepts, there is an example, illustrating the use 
      of SUPER in Objective-C, in the following way:

      In B.h:

         class B: A {
            .
            .
         }

       In B.m:

         + new 
         {
		B   *bInstance;

		bInstance = [super new];
                    .
                    .
                return bInstance;
           }

       The semantics illustrated above seems to imply that 
       bInstance will be pointing an instance of A since
       "super" causes the invokataion of A's new.

       Will class object B return a structure, which properly
       represents the newly created instance of B, if B has 
       additional instance variables other than A's?

   Thanks in advance for your help.


                                 -----  Chi Ku
Newsgroups: comp.sys.next.programmer
From: timo@swabsib.stgt.sub.org (Timo Hennerich)
Subject: IB Subprojects Problems
Organization: Swabian Siberian Software Solutions
Date: Tue, 18 Aug 1992 11:18:29 GMT

Hi folks,

I've a large application which I divided in a couple of subprojects. Now I have  
some problems with these. They still work like at the first day, but I'm not  
able anymore to open any with the InspectorPanel of the MainProject. If I open  
one (the subprojects are still eligible under type subprojects in the  
ProjectInspector) nothing happens. A remove and re-add procedure was not  
succesful (no difference). 

With new subprojects I've the same problems. There is still the possibility to  
open the subproject directly with a smart doubleClick in the Workspace, so the  
nib itself is still working. I think there's something wrong with the main  
IB.proj. What happened to it? Any suggestions?

ThanX in advance 

Timo
-- 
Timo Hennerich, +49 7182 7956, timo@swabsib.stgt.sub.org       HH
                                                          \\__/ '>
           Yesterday Today was still Tomorrow              \_  _/
                                                          ___][___
Newsgroups: comp.sys.next.programmer