Documentation Archive Developer
Search

ScriptingBridge Changes for Objective-C

ScriptingBridge

SBApplication.h

Declaration
From
+ (id)applicationWithBundleIdentifier:(NSString *)ident
To
+ (__kindof SBApplication * _Nullable)applicationWithBundleIdentifier:(NSString * _Nonnull)ident

Declaration
From
+ (id)applicationWithProcessIdentifier:(pid_t)pid
To
+ (__kindof SBApplication * _Nullable)applicationWithProcessIdentifier:(pid_t)pid

Declaration
From
+ (id)applicationWithURL:(NSURL *)url
To
+ (__kindof SBApplication * _Nullable)applicationWithURL:(NSURL * _Nonnull)url

Declaration
From
- (Class)classForScriptingClass:(NSString *)className
To
- (Class _Nullable)classForScriptingClass:(NSString * _Nonnull)className

Declaration
From
@property(strong) id<SBApplicationDelegate> delegate
To
@property(strong, nullable) id<SBApplicationDelegate> delegate

Declaration
From
- (id)initWithBundleIdentifier:(NSString *)ident
To
- (__kindof SBApplication * _Nullable)initWithBundleIdentifier:(NSString * _Nonnull)ident

Declaration
From
- (id)initWithProcessIdentifier:(pid_t)pid
To
- (__kindof SBApplication * _Nullable)initWithProcessIdentifier:(pid_t)pid

Declaration
From
- (id)initWithURL:(NSURL *)url
To
- (__kindof SBApplication * _Nullable)initWithURL:(NSURL * _Nonnull)url

Declaration
From
- (id)eventDidFail:(const AppleEvent *)event withError:(NSError *)error
To
- (id _Nonnull)eventDidFail:(const AppleEvent * _Nonnull)event withError:(NSError * _Nonnull)error

SBElementArray.h

Declaration
From
- (NSArray *)arrayByApplyingSelector:(SEL)selector
To
- (NSArray<id> * _Nonnull)arrayByApplyingSelector:(SEL _Nonnull)selector

Declaration
From
- (NSArray *)arrayByApplyingSelector:(SEL)aSelector withObject:(id)argument
To
- (NSArray<id> * _Nonnull)arrayByApplyingSelector:(SEL _Nonnull)aSelector withObject:(id _Nonnull)argument

Declaration
From
- (NSArray *)get
To
- (NSArray<ObjectType> * _Nullable)get

Declaration
From
- (id)objectAtLocation:(id)location
To
- (ObjectType _Nonnull)objectAtLocation:(id _Nonnull)location

Declaration
From
- (id)objectWithID:(id)identifier
To
- (ObjectType _Nonnull)objectWithID:(id _Nonnull)identifier

Declaration
From
- (id)objectWithName:(NSString *)name
To
- (ObjectType _Nonnull)objectWithName:(NSString * _Nonnull)name

SBObject.h

Declaration
From
- (SBElementArray *)elementArrayWithCode:(DescType)code
To
- (SBElementArray * _Nonnull)elementArrayWithCode:(DescType)code

Declaration
From
- (id)get
To
- (id _Nullable)get

Declaration
From
- (id)init
To
- (instancetype _Nonnull)init

Declaration
From
- (id)initWithData:(id)data
To
- (instancetype _Nonnull)initWithData:(id _Nonnull)data

Declaration
From
- (id)initWithElementCode:(DescType)code properties:(NSDictionary *)properties data:(id)data
To
- (instancetype _Nonnull)initWithElementCode:(DescType)code properties:(NSDictionary<NSString *,id> * _Nullable)properties data:(id _Nullable)data

Declaration
From
- (id)initWithProperties:(NSDictionary *)properties
To
- (instancetype _Nonnull)initWithProperties:(NSDictionary * _Nonnull)properties

Declaration
From
- (NSError *)lastError
To
- (NSError * _Nullable)lastError

Declaration
From
- (SBObject *)propertyWithClass:(Class)cls code:(AEKeyword)code
To
- (SBObject * _Nonnull)propertyWithClass:(Class _Nonnull)cls code:(AEKeyword)code

Declaration
From
- (SBObject *)propertyWithCode:(AEKeyword)code
To
- (SBObject * _Nonnull)propertyWithCode:(AEKeyword)code

Declaration
From
- (id)sendEvent:(AEEventClass)eventClass id:(AEEventID)eventID parameters:(DescType)firstParamCode, ...
To
- (id _Nonnull)sendEvent:(AEEventClass)eventClass id:(AEEventID)eventID parameters:(DescType)firstParamCode, ...

Declaration
From
- (void)setTo:(id)value
To
- (void)setTo:(id _Nullable)value