
iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCIDisposableBase
@interface SCIDisposableBase : NSObject <ISCIDisposable>
Defines base class for the disposable object.
-
Helper method which checks if disposable is null before disposing.
Declaration
Objective-C
+ (void)tryDispose:(nonnull id<ISCIDisposable>)disposable;
Parameters
disposable
The disposable instance.
-
Helper method which disposes an array of disposables.
Declaration
Objective-C
+ (void)tryDisposeArray:(nonnull NSArray<id<ISCIDisposable>> *)array;
Parameters
array
The disposable array.
-
Helper method which disposes the dictionary of disposables.
Declaration
Objective-C
+ (void)tryDisposeDictionary: (nonnull NSDictionary<id, id<ISCIDisposable>> *)dictionary;
Parameters
dictionary
The disposable dictionary.