Reference Passing - Objective C

hanleyhansen's Avatar, Join Date: Jan 2008
Pro contributor
Can someone please explain reference passing specifically for Objective C? Explaining it in general would help too. Basically I have added a class in my program but this class needs to use the variables and write to the objects in main ViewController (it's for an iOS application). How can i share these variables and objects between the classes? What is the proper way of passing reference (i think that is the proper term for it).
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Objective C is not the same as either C or C++ so you'd probably better off asking in an iForum. Speaking personally, I have no idea, and no chance to get into iObj-C as it's a Mac-OS-only IDE, and I have no need for a Mac.
0
sura's Avatar
Banned
As xpi0t0s told Objective C is not the same as c or c++.