From bed55e05880f0286f504142a48089bce60c96cc7 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Sun, 11 Aug 2019 09:07:20 +0200 Subject: MacGui: move the queue libhb instance to an xpc service. --- macosx/HBCodingUtilities.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'macosx/HBCodingUtilities.h') diff --git a/macosx/HBCodingUtilities.h b/macosx/HBCodingUtilities.h index 8635720ea..e0f3e1f04 100644 --- a/macosx/HBCodingUtilities.h +++ b/macosx/HBCodingUtilities.h @@ -25,5 +25,9 @@ #define decodeCollectionOfObjects3(x, cl, objectcl, objectcl2, objectcl3) x = [decoder decodeObjectOfClasses:[NSSet setWithObjects:[cl class], [objectcl class], [objectcl2 class], [objectcl3 class], nil] forKey:OBJC_STRINGIFY(x)]; +#define decodeCollectionOfObjects4(x, cl, objectcl, objectcl2, objectcl3, objectcl4) x = [decoder decodeObjectOfClasses:[NSSet setWithObjects:[cl class], [objectcl class], [objectcl2 class], [objectcl3 class], [objectcl4 class], nil] forKey:OBJC_STRINGIFY(x)]; + +#define decodeCollectionOfObjects5(x, cl, objectcl, objectcl2, objectcl3, objectcl4, objectcl5) x = [decoder decodeObjectOfClasses:[NSSet setWithObjects:[cl class], [objectcl class], [objectcl2 class], [objectcl3 class], [objectcl4 class], [objectcl5 class], nil] forKey:OBJC_STRINGIFY(x)]; + #define decodeObjectOrFail(x, cl) x = [decoder decodeObjectOfClass:[cl class] forKey:OBJC_STRINGIFY(x)]; if (x == nil) {NSLog(@"Failed to decode: %@", OBJC_STRINGIFY(x)); goto fail;} -- cgit v1.2.3