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 (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 arch...@mail-archive.com

Reply via email to