Object References in Obj-C
Object References in Obj-C
- Subject: Object References in Obj-C
- From: Iain Delaney <email@hidden>
- Date: Mon, 23 May 2005 10:49:44 -0400
Hi all,
Here's my situation: My AppController has a dictionary of
objects. One of these objects creates a worker object that may need
to get information from another object in the dictionary. Do Obj-C
objects know anything about the object that instantiated them? Or
should I pass a pointer to the parent or AppController around?
Right now, I've got a member variable of type (AppController *)
MyApp that I set with self from inside the AppController class, but
I'm not that comfortable with that. Is this the right way to do
things, or is there a better way?
Iain
_______________________________________________
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