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:29:11 +1000
On 19/05/2008, at 3:22 PM, Andrew Farmer wrote:
On 18 May 08, at 22:06, Brett Powley wrote:
MyAppDelgate *ad = [NSApp delegate];
then do something with [ad myMutableArray]
Incorrect. You don't get accessors for instance variables
automatically like that.
Well yes, but I assumed that his problem was that he didn't know how
to get at the application delegate from his views, not that he didn't
know how to write accessors. (How do you know that myMutableArray
isn't an accessor method anyway?)
_______________________________________________
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