Search code examples
objective-cxcode4properties

How to create a reference from one class passed to anoher?


I have a NSMutableArray (called listOfSites) that is created and used in classA.m. I want to reference that same instance from classB.m so I get the current contents of listOfSites. I understand I need to create a reference in classA which classB can then reference.

What do I need to do to accomplish this?


Solution

  • Wound up using a singleton, which does the job very well... .thank you both for your time and responses.