• 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
Object References in Obj-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Object References in Obj-C
      • From: Clark Cox <email@hidden>
    • Re: Object References in Obj-C
      • From: Ondra Cada <email@hidden>
    • Re: Object References in Obj-C
      • From: Charilaos Skiadas <email@hidden>
  • Prev by Date: Re: RAM Location and Size in 64bits Machines
  • Next by Date: Re: RAM Location and Size in 64bits Machines
  • Previous by thread: Re: Manual KVO quirks with NSDocument and NSWindowController
  • Next by thread: Re: Object References in Obj-C
  • Index(es):
    • Date
    • Thread