Re: Newbie question...
Re: Newbie question...
- Subject: Re: Newbie question...
- From: Ondra Cada <email@hidden>
- Date: Mon, 18 Feb 2002 15:45:46 +0100
stef11,
>
>>>>> email@hidden (s) wrote at Sun, 17 Feb 2002 19:22:15 -0500:
s> How should you pass information across two classes?
Start by learning to distinguish "class" and "instance" properly. I bet you
wanted to pass information between two instances.
s> Should there be a
s> friend function which is called by one class and gives the info to the
s> other? Or should some other approach be used? If a friend class should
s> be used here, what' would the syntax be in objective-c? (i'm new to the
s> language...)
Nope, forget those C++ uglies. Just use plain messages -- see documentation,
ObjC.pdf.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.