Skip to content
View CorePlot Issue
// Posted as a reference for my stack overflow question
import Cocoa
import CorePlot
class ReportYearProducerProductionViewController: NSViewController {
@IBOutlet private weak var hostingView: CPTGraphHostingView!
override func viewDidLoad() {
View SegueHandlerType.swift
#if os(iOS)
import UIKit
typealias _ViewController = UIViewController
typealias _StoryboardSegue = UIStoryboardSegue
#else
import Cocoa
typealias _ViewController = NSViewController
typealias _StoryboardSegue = NSStoryboardSegue
#endif
View NSManagedObjectContext.swift
//
// NSManagedObjectContext.swift
// TeamKnect
//
// Created by Scott Grosch on 8/7/15.
// Copyright (c) 2015 Gargoyle Software, LLC. All rights reserved.
//
import UIKit
import CoreData
View GSPhotoPicker.swift
//
// GSPhotoPicker.swift
// TeamKnect
//
// Created by Scott Grosch on 10/18/14.
// Copyright (c) 2014 Gargoyle Software, LLC. All rights reserved.
//
import UIKit
View BoxedSet
// Set<T> is a struct in Swift, meaning it passes by value, not reference.
// I had to create this so I could pass a Set to another view controller
// and have it actually modify the Set on the original view controller as
// there was only a Back button, not an OK/Done button in the interface.
func ==<T : Hashable>(lhs: BoxedSet<T>, rhs: BoxedSet<T>) -> Bool {
return lhs.set == rhs.set
}
final class BoxedSet<T : Hashable> : Hashable, CollectionType, ArrayLiteralConvertible {
View CoreDataFetchController
//
// CoreDataFetchController.swift
//
// Created by Scott Grosch on 12/18/14.
// Copyright (c) 2014 Gargoyle Software, LLC. All rights reserved.
//
import CoreData
final class CoreDataFetchController<T : NSManagedObject> {
View GSRegex.swift
import Foundation
public protocol GSRegularExpressionMatchable {
func match(regex: GSRegex) -> Bool
func match(regex: NSRegularExpression) -> Bool
}
public class GSRegex: StringLiteralConvertible {
let regex: NSRegularExpression?
Something went wrong with that request. Please try again.