UIWIndow not announced iOS 4.3 AppDelegate

I just downloaded the latest iOS SDK (4.3) and noticed that when I launch a window-based application, UIWindow is not declared in the header file, it is only referred to as a property.

#import <UIKit/UIKit.h>

@interface GleekAppDelegate : NSObject <UIApplicationDelegate> {
    IBOutlet UILabel *label;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;

@end

I would expect and remember from the old SDKs that the above code should be

#import <UIKit/UIKit.h>

@interface GleekAppDelegate : NSObject <UIApplicationDelegate> {
    IBOutlet UILabel *label;

    UIWindow *window;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;

@end

Is this just a new SDK feature?

thank

+3
source share
1 answer

In the new Objective-C environment, it is possible to synthesize ivars without explicitly declaring them. From the time difference in an Objective-C programming language :

, (. " " Objective-C ). : .

...

, , .

Objective-C :

  • 64- Mac OS X 10.5 .

  • (32- Mac OS X) .

:

+3

All Articles