• 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
Getting a variable from another class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting a variable from another class


  • Subject: Getting a variable from another class
  • From: Matthew Egan <email@hidden>
  • Date: Tue, 14 Mar 2006 21:05:31 +1100

This is a Cocoa 101 question but ...

Say I have two classes -

RAID.m   and   RAIDstatus.m

And I have a variable in RAID.m that holds a color.

How do I get RAIDstatus.m to find out what is in that variable, held in another class (RAID.m) ?

Is it possible to get the contents of a variable from another class?



Thanks



Matt Egan



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


  • Follow-Ups:
    • Re: Getting a variable from another class
      • From: Ofri Wolfus <email@hidden>
    • Re: Getting a variable from another class
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Progress TextField as like Safari
  • Next by Date: Re: NSTask to do commandline stuff
  • Previous by thread: Re: Progress TextField as like Safari
  • Next by thread: Re: Getting a variable from another class
  • Index(es):
    • Date
    • Thread