Thanks all to who replied for taking the time to sort me out. Your
replies have and will be helpful to my understanding of what goes on.
I'll let it sink into my head a bit more in the morning (It's 3:16am
here in Sydney).
Kind regards to all,
Jason
in order for modelObject1 to talk to modelObject2, it must have
a reference to that object, similar to how myControllerObject has a
reference to both modelObject1 and modelObject2 which you use to send
messages.
+Clint
On Wed, Feb 11, 2009 at 8:42 AM, Jason Wiggins jwigg...@optusnet.com.auwrote:
Say I have myControllerObject. I alloc and init modelObject1 and also
modelObject2.
How do I access the ivars of modelObject1 from modelObject2 and vice versa?
modelObject1 and modelObject 2 both exist somewhere in memory, so how do I
get a pointer to or make a connection between these two
Hi Clint (and I.S.)
Thanks for your replies. I understand MVC and am happy with that now
that a few thoughts have been cleared for me (thanks I.S.). OK, I now
understand that and object knows nothing about its parent. Cool. I
thought that was the case, but I wasn't convinced.
Now, I
On Wed, Feb 11, 2009 at 10:42 AM, Jason Wiggins
jwigg...@optusnet.com.au wrote:
I understand MVC ...
Sorry, but I disagree. You've still got some concepts missing. :-)
Now, I understand I need a pointer to the other object, but I am failing
(in a BIG way) in understanding HOW to get it
+jmunson=his@lists.apple.com [mailto:cocoa-dev-
bounces+jmunson=his@lists.apple.com] On Behalf Of Jason Wiggins
Sent: Wednesday, February 11, 2009 10:43 AM
To: Clint Shryock; I. Savant
Cc: Cocoa-Dev List
Subject: Re: Communication between objects
Hi Clint (and I.S.)
Thanks for your
On Feb 11, 2009, at 9:42 AM, Jason Wiggins wrote:
Now, I understand I need a pointer to the other object, but I am
failing (in a BIG way) in understanding HOW to get it or create it.
myControllerObject has a pointer to it's children because it knows
about it because it created it.
But if
On Feb 11, 2009, at 10:42 AM, Jason Wiggins wrote:
But if modelObject1 doesn't know modelObject2 even exists, how can I
create a pointer to it? Where do I get this reference from?
If you want modelObject1 to have an ivar that refers to modelObject2,
the typical ways to make the connection
OK, now I *think* I've got a bit idea. What I've been trying to do is
get an ivar from object1 into object2 *directly* without using the
controller as a middleman
Is it true that I have to set up properties (using Objc 2) to get and
set the ivars *via* the controller? I just did that and got
On 11-Feb-09, at 11:14 AM, Jason Wiggins wrote:
OK, now I *think* I've got a bit idea. What I've been trying to do
is get an ivar from object1 into object2 *directly* without using
the controller as a middleman
Is it true that I have to set up properties (using Objc 2) to get
and set the
On 12 Feb 2009, at 1:42 am, Jason Wiggins wrote:
How do I access the ivars of modelObject1 from modelObject2 and vice
versa?
Others have had plenty of useful advice to give on the general
question, but in your original, this stood out for me.
The answer here is: YOU DON'T. ivar stands
On Feb 11, 2009, at 6:26 PM, Graham Cox wrote:
It's important to understand this difference, which is why I'm
harping on about it - terminology matters.
I usually do harp on such things, but today I didn't have the
heart. I'm busy, stressed, and hoping to avoid a flame-war from
12 matches
Mail list logo