• 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
How can I set instance variables within a class?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I set instance variables within a class?


  • Subject: How can I set instance variables within a class?
  • From: Wayne Bishop <email@hidden>
  • Date: Mon, 21 Sep 2009 12:38:39 -0700

Hi There;

I am attempting to build a basic 3-tiered architecture for an app.  I come from a .NET background and am new to Objective-C and iPhone development.  I am looking for a technique that will allow me track the state of a class in case of a specific error or failure. In .NET one can create class properties which can be set by the class itself.  This technique works great for identifying if a database connection fails or if section of code can't connect to a web service.  When I attempt to do the same thing in Xcode I get the warning message:

 "warning:instance variable accessed in class method"

 Does anyone have any techniques / solutions for accomplishing what I am looking to do?

 Thanks in advance


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How can I set instance variables within a class?
      • From: Jens Alfke <email@hidden>
    • Re: How can I set instance variables within a class?
      • From: David Dunham <email@hidden>
  • Prev by Date: Re: Using 3.1's documentation window
  • Next by Date: Re: How can I set instance variables within a class?
  • Previous by thread: Re: Using 3.1's documentation window
  • Next by thread: Re: How can I set instance variables within a class?
  • Index(es):
    • Date
    • Thread