diff options
author | Damiano Galassi <[email protected]> | 2015-10-24 10:52:15 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2015-10-24 10:52:15 +0200 |
commit | 3de7c8834a931ee2fdaa820241e208446cc5f08f (patch) | |
tree | 7a7bd0c5aa66ee2a4a88fa89cd44dadbbf9c7c30 | |
parent | 7e32b94a04e073aa94b51811200b664a5001f983 (diff) |
MacGui: add type parameter to some arrays.
-rw-r--r-- | macosx/HBCore.h | 2 | ||||
-rw-r--r-- | macosx/HBCore.m | 2 | ||||
-rw-r--r-- | macosx/HBTitle.h | 8 |
3 files changed, 7 insertions, 5 deletions
diff --git a/macosx/HBCore.h b/macosx/HBCore.h index dafda29ad..2c1830f5b 100644 --- a/macosx/HBCore.h +++ b/macosx/HBCore.h @@ -130,7 +130,7 @@ typedef void (^HBCoreCompletionHandler)(HBCoreResult result); /** * An array of HBTitles found by the latest scan. */ -@property (nonatomic, readonly, nullable) NSArray *titles; +@property (nonatomic, readonly, nullable) NSArray<HBTitle *> *titles; /** * This function converts an image created by libhb (specified via index) diff --git a/macosx/HBCore.m b/macosx/HBCore.m index 88bc5e9c2..2b82aba1f 100644 --- a/macosx/HBCore.m +++ b/macosx/HBCore.m @@ -45,7 +45,7 @@ static void hb_error_handler(const char *errmsg) @property (nonatomic, readonly) dispatch_queue_t updateTimerQueue; /// Current scanned titles. -@property (nonatomic, readwrite, strong) NSArray *titles; +@property (nonatomic, readwrite, strong) NSArray<HBTitle *> *titles; /// Progress handler. @property (nonatomic, readwrite, copy) HBCoreProgressHandler progressHandler; diff --git a/macosx/HBTitle.h b/macosx/HBTitle.h index 1c0ddc963..898166d6f 100644 --- a/macosx/HBTitle.h +++ b/macosx/HBTitle.h @@ -8,6 +8,8 @@ NS_ASSUME_NONNULL_BEGIN +@class HBChapter; + /** * HBTitles is an interface to the low-level hb_title_t. * the properties are lazy-loaded. @@ -38,9 +40,9 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, readonly) int autoCropLeft; @property (nonatomic, readonly) int autoCropRight; -@property (nonatomic, readonly) NSArray *audioTracks; -@property (nonatomic, readonly) NSArray *subtitlesTracks; -@property (nonatomic, readonly) NSArray *chapters; +@property (nonatomic, readonly) NSArray<NSDictionary<NSString *, id> *> *audioTracks; +@property (nonatomic, readonly) NSArray<NSDictionary<NSString *, id> *> *subtitlesTracks; +@property (nonatomic, readonly) NSArray<HBChapter *> *chapters; @end |