• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Communication between objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Communication between objects


  • Subject: Communication between objects
  • From: Jason Wiggins <email@hidden>
  • Date: Thu, 12 Feb 2009 01:42:32 +1100

Hi all,

Can someone please help me with this, I'm tearing my hair out!

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 object?

Also, how do I access the ivars of myControllerObject from either modelObject1 or modelObject2?

Is it possible to find out from myObject1 or myObject2 who init and alloc them?

From what I've read to far (Objective C-2.0 Programming Language and Cocoa Fundamentals Guide) I've been unable to find the answer to these questions.
I can send messages from myControllerObject to myObject1 or myObject2 and get returned information no worries, that I do get.


Thanks,

Regards,
Jason
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Communication between objects
      • From: Graham Cox <email@hidden>
    • Re: Communication between objects
      • From: "I. Savant" <email@hidden>
    • Re: Communication between objects
      • From: Clint Shryock <email@hidden>
  • Prev by Date: Re: How resize a button or label to fit its content (at runtime)?
  • Next by Date: RE: How resize a button or label to fit its content (at runtime)?
  • Previous by thread: Re: How resize a button or label to fit its content (at runtime)?
  • Next by thread: Re: Communication between objects
  • Index(es):
    • Date
    • Thread