• 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
basic data passing question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

basic data passing question


  • Subject: basic data passing question
  • From: William Irving Zumwalt <email@hidden>
  • Date: Mon, 16 Jan 2006 15:56:49 -0600

Hi all, I'm very new to obj-c and need some help on how this is
supposed to work.

I have two controllers.

ControllerA (for gui viewA) creates and populates an array of data classes.

ControllerB (for gui viewB) is responsible for running operations on
those data classes.

How do I tie the two together? Or, how do I get the ControllerA class
to pass the data array to ControllerB so that ControllerA can operate
on the data?

I added a "- (NSMutableArray*) getData" method to ControllerB, but not
sure how ControllerA should call it ... or if I'm even going about
this correctly. I'd like not what works, but a best practice or how
this should really be done kind of answer.

Any help much appreciated.
 _______________________________________________
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: basic data passing question
      • From: Miguel Sanchez <email@hidden>
  • Prev by Date: Re: NSButton not responding to mouseEntered: ?
  • Next by Date: Re: [Core Data] Improve save performance ?
  • Previous by thread: Core Data & Threads Redux
  • Next by thread: Re: basic data passing question
  • Index(es):
    • Date
    • Thread