Re: Commmunication between classes....
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.