Files
Sparkle/Sparkle/SPUSecureCoding.h
T
Zorg 467ffb15ca Pass whether or not system domain is being used back to framework
This avoids needing to do a file system check in InstallerConnection to determine if we need to connect to the system or user domain.
2021-04-03 17:16:38 -07:00

21 lines
582 B
Objective-C

//
// SPUSecureCoding.h
// Sparkle
//
// Created by Mayur Pawashe on 3/24/16.
// Copyright © 2016 Sparkle Project. All rights reserved.
//
#import <Foundation/Foundation.h>
// If we are using XPC without using XPC Services, our custom classes will not be (de)serialized automatically,
// hence needing functions to archive/unarchive NSSecureCoding objects.
NS_ASSUME_NONNULL_BEGIN
NSData * _Nullable SPUArchiveRootObjectSecurely(id<NSSecureCoding> rootObject);
id<NSSecureCoding> _Nullable SPUUnarchiveRootObjectSecurely(NSData *data, Class klass);
NS_ASSUME_NONNULL_END