Re: Help with "Messages without a matching method signature..." issue
Re: Help with "Messages without a matching method signature..." issue
- Subject: Re: Help with "Messages without a matching method signature..." issue
- From: Brad Gibbs <email@hidden>
- Date: Tue, 22 Jul 2008 12:41:30 -0700
It's in the file, it's just that the warning message pushed the brace
down and out of my select -> copy -> paste to e-mail. Sorry for the
confusion.
On Jul 22, 2008, at 12:35 PM, Steve Bird wrote:
On Jul 22, 2008, at 3:28 PM, Brad Gibbs wrote:
Below is the offending code:
Class 1 - This class provides IBActions, each of which calls the
sendMSG: toPort: method of Class 2. The arguments for the methods
in this class are used to construct NSStrings in Class 2.
Class 2 - The arguments sent from a button in Class 1 provide two
strings, which are used to compose a new NSString, which is sent to
another device on the network.
@interface Class1 : NSObject {
}
- (IBAction)powerOn:(id)sender;
@implementation Class1
- (IBAction)powerOn:(id)sender {
[Class2 sendMSG:@"P1P1" toPort:@"1"];
--- Where's the closing brace here?
@interface Class2 : NSObject {
}
- (NSString *)sendString:(NSString *)stringToSend;
- (void)sendMSG:(NSString *)string toPort:(NSString *)port;
----------------------------------------------------------------
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
www.Culverson.com (toll free) 1-877-676-8175
_______________________________________________
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