Re: First trials in Cocoa app
Re: First trials in Cocoa app
- Subject: Re: First trials in Cocoa app
- From: Dave Carrigan <email@hidden>
- Date: Wed, 8 Sep 2010 21:52:12 -0700
On Sep 8, 2010, at 9:40 PM, Jeff Laing wrote:
>>> If that's not possible, how can I define a function that can reach the
>> objects of my application? The ViewController is stored in the
>> ApplicationDeletegate, but I can't find any reference to that object.
>
> Ummm, is this really hard?
>
> id MyAppDelegate = [[UIApplication sharedApplication] delegate];
>
> Am I missing some subtlety here?
No, I missed that part about his VC being stored in the app delegate. So, yeah, if he isn't able to pass context to the C library, he can easily get to the VC in that way rather than resorting to a global._______________________________________________
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