Re: Using a variable in different class
Re: Using a variable in different class
- Subject: Re: Using a variable in different class
- From: Georg Tuparev <email@hidden>
- Date: Tue, 28 Aug 2001 17:23:19 +0200
Annie,
You are obviously mixing several things, but if I understand you
correctly (something I'm not very sure) you need to do several things.
- Fix your design in a way that objects from one nib do not contain any
references to objects from another nib
- add accessor methods for user keys in UserInfoController
- add a target in Account and connect it to an instance of
UserInfoController
If you insist to do a direct connection (indeed, very bad thing to do),
you still can:
- make userKeys a public ivar
- create & initialize a reference to point to UserInfoController (and
call it userInfoController)
- access the array with a statement like: userInfoController->userKeys
On Tuesday, August 28, 2001, at 09:16 AM, Annie Felix wrote:
I have an application in which there are two nib
files. In one nib file, there are two classes
1.MyUserInfo 2.MyUserInfoController.
MyUserInfoController has a variable NSMutableArray
*userkeys.
In another nibfile I have a class Account with a
tableview.Iwant to set the noofrowsintableview based
on the count of userKeys of first nib file.
I have included @class in header file of Account and
import statement in .m file.But it gives the error
userKeys undeclared.
Can anyone identify what is wrong.
Georg Tuparev
Tuparev Technologies
Klipper 13
1186 VR Amstelveen
The Netherlands
Mobile: +31-6-55798196