konradsjohn
konradsjohn

Reputation: 1

Expected Identifiers '(' before 'Synthesize"

What does the '(' mean?

And the code im having trouble with is

#import <UIKit/UIKit.h>

@interface ZelNoteAppDelegate : NSObject <UIApplicationDelegate> {        
   UIWindow *window;        
   UITextField *textfield;      
   UITextView *textview;        
}

@property (nonatomic, retain) IBOutlet UIWindow *window;    
(@synthesize, @dynamic UITextField *textfield;    
@synthesize, @dynamic UITextView *textview;    
@end

Upvotes: 0

Views: 592

Answers (1)

Jano
Jano

Reputation: 63667

#import <UIKit/UIKit.h>

@interface ZelNoteAppDelegate : NSObject <UIApplicationDelegate> {        
   UIWindow *window;        
   UITextField *textfield;      
   UITextView *textview;        
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) UITextField *textfield;    
@property (nonatomic, retain) UITextView *textview;    
@end

@interface ZelNoteAppDelegate 
@synthesize window, textField, textView;
// ...
@end

It would help you to read again The Objective-C Programming Language.

Upvotes: 1

Related Questions