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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to