// // LibraryModel.swift // DocHub // // Created by Tristan Juricek on 6/10/14. // Copyright (c) 2014 Perforce. All rights reserved. // import Foundation // A DocHub library is an abstraction over connections to remote versioning // repositories. // // DocHub isn't really concerned about branching. Thus, a Library could be // thought of as "go to this branch out on that versioning server". @objc protocol Library { var name: String { get } // Each library has a single collection of areas, that should maintain a // strict order var areas: Area[] { get } } func == (lhs: Library, rhs: Library) -> Bool { return lhs.name == rhs.name }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 9545 | tjuricek |
Use the left column to navigate p4 servers as "libraries" with their depots as "areas". I've had to stop using the output of login -p at the moment, since it doesn't quite work with the Objective-C API in lieu of a password. |
||
#2 | 9420 | tjuricek |
Minimal UI framework. Lesson learned: if you're not using nibs, thou shalt access thy application as NSApplication.sharedApplication, or thy will encounter strange resizing exceptions. |
||
#1 | 9397 | tjuricek | Basic p4d interaction with p4 using Swift |