This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "C4WorkSpace.h" | |
#import "ClassA.h" | |
#import "ClassB.h" | |
@implementation C4WorkSpace | |
-(void)setup { | |
ClassA *objA = [ClassA new]; | |
ClassB *objB = [ClassB new]; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "C4WorkSpace.h" | |
#import "ClassA.h" | |
#import "ClassB.h" | |
@implementation C4WorkSpace | |
-(void)setup { | |
ClassA *objA = [ClassA new]; | |
ClassB *objB = [ClassB new]; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// C4Swift | |
// | |
// Created by travis on 2014-10-28. | |
// Copyright (c) 2014 C4. All rights reserved. | |
// | |
import UIKit | |
import C4iOS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import C4UI | |
import C4Core | |
import C4Animation | |
public struct PixelData { | |
var a:UInt8 | |
var r:UInt8 | |
var g:UInt8 | |
var b:UInt8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// C4Swift | |
// | |
// Created by travis on 2014-10-28. | |
// Copyright (c) 2014 C4. All rights reserved. | |
// | |
import UIKit | |
import C4UI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// Central | |
// | |
// Created by travis on 2015-07-08. | |
// Copyright (c) 2015 C4. All rights reserved. | |
// | |
import Cocoa | |
import CoreBluetooth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright © 2016 C4 | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to | |
// deal in the Software without restriction, including without limitation the | |
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
// sell copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: The above copyright | |
// notice and this permission notice shall be included in all copies or | |
// substantial portions of the Software. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AppDelegate.swift | |
// MOPeripheral | |
// | |
// Created by travis on 2015-07-17. | |
// Copyright (c) 2015 C4. All rights reserved. | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// test | |
// | |
// Created by travis on 2015-07-24. | |
// Copyright © 2015 C4. All rights reserved. | |
// | |
import Cocoa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension C4Point { | |
func serialize() -> NSData { | |
var point = C4Point(x,y) | |
let data = NSData(bytes: &point, length: sizeof(C4Point)) | |
return data | |
} | |
public init(_ data: NSData) { | |
let point = UnsafePointer<C4Point>(data.bytes).memory |
OlderNewer