Header Differences
Header Differences
- Subject: Header Differences
- From: Chunk 1978 <email@hidden>
- Date: Mon, 25 May 2009 00:51:45 -0400
i'm following a tutorial that lists the header file like this:
-=-=-=-=-
@interface PickersAppDelegate : NSObject <UIApplicationDelegate>
{
IBOutlet UIWindow *window;
IBOutlet UITabBarController *rootController;
}
@property (nonatomic, retain) UIWindow *window;
@property (nonatomic, retain) UITabBarController *rootController;
-=-=-=-=-
but IB automatically sets the IBOutlet as part of the @property and
not in the declaration struct like this:
-=-=-=-=-
@interface PickersAppDelegate : NSObject <UIApplicationDelegate>
{
UIWindow *window;
UITabBarController *rootController;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UITabBarController *rootController;
-=-=-=-=-
is there a difference? which one should be used? also, just to clear
things up for me a bit, is it safe to assume that everything listed in
the declaration struct should also have getter and setter methods with
@property/@synthesize?
_______________________________________________
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