HDTenEightyP/NetNews huggingface dataset:
From: bill@epnxt.jsc.nasa.gov
Newsgroups: comp.sys.next.programmer
Subject: Can't get Backspace.tar off of Sonata...
Date: 27 Jul 1992 15:36:13 GMT
Reply-To: bill@epnxt.jsc.nasa.gov
Organization: nasa-jsc

I am unable to use Gator+ to acquire Backspace.tar off of Sonata.  The  
best I can figure out is that the path is being read as  
2.0/sourceBackspace.tar instead of /2.0/source/Backspace.tar.  I do not  
know whose problem this belong to.... Gator or Sonata.  Does anyone know  
any other location where I can obtain a copy of this program?

Thanks in advance.

		Bill
Newsgroups: comp.sys.next.programmer
From: capesp@NeXTwork.Rose-Hulman.Edu (Stephen P. Cape)
Subject: Object archiving problems
Organization: Rose-Hulman Institute of Technology
Date: Fri, 24 Jul 1992 19:20:53 GMT


I have problem with errors being generated when my subClass of Control  
is being archived. The following error message is generated in gdb when  
I try to write my object to a typedStream:

Program generated(1): Memory access exception on address 0x8  
(protection failure).
0x5033476 in checkWrite ()

I set up my read and write methods as I have always done before  
(successfully), but in this case they don't work. Actually, I'm not  
sure they're the source of the problem because the above error message  
gets generated before my write: method even gets called. Anyone have  
any clues/ideas/suggestions?

BTW, it doesn't matter whether I use NXWriteObject or NXWriteRootObject  
to archive my object. It crashes either way.

--
Steve Cape

capesp@nextwork.rose-hulman.edu
Newsgroups: comp.sys.next.programmer
From: drew@fnbc.com (Drew Davidson)
Subject: Re: Non-copyable TextField
Reply-To: drew@fnbc.com
Organization: First National Bank Of Chicago, Chicago IL, USA
Date: Thu, 30 Jul 92 14:52:02 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?
> 
>   Thanks,
> 
> Bob Beauchemin
> bobb@agora.rain.com

You are correct about the Text object.  The TextField object doesn't have  
firstResponder when you are typing text into the field, the Text object does.   
One way to accomplish what you want is to subclass text that overrides the  
copy:, cut:, and paste: messages then use this subclass in your window by  
returning it via the Window's delegate message,  
windowWillReturnFieldEditor:toObject:

here's some example code (implemented in the window's delegate):

- windowWillReturnFieldEditor:sender toObject:client
{	NXRect		fRect;
	static id	ourFieldEditor = nil;
	
	if (!ourFieldEditor)
	{	fRect.origin.x=fRect.origin.y = 0.0;
		fRect.size.width = fRect.size.height = 100.0;
		ourFieldEditor = [[MyTextSubclass alloc] initFrame:&fRect];
	}
	return(ourFieldEditor);
}

Naturally you might want to have a flag in your subclass that has a flag that  
can be set so not all the fields in your window behave this way.

- Drew
--
+--------------------------------+-------------------------------------------+
|        Drew  Davidson          | The perfect development team:             |
|         Software Guy           | One person paid per line of code written  |
| First National Bank of Chicago | and another paid per line of code removed |
|     drew@fnbc.com  (NeXTmail)  |                     - Frank Mitchell      |
+--------------------------------+-------------------------------------------+
Organization: Penn State University
Date: Wed, 22 Jul 1992 10:33:26 EDT
From: <MKK2@psuvm.psu.edu>
Newsgroups: comp.sys.next.programmer
Subject: Re: launching shell commands

I've answered my own question.  (John Immordino at NeXT answered it too, and
it didn't cost me $225---yet 8-) 8-)

At first, I had given up on the Examples, but then I remembered that they
might use vfork instead of fork. Sure enough, a DL search on vfork() turned
up Subprocess.m, which does just what I needed.

It's in Examples/Subprocess.  You send it a shell command, and it vfork()'s,
execs the command in a /bin/sh, sets up a DPSAddFD(), and then sends a
message containing stdout each time appears.

It seems like a pretty nice solution.  If someone has added a lot of
functionality to Subprocess, it'd be a good candidate to the archives.

Thanks to everyone who emailed me suggestions.  Thanks again nets, just
for being there.
From: zazula@pri.com (Ralph Zazula)
Newsgroups: comp.sys.next.programmer
Subject: Re: NXBrowser Class Help!
Date: 24 Jul 92 01:10:46 GMT
Article-I.D.: arizona.1992Jul23.181048.3534
Reply-To: zazula@pri.com
Distribution: world,local

