• 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
Re: Commmunication between classes....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Commmunication between classes....


  • Subject: Re: Commmunication between classes....
  • From: Ondra Cada <email@hidden>
  • Date: Sun, 1 Sep 2002 18:26:42 +0200

On Sunday, September 1, 2002, at 06:10 , Albert Atkinson wrote:

I have a feeling I am doing this way wrong...can someone give me a suggestion?

Sure. Re-read the ObjC documentation, with focus on the class/instance distinction.

You very probably want something generally on lines

#import "Blinky.h"

@interface Controller {
Blinky blinky;
...
}
...
@end
...
@implementation Controller
-init {
...
blinky=[[Blinky alloc] init];
...
}
...
-(IBAction)saveChanges:(id)sender {
[self save];
[blinky doAllBlinky];
}
...

Incidentally, only some methods of specific signature are actions. The one of yours (doAllBlinky) is not.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Commmunication between classes.... (From: Albert Atkinson <email@hidden>)

  • Prev by Date: Commmunication between classes....
  • Next by Date: Re: Commmunication between classes....
  • Previous by thread: Commmunication between classes....
  • Next by thread: Re: Commmunication between classes....
  • Index(es):
    • Date
    • Thread