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 |
Modified +[SBApplication applicationWithURL:]
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 |
Modified SBApplication.delegate
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 |
Modified -[SBApplication initWithURL:]
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 |
Modified -[SBElementArray get]
Declaration | |
---|---|
From | - (NSArray *)get |
To | - (NSArray<ObjectType> * _Nullable)get |
Modified -[SBElementArray objectAtLocation:]
Declaration | |
---|---|
From | - (id)objectAtLocation:(id)location |
To | - (ObjectType _Nonnull)objectAtLocation:(id _Nonnull)location |
Modified -[SBElementArray objectWithID:]
Declaration | |
---|---|
From | - (id)objectWithID:(id)identifier |
To | - (ObjectType _Nonnull)objectWithID:(id _Nonnull)identifier |
Modified -[SBElementArray objectWithName:]
Declaration | |
---|---|
From | - (id)objectWithName:(NSString *)name |
To | - (ObjectType _Nonnull)objectWithName:(NSString * _Nonnull)name |
SBObject.h
Modified -[SBObject elementArrayWithCode:]
Declaration | |
---|---|
From | - (SBElementArray *)elementArrayWithCode:(DescType)code |
To | - (SBElementArray * _Nonnull)elementArrayWithCode:(DescType)code |
Modified -[SBObject get]
Declaration | |
---|---|
From | - (id)get |
To | - (id _Nullable)get |
Modified -[SBObject init]
Declaration | |
---|---|
From | - (id)init |
To | - (instancetype _Nonnull)init |
Modified -[SBObject initWithData:]
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 |
Modified -[SBObject initWithProperties:]
Declaration | |
---|---|
From | - (id)initWithProperties:(NSDictionary *)properties |
To | - (instancetype _Nonnull)initWithProperties:(NSDictionary * _Nonnull)properties |
Modified -[SBObject lastError]
Declaration | |
---|---|
From | - (NSError *)lastError |
To | - (NSError * _Nullable)lastError |
Modified -[SBObject propertyWithClass:code:]
Declaration | |
---|---|
From | - (SBObject *)propertyWithClass:(Class)cls code:(AEKeyword)code |
To | - (SBObject * _Nonnull)propertyWithClass:(Class _Nonnull)cls code:(AEKeyword)code |
Modified -[SBObject propertyWithCode:]
Declaration | |
---|---|
From | - (SBObject *)propertyWithCode:(AEKeyword)code |
To | - (SBObject * _Nonnull)propertyWithCode:(AEKeyword)code |
Modified -[SBObject sendEvent:id:parameters:]
Declaration | |
---|---|
From | - (id)sendEvent:(AEEventClass)eventClass id:(AEEventID)eventID parameters:(DescType)firstParamCode, ... |
To | - (id _Nonnull)sendEvent:(AEEventClass)eventClass id:(AEEventID)eventID parameters:(DescType)firstParamCode, ... |
Modified -[SBObject setTo:]
Declaration | |
---|---|
From | - (void)setTo:(id)value |
To | - (void)setTo:(id _Nullable)value |