This commit is contained in:
John Rommel Estropia
2016-02-25 07:14:15 +09:00
parent 0800b706d6
commit 91dd4b6cb3
5 changed files with 11 additions and 11 deletions

View File

@@ -129,7 +129,6 @@ public final class DataStack {
- parameter configuration: an optional configuration name from the model file. If not specified, defaults to `nil`. - parameter configuration: an optional configuration name from the model file. If not specified, defaults to `nil`.
- returns: the `NSPersistentStore` added to the stack. - returns: the `NSPersistentStore` added to the stack.
*/ */
@available(*, deprecated=2.0.0, renamed="beginUnsafe")
public func addInMemoryStoreAndWait(configuration configuration: String? = nil) throws -> NSPersistentStore { public func addInMemoryStoreAndWait(configuration configuration: String? = nil) throws -> NSPersistentStore {
do { do {

View File

@@ -20,7 +20,7 @@ class QueryingResultsViewController: UITableViewController {
self.values = array.map { (item: AnyObject) -> (title: String, detail: String) in self.values = array.map { (item: AnyObject) -> (title: String, detail: String) in
( (
title: item.description, title: item.description,
detail: _stdlib_getDemangledTypeName(item) detail: String(reflecting: item.dynamicType)
) )
} }
@@ -28,7 +28,7 @@ class QueryingResultsViewController: UITableViewController {
self.values = [ self.values = [
( (
title: item.description, title: item.description,
detail: _stdlib_getDemangledTypeName(item) detail: String(reflecting: item.dynamicType)
) )
] ]

View File

@@ -88,7 +88,7 @@ class ListObserverDemoViewController: UITableViewController, ListSectionObserver
UIBarButtonItem( UIBarButtonItem(
barButtonSystemItem: .Trash, barButtonSystemItem: .Trash,
target: self, target: self,
action: "resetBarButtonItemTouched:" action: #selector(self.resetBarButtonItemTouched(_:))
) )
] ]
@@ -96,13 +96,13 @@ class ListObserverDemoViewController: UITableViewController, ListSectionObserver
title: Static.filter.rawValue, title: Static.filter.rawValue,
style: .Plain, style: .Plain,
target: self, target: self,
action: "filterBarButtonItemTouched:" action: #selector(self.filterBarButtonItemTouched(_:))
) )
navigationItem.rightBarButtonItems = [ navigationItem.rightBarButtonItems = [
UIBarButtonItem( UIBarButtonItem(
barButtonSystemItem: .Add, barButtonSystemItem: .Add,
target: self, target: self,
action: "addBarButtonItemTouched:" action: #selector(self.addBarButtonItemTouched(_:))
), ),
filterBarButton filterBarButton
] ]

View File

@@ -60,7 +60,10 @@ class TransactionsDemoViewController: UIViewController, MKMapViewDelegate, Objec
super.viewDidLoad() super.viewDidLoad()
let longPressGesture = UILongPressGestureRecognizer(target: self, action: "longPressGestureRecognized:") let longPressGesture = UILongPressGestureRecognizer(
target: self,
action: #selector(self.longPressGestureRecognized(_:))
)
self.mapView?.addGestureRecognizer(longPressGesture) self.mapView?.addGestureRecognizer(longPressGesture)
Static.placeController.addObserver(self) Static.placeController.addObserver(self)
@@ -68,7 +71,7 @@ class TransactionsDemoViewController: UIViewController, MKMapViewDelegate, Objec
self.navigationItem.rightBarButtonItem = UIBarButtonItem( self.navigationItem.rightBarButtonItem = UIBarButtonItem(
barButtonSystemItem: .Refresh, barButtonSystemItem: .Refresh,
target: self, target: self,
action: "refreshButtonTapped:" action: #selector(self.refreshButtonTapped(_:))
) )
} }

View File

@@ -380,9 +380,7 @@ class CoreStoreTests: XCTestCase {
do { do {
let fileManager = NSFileManager.defaultManager() let fileManager = NSFileManager.defaultManager()
try fileManager.removeItemAtURL( try fileManager.removeItemAtURL(defaultRootDirectory)
fileManager.URLsForDirectory(deviceDirectorySearchPath, inDomains: .UserDomainMask).first!
)
} }
catch _ { } catch _ { }
} }