• 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: iPhone: Accessing variable from another view controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iPhone: Accessing variable from another view controller


  • Subject: Re: iPhone: Accessing variable from another view controller
  • From: Luke the Hiesterman <email@hidden>
  • Date: Fri, 21 Aug 2009 06:58:58 -0700


On Aug 21, 2009, at 6:53 AM, Eric E. Dolecki wrote:

However, how does one access class properties from one class to another (not using app delegate) - without making an instance of it - or do you need to do that? Looking for a singleton implementation.

Well, properties are, like instance methods, only applicable to individual objects, they don't apply to the class itself. If you have a singleton object, then the way to access it is with a class convenience method like +sharedInstance. Read up on singleton classes here:


http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaObjects/CocoaObjects.html#//apple_ref/doc/uid/TP40002974-CH4-SW32

Luke
_______________________________________________

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


References: 
 >Re: iPhone: Accessing variable from another view controller (From: "email@hidden" <email@hidden>)
 >Re: iPhone: Accessing variable from another view controller (From: Luke the Hiesterman <email@hidden>)
 >Re: iPhone: Accessing variable from another view controller (From: "Eric E. Dolecki" <email@hidden>)
 >Re: iPhone: Accessing variable from another view controller (From: "Eric E. Dolecki" <email@hidden>)

  • Prev by Date: Re: iPhone: Accessing variable from another view controller
  • Next by Date: persistentDomainNames
  • Previous by thread: Re: iPhone: Accessing variable from another view controller
  • Next by thread: Re: iPhone: Accessing variable from another view controller
  • Index(es):
    • Date
    • Thread