• 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: ObjC static member variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ObjC static member variable


  • Subject: Re: ObjC static member variable
  • From: j o a r <email@hidden>
  • Date: Thu, 10 Apr 2008 12:48:53 -0700


On Apr 10, 2008, at 12:42 PM, vance wrote:
Yes that works but then it becomes a global variable.


It's static, so it's local to the module being compiled.


I was wondering if ObjC can handle static member variables. If not I will have to hack it up and declare the variable outside of the class


No, ObjC doesn't have any support for static member variables.

j o a r


_______________________________________________

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: ObjC static member variable
      • From: j o a r <email@hidden>
References: 
 >ObjC static member variable (From: vance <email@hidden>)
 >RE: ObjC static member variable (From: "Rama Krishna" <email@hidden>)
 >Re: ObjC static member variable (From: vance <email@hidden>)

  • Prev by Date: Re: ObjC static member variable
  • Next by Date: Re: ObjC static member variable
  • Previous by thread: Re: ObjC static member variable
  • Next by thread: Re: ObjC static member variable
  • Index(es):
    • Date
    • Thread