• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: First trials in Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: First trials in Cocoa app
      • From: Remco Poelstra <email@hidden>
References: 
 >First trials in Cocoa app (From: Remco Poelstra <email@hidden>)
 >Re: First trials in Cocoa app (From: Dave Carrigan <email@hidden>)
 >RE: First trials in Cocoa app (From: Jeff Laing <email@hidden>)

  • Prev by Date: RE: First trials in Cocoa app
  • Next by Date: scrolling content view resizes visibly but bounds and frame don't change
  • Previous by thread: RE: First trials in Cocoa app
  • Next by thread: Re: First trials in Cocoa app
  • Index(es):
    • Date
    • Thread