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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to