Re: Getting a variable from another class
Re: Getting a variable from another class
- Subject: Re: Getting a variable from another class
- From: mmalcolm crawford <email@hidden>
- Date: Tue, 14 Mar 2006 02:32:20 -0800
On Mar 14, 2006, at 2:05 AM, Matthew Egan wrote:
Say I have two classes -
RAID.m and RAIDstatus.m
And I have a variable in RAID.m that holds a color.
How do I get RAIDstatus.m to find out what is in that variable,
held in another class (RAID.m) ?
Is it possible to get the contents of a variable from another class?
To summarise, you typically implement an accessor method in RAID that
you invoke on an instance of RAID from a method in RAIDstatus.
A detailed answer is given in <http://developer.apple.com/
documentation/Cocoa/Conceptual/CocoaFundamentals/index.html>, in
particular in "Cocoa Objects".
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden