Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

rastersize/ObjectToXPC

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

ObjectToXPC

A bunch of categories for converting a few types of Objective-C objects (defined in the Foundation framework) to and from XPC objects.

Also see the blog post about it "Convert Between XPC Objects and Objective-C Objects."

Supported objects

Objective-C objects

  • NSArray (where the elements are one of the supported),
  • NSData,
  • NSDate,
  • NSDictionary (where the elements are one of the supported, keys must either be of the NSString class or define the -description method),
  • NSNull (only in collections),
  • NSNumber,
  • NSString.

XPC object types

  • XPC_TYPE_ARRAY
  • XPC_TYPE_BOOL
  • XPC_TYPE_DATA (to and from NSNumber)
  • XPC_TYPE_DATE
  • XPC_TYPE_DICTIONARY
  • XPC_TYPE_DOUBLE (to and from NSNumber)
  • XPC_TYPE_INT64 (to and from NSNumber)
  • XPC_TYPE_UINT64 (to and from NSNumber)
  • XPC_TYPE_NULL
  • XPC_TYPE_STRING

Requirements

The project requires Mac OS X 10.7+ and Xcode 4.2 to build and Mac OS X 10.7+ to run as the XPC Services API was first introduced in OS X 10.7. Will not work on iOS as the XPC API is not available here. Furthermore, the project have been written for automatic reference counting (ARC).

Usage

Either include the source files directly (in which case you will also need the (ObjectToXPC-Private.h header file) or link with the library.

License

The project is licensed under the "Simplified BSD license" (2-clause), for the exact terms please see the LICENSE file.

About

ABANDONED: Convert a few types of Objective-C objects (see the readme) to and from XPC objects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published