iPhone Support
This commit is contained in:
@@ -8,12 +8,14 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
enum XIONErrorCode: Int {
|
||||
enum XIONErrorCode: Int
|
||||
{
|
||||
case Unknown
|
||||
case ConnectionError
|
||||
}
|
||||
|
||||
extension NSError {
|
||||
extension NSError
|
||||
{
|
||||
private static let XIONErrorDomain = "com.xionsf.controlpanel"
|
||||
|
||||
class func xionError(code: XIONErrorCode) -> NSError
|
||||
|
||||
@@ -7,8 +7,10 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
extension NSURL {
|
||||
var requestParameters: [String : String]? {
|
||||
extension NSURL
|
||||
{
|
||||
var requestParameters: [String : String]?
|
||||
{
|
||||
get
|
||||
{
|
||||
let urlComponents = self.absoluteString.componentsSeparatedByString("/")
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
class Semaphore {
|
||||
class Semaphore
|
||||
{
|
||||
private var _semaphore: dispatch_semaphore_t
|
||||
|
||||
init(value: Int)
|
||||
|
||||
@@ -8,8 +8,10 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
class StandardErrorOutputStream: OutputStreamType {
|
||||
func write(string: String) {
|
||||
class StandardErrorOutputStream: OutputStreamType
|
||||
{
|
||||
func write(string: String)
|
||||
{
|
||||
let stderr = NSFileHandle.fileHandleWithStandardError()
|
||||
stderr.writeData(string.dataUsingEncoding(NSUTF8StringEncoding)!)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user