Documentation Archive Developer
Search

ScreenSaver Changes for Objective-C

ScreenSaver

ScreenSaverDefaults.h

Declaration
From
+ (id)defaultsForModuleWithName:(NSString *)inModuleName
To
+ (instancetype _Nullable)defaultsForModuleWithName:(NSString * _Nonnull)inModuleName

ScreenSaverView.h

Removed -[ScreenSaverView isAnimating]
Removed -[ScreenSaverView isPreview]
Declaration
From
- (NSTimeInterval)animationTimeInterval
To
@property(atomic) NSTimeInterval animationTimeInterval

Declaration
From
- (NSWindow *)configureSheet
To
- (NSWindow * _Nullable)configureSheet

Modified -[ScreenSaverView initWithFrame:]
Declaration
From
- (id)initWithFrame:(NSRect)frame
To
- (instancetype _Nullable)initWithFrame:(NSRect)frame

DeclarationDesignated Initializer
From
- (id)initWithFrame:(NSRect)frame isPreview:(BOOL)isPreview
--
To
- (instancetype _Nullable)initWithFrame:(NSRect)frame isPreview:(BOOL)isPreview
yes