In article <36038@sdcc12.ucsd.edu>  writes:
> I am very new to both oop and NeXTstep and am having problems
> understanding how to implement the NXBrowser class. 

Hi -

You should download the MiniExamples, particularly the "NormalBrowser" one.   
The MiniExamples are very good short examples on various topics provided by  
NeXT.  They are on the sonata.cc.purdue.edu archive site - under  
/pub/next/documentation, I think.

Good Luck,
Ralph
Newsgroups: comp.sys.next.programmer
From: eps@futon.SFSU.EDU (Eric P. Scott)
Subject: Re: NeXT TIFF question
Reply-To: eps@cs.sfsu.edu
Organization: San Francisco State University
Date: Tue, 28 Jul 1992 05:21:35 GMT

In article <4482@rosie.NeXT.COM> aozer@next.com (Ali Ozer) writes:
>But Eric, what's the problem?  Our 3.0 images (with alpha) load under
>2.0 just fine, and that was certainly the biggest concern...

(1) Old files, and hence old formats, live forever.
(2) *My* biggest concern is being able to read NeXT-generated
    TIFF files w/o the AppKit (for example, on other
    platforms...).

					-=EPS=-
From: low00001@bullnext.mc.duke.edu (Richard Low)
Newsgroups: comp.sys.next.programmer
Subject: printPSCode: for aText object
Keywords: Print Text
Date: 31 Jul 92 13:34:05 GMT

I'm trying to add generic Print capabilities to my prototype IB  
application.

I have a Text object in a Scrollview and I want the user to be able  
to print the content of the text object by selecting the Print menu  
option.

I have added a Print menu item and wired it to the First Responder  
object and connected it to the printPSCode:sender method.

My problem is that when I select the Print option the entire Window  
is printed; Frame view, text, the whole nine yards.  I don't want the  
window frame to print, just the text.

I gather I can implement my own method to do the printing with  
[[myScrollView contentView] printPSCode:sender].  The problem with  
this is that I have to establish a method for every view.

Is there a way to do what I want using the First Responder?  This is  
desirable because it will send the message wherever without me having  
to wire the connections.

Thanks for any help. 

--

Richard Low
Duke University Medical Center
low00001@bullnext.mc.duke.edu
NeXT Mail welcome


-- NewsGrazer, a NeXTstep(tm) news reader, posting --
M>UQR=&8P7&%N<VE[7&9O;G1T8FQ<9C!<9FUO9&5R;B!#;W5R:65R.WT*7&UA
M<F=L,3(P"EQM87)G<C$R,`I<<&%R9%QT>#$S-#1<='@R-C@X7'1X-#`S,EQT
M>#4S-S9<='@V-S(P7'1X.#`V-%QT>#DT,#A<='@Q,#<U,EQT>#$R,#DV7'1X
M,3,T-#!<9C!<8C!<:3!<=6QN;VYE7&9S,CA<9F,P7&-F,"!))VT@=')Y:6YG
M('1O(&%D9"!G96YE<FEC(%!R:6YT(&-A<&%B:6QI=&EE<R!T;R!M>2!P<F]T
M;W1Y<&4@24(@87!P;&EC871I;VXN7`I<"DD@:&%V92!A(%1E>'0@;V)J96-T
M(&EN(&$@4V-R;VQL=FEE=R!A;F0@22!W86YT('1H92!U<V5R('1O(&)E(&%B
M;&4@=&\@<')I;G0@=&AE(&-O;G1E;G0@;V8@=&AE('1E>'0@;V)J96-T(&)Y
M('-E;&5C=&EN9R!T:&4@4')I;G0@;65N=2!O<'1I;VXN7`I<"DD@:&%V92!A
M9&1E9"!A(%!R:6YT(&UE;G4@:71E;2!A;F0@=VER960@:70@=&\@=&AE($9I
M<G-T(%)E<W!O;F1E<B!O8FIE8W0@86YD(&-O;FYE8W1E9"!I="!T;R!T:&4@
M<')I;G104T-O9&4Z<V5N9&5R(&UE=&AO9"Y<"EP*37D@<')O8FQE;2!I<R!T
M:&%T('=H96X@22!S96QE8W0@=&AE(%!R:6YT(&]P=&EO;B!T:&4@96YT:7)E
M(%=I;F1O=R!I<R!P<FEN=&5D.R!&<F%M92!V:65W+"!T97AT+"!T:&4@=VAO
M;&4@;FEN92!Y87)D<RX@($D@9&]N)W0@=V%N="!T:&4@=VEN9&]W(&9R86UE
M('1O('!R:6YT+"!J=7-T('1H92!T97AT+EP*7`I)(&=A=&AE<B!)(&-A;B!I
M;7!L96UE;G0@;7D@;W=N(&UE=&AO9"!T;R!D;R!T:&4@<')I;G1I;F<@=VET
M:"!;6VUY4V-R;VQL5FEE=R!C;VYT96YT5FEE=UT@<')I;G104T-O9&4Z<V5N
M9&5R72X@(%1H92!P<F]B;&5M('=I=&@@=&AI<R!I<R!T:&%T($D@:&%V92!T
M;R!E<W1A8FQI<V@@82!M971H;V0@9F]R(&5V97)Y('9I97<N7`I<"DES('1H
M97)E(&$@=V%Y('1O(&1O('=H870@22!W86YT('5S:6YG('1H92!&:7)S="!2
M97-P;VYD97(_("!4:&ES(&ES(&1E<VER86)L92!B96-A=7-E(&ET('=I;&P@
M<V5N9"!T:&4@;65S<V%G92!W:&5R979E<B!W:71H;W5T(&UE(&AA=FEN9R!T
M;R!W:7)E('1H92!C;VYN96-T:6]N<RY<"EP*5&AA;FMS(&9O<B!A;GD@:&5L
M<"X@7`I<"BTM7`I<"E)I8VAA<F0@3&]W7`I$=6ME(%5N:79E<G-I='D@365D
M:6-A;"!#96YT97)<"FQO=S`P,#`Q0&)U;&QN97AT+FUC+F1U:V4N961U7`I.
595A4($UA:6P@=V5L8V]M95P*"GT*
`
Newsgroups: comp.sys.next.programmer
From: bill@epnxt.jsc.nasa.gov
Subject: What if two instantances in same nib file ... need help
Reply-To: bill@epnxt.jsc.nasa.gov
Organization: nasa-jsc
Date: Fri, 31 Jul 1992 12:39:47 GMT

My earilier post was in error.  My question should have been:  If I have  
multiple instantances and multiple windows created via IB in a single nib  
file (example the ReSound program off of the boards), how do I know which  
instance is being executed first .. or does it really matter.  I think the  
"init" function of every instance and of every window is being executed  
when a program is run ... but I am not sure.

		Bill
From: william@moica.berkeley.edu (William E. Grosso)
Newsgroups: comp.sys.next.programmer
Subject: ScrollView redux.....
Keywords: speed is a good thing.
Date: 29 Jul 92 00:12:05 GMT
Organization: University of California, Berkeley
NNTP-Posting-Host: simple.berkeley.edu




Thanks to everybody who replied to my previous question on 
ScrollViews (why I was losing subviews during scrolling).

Another question: Scrolling seems to be incredibly slow. 
How does one speed it up ? Are there standard ways to 
scroll quickly (and still have dynamic drawing) ?

The best idea I have (at the moment) is to implement
a compositing operation (keep a copy of the entire DocView
and copy it in). This seems somewhat baroque (and wasteful
of memory) though. 

What am I missing ?

Bill Grosso
From: hans@dev01 (Hans Peter Geiser)
Newsgroups: comp.sys.next.programmer
Subject: Re: class messages
Date: 30 Jul 92 08:07:50 GMT

> This may seem like a dumb question, but how do you call a method in a
> CustomClass from another method in the same CustomClass??
> 
> Eg.
>               CustomClass has 2 methods.
>               - helloThere
>               - seeYouTommorow
> 
>               When I'm in, or done with, helloThere, how can I call
>               seeYouTommorow from within helloThere?
> 

As you name your methods - hello.. ( and not + hello...) I suppose you don't  
mean messages that are sent to Classes but messages to objects.

This is easy done by using the global id self, that points always to the object  
of the method you're in. Just do the following:

- helloThere
{
	....
	[self seeYouTomorrow];
	...
	return self;
}
- seeYouTomorrow
{
	....
	return self;
}

Hans - Peter Geiser
Newsgroups: comp.sys.next.programmer
From: greg@afs.com (Gregory H. Anderson)
Subject: Re: NXSplitView with VERTICAL bar
Reply-To: greg@afs.com
Distribution: world,local
Date: Tue, 28 Jul 1992 23:26:08 GMT

In article <1992Jul26.132812.8839@cubetech.com> andrew@cubetech.com  
(Andrew Loewenstern) writes:
> 
> Anyone figure out why SideSplitView is so slow compared to SplitView?
> I looked at the code for a few minutes once but didn't see anything
> bad...
> 
I remember reading something to the effect that vertical SplitViews are  
vertical-refresh timing dependent (to scroll smoothly relative to the  
scanning frequency of the monitor), so there may be intentional wait  
states to synchronize and ensure smooth retracing. Horizontal SplitViews,  
obviously, do not suffer this problem, since they track with the scanning  
beam.

--
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)  |
From: silbar@mpx2.lampf.lanl.gov (Dick Silbar)
Newsgroups: comp.sys.next.programmer
Subject: Why does IB need two saves (sometimes)?
Date: 27 Jul 92 22:53:00 GMT
Organization: LAMPF Data Analysis Center, Los Alamos, New Mexico
News-Software: VAX/VMS VNEWS 1.41

Recently I've noticed that, when making changes in an App with Interface 
Builder, I sometimes need to hit the <cmd-s> save command TWICE to get the
little X in the northeast corner to go balck and solid.  I don't recall seeing
that, say, a year ago (but then maybe I never noticed).  Has anyone else
seen this curious behavior?

[Running 2.1 on a Cube.]

   Dick Silbar
From: strauss@Aero.org (Daryll Strauss)
Subject: Re: lines, arcs, curves in RenderMan?
Organization: The Aerospace Corporation
Date: Tue, 28 Jul 1992 20:15:01 GMT

In article <1992Jul28.194952.13564@terminator.cc.umich.edu>, hubt@umich.edu (Hubert Chen) writes:
|> > RenderMan is a scene description language. 
|> 
|> Out of curiosity, I assume that Renderman files are 
|> transferrable between mac and next versions, right?

Yes they work fine.

Newsgroups: comp.sys.next.programmer
From: kieffer@spf.trw.com (Robert Kieffer)
Subject: <Help (Ali?)> How to convert between TIFF data formats
Organization: TRW Inc., Redondo Beach, CA
Date: Fri, 24 Jul 92 21:22:01 GMT

Hi fellow programmers,

Simply put, what's the best way to convert from one TIFF data format into  
another?  Specifically, I'm writing an application that I would like to  
have accept TIFFs of (almost) any flavor,  
meshed/planar/RGB/CMYK/GrayScale/Alpha/non-alpha/etc... and convert them  
into a single format that I can work with: RGB w/ alpha.

Yes, I can punch the code out to reformat the different data types, but it  
seems to me that with all of the NeXT's support for TIFFs, there should be  
a fairly straightforward way of doing this.  I've tried doing the  
following, but with no success:

- Create a new NXBitmapImageRep of the desired format type
- Create an NXImage that uses the new ImageRep ("useRepresentation:")
- LockFocus on the NXImage
- Use the NXImageBitmap() function to draw the source TIFF data into the  
NXImage, (and subsequently into the NXBitmapImageRep in theory)
- UnlockFocus
- The NXBitmapImageRep should contain the reformatted data, right?

.. doesn't seem to work.
Anyway, any light you can throw on this subject will be appreciated.

Thanks,

Robert Kieffer
kieffer@spf.trw.com

P.S. Ali, thanks for answering my question Re: meshed .vs. planar formats.

Newsgroups: comp.sys.next.programmer
From: colin@agincourt.bsd.uchicago.edu (& Garrett)
Subject: multiple databases in Modeler?
Organization: University of Chicago Computing Organizations
Date: Tue, 21 Jul 1992 17:19:23 GMT

Working with the bundled Sybase adaptor, DBModeler doesn't currently (PR2)  
seem capable of building models that have entities from more than one  
Sybase database.  (Tell me if I'm wrong.)  Sybase easily supports joins  
across databases, but if you can't even bring the diverse entities into  
the model, this won't be possible for DBKit.
Does anyone know of plans to make Modeler capable of doing this?

Thanks,
Colin Garrett
colin@delphi.bsd.uchicago.edu  (NeXTMail)
From: alex@cs.umd.edu (Alex Blakemore)
Newsgroups: comp.sys.next.programmer
Subject: Re: shared memory & semaphores
Date: 22 Jul 92 03:17:51 GMT
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742

In article <199221Jul.155203.11220@quay.ie> chris@quay.ie (Christopher Davey) writes:
> 2 Questions:
> 1. Can anyone recommend a good book on the subjects of either or both of
>     * Shared Memory
>     * Semaphores
>    for programming on a NeXT?

This is a general text and not programming language specific, but very good IMHO

  Concurrent Programming
  Principles and Practice
  Gregory Andrews
  Benjamin/Cummins Publishing 1991
  ISBN 0-8053-0086-4
  637 pages

It discusses program verification techniques 
(pretty crucial to at least informally understand for concurrent programming)
shared variables
semaphores
conditional critical regions
monitors
asynchronous message passing
synchronous message passing
RPC
rendezvous

other topics include: barrier synchronization, fine and course grained
atomicity, on the fly garbage collection, split binary semaphores,
scheduling issues, safety and liveness, client server systems.

like the title says there is in depth theory (well explained not cryptic)
examples, design guidelines and rationale and history/discussion of
programming languages including CSP, Occam, Ada, Turing Plus, SR and Linda
that provide support for concurrent programming - the principles obviously
carry over if you use Mach library routines instead.

it may be more than you need if you just want a simple binary semaphore
and need the NeXT appropriate function name, but if you are serious about
concurrent programming - its a neo classic.
-- 
-------------------------------
Alex Blakemore alex@cs.umd.edu
From: hans@dev01 (Hans Peter Geiser)
Newsgroups: comp.sys.next.programmer
Subject: Re: Problems implementing services
Date: 30 Jul 92 08:20:49 GMT

> 
> 	2.  Why doesn't my program show up in the Services menu?  I tried
> 	rebooting with the program in LocalApps, and it doesn't show up in
> 	the workspace like the services for CopyPath do.
> 

Let me suppose all you've done in your program is correct (-:. Then try the  
following: remove the files .applist and .cache in ~/.NeXT/services and reboot.  
This will force your system to update these files and your new service should  
be available. (Dont't ask me why this sometimes is necessary!)

Hans - Peter Geiser
Newsgroups: comp.sys.next.programmer
From: strauss@Aero.org (Daryll Strauss)
Subject: Re: lines, arcs, curves in RenderMan?
Keywords: renderman
Organization: The Aerospace Corporation
Date: Mon, 27 Jul 1992 17:38:58 GMT

In article <1992Jul27.013112.1645@proforma.com>, jgg@proforma.com (J. G. Gregory) writes:
|> I am sure I am missing something, but I open myself to abuse by asking a  
|> potentially stupid question:
|> 
|> How do you draw lines, arcs, or other curves in the 3Dkit?

The short answer is that 2D primitives don't exist in RenderMan. 

3D kit gives you the ability to mix PostScript and RenderMan, but only
in limited ways. You can place the PostScript underneath or above the
RenderMan output. For example, you can place a TIFF file as the
background with a 3D object in front of it, or you can create a 3D
object and annotate it with the PostScript on top. You can't have
PostScript that both occludes and is occluded by the 3D object.

In a purely theoretical sense, the problem is that 2D objects are
invisible in a 3D world. A line, being infinitesimally thin, doesn't
render as any pixels no matter where you place the camera. PostScript
has the same problem with its lines. The PostScript solution is to make
zero with lines be a device dependent thickness such that they image as
one pixel thick.

I suppose that RenderMan could do a similar thing by defining a bunch of
2D (lines, arcs, etc) primitives map them into curved cylinders with a
device dependent thickness that would render to one pixel wide. The
appropriate thickness would have to change depending on the distance the
2D object is from the camera. That might make things easier, but Pixar
would essentially end up implementing all of PostScript in RenderMan. I
also suspect it would really mess up your sense of depth, because your
line would change size within the scene. So, I don't think it makes
sense.

RenderMan is a scene description language. You provide it with the real
data for the scene and it provides a rendering of that scene. You're
asking for a way to mix non real objects into the scene. RenderMan
doesn't support that. You could create the objects (cylinders) yourself,
but that varying width would make life difficult. You could query the
camera in the cylinders renderSelf method to perform a mapping from
screen coordinates to world coordinate over the pixels where the
cylinder will be, and then use that to set the width of the cylinder,
but that's a really ugly hack. I'd suggest that if the
foreground/background PostScript doesn't do what you want, then you need
to rethink what you are trying to do in RenderMan.
From: low00001@bullnext.mc.duke.edu (Richard Low)
Newsgroups: comp.sys.next.programmer
Subject: Finding the path to an .app
Date: 30 Jul 92 13:23:17 GMT

I have several Rich Text documents I want to include in my  
application and, at appropriate points, load them into Scrollviews.

I have two questions:

1.  How do I "include" these supporting files into my resulting .app  
file so they are always there? (I'm using Project Builder)

2.  When I want to load the file, how can I reference the file in my  
application as a relative path starting where ever the .app file is  
located?  Right now I'm just specifying an absolute path to load the  
file.

Is there something similar to the home directory ~/ reference for an  
application?  I suppose I could always get the current working  
directory and do it the hard way.

Thanks for any help.


Richard Low
Duke University Medical Center
low00001@bullnext.mc.duke.edu
NeXT Mail welcome


-- NewsGrazer, a NeXTstep(tm) news reader, posting --
M>UQR=&8P7&%N<VE[7&9O;G1T8FQ<9C!<9FUO9&5R;B!#;W5R:65R.WT*7&UA
M<F=L,3(P"EQM87)G<C$R,`I<<&%R9%QT>#$S-#1<='@R-C@X7'1X-#`S,EQT
M>#4S-S9<='@V-S(P7'1X.#`V-%QT>#DT,#A<='@Q,#<U,EQT>#$R,#DV7'1X
M,3,T-#!<9C!<8C!<:3!<=6QN;VYE7&9S,CA<9F,P7&-F,"!)(&AA=F4@<V5V
M97)A;"!2:6-H(%1E>'0@9&]C=6UE;G1S($D@=V%N="!T;R!I;F-L=61E(&EN
M(&UY(&%P<&QI8V%T:6]N(&%N9"P@870@87!P<F]P<FEA=&4@<&]I;G1S+"!L
M;V%D('1H96T@:6YT;R!38W)O;&QV:65W<RY<"EP*22!H879E('1W;R!Q=65S
M=&EO;G,Z7`I<"C$N("!(;W<@9&\@22`B:6YC;'5D92(@=&AE<V4@<W5P<&]R
M=&EN9R!F:6QE<R!I;G1O(&UY(')E<W5L=&EN9R`N87!P(&9I;&4@<V\@=&AE
M>2!A<F4@86QW87ES('1H97)E/R`H22=M('5S:6YG(%!R;VIE8W0@0G5I;&1E
M<BE<"EP*,BX@(%=H96X@22!W86YT('1O(&QO860@=&AE(&9I;&4L(&AO=R!C
M86X@22!R969E<F5N8V4@=&AE(&9I;&4@:6X@;7D@87!P;&EC871I;VX@87,@
M82!R96QA=&EV92!P871H('-T87)T:6YG('=H97)E(&5V97(@=&AE("YA<'`@
M9FEL92!I<R!L;V-A=&5D/R`@4FEG:'0@;F]W($DG;2!J=7-T('-P96-I9GEI
M;F<@86X@86)S;VQU=&4@<&%T:"!T;R!L;V%D('1H92!F:6QE+EP*7`I)<R!T
M:&5R92!S;VUE=&AI;F<@<VEM:6QA<B!T;R!T:&4@:&]M92!D:7)E8W1O<GD@
M?B\@<F5F97)E;F-E(&9O<B!A;B!A<'!L:6-A=&EO;C\@($D@<W5P<&]S92!)
M(&-O=6QD(&%L=V%Y<R!G970@=&AE(&-U<G)E;G0@=V]R:VEN9R!D:7)E8W1O
M<GD@86YD(&1O(&ET('1H92!H87)D('=A>2Y<"EP*5&AA;FMS(&9O<B!A;GD@
M:&5L<"Y<"EP*7`I2:6-H87)D($QO=UP*1'5K92!5;FEV97)S:71Y($UE9&EC
M86P@0V5N=&5R7`IL;W<P,#`P,4!B=6QL;F5X="YM8RYD=6ME+F5D=5P*3F58
35"!-86EL('=E;&-O;65<"@I]"D!B
`
Newsgroups: comp.sys.next.programmer
From: sanguish@digifix.com (Scott Anguish)
Subject: Re: Accessing the values of variables in other objects?
Reply-To: sanguish@digifix.com
Organization: Digital Fix Development
Date: Wed, 22 Jul 1992 00:21:21 GMT

Lloyd P. Goldwasser writes
> Here's a simple Objective-C question with, I suspect, a simple yes-or-no  
> answer.
> 
> Is it possible to access directly the values of variables in other objects?

	The best way is to do it with the method returns value style.

	Otherwise, you aren't really working in a very Object Oriented way,  
plus you don't get the benefit of being able to change the variable type,  
without having to change anything in the objects that actually use it.

-- 
- Scott Anguish -
sanguish@digifix.com (NextMail)

Newsgroups: comp.sys.next.programmer