Re: Accessing variables across classes
Re: Accessing variables across classes
- Subject: Re: Accessing variables across classes
- From: Brett Powley <email@hidden>
- Date: Mon, 19 May 2008 15:06:41 +1000
MyAppDelgate *ad = [NSApp delegate];
then do something with [ad myMutableArray]
Cheers,
Brett
On 19/05/2008, at 3:03 PM, Joey None wrote:
Hello all,
I hope someone can help me with this.
I have my ApplicationDelegate which contains a couple of
NSMutableArrays with data in them.
Then I have a few CustomNSViews classes which I have sub-classed.
I need to access the NSMutableArrays declared on the AppDelegate
class from the NSView sub-classes I have created.
Any ideas on how to do this? I know there has to be a way and have
spent all night looking for it but so far no luck.
Thank you very much for all your help!
JC
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
@process.com.au
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden