Skip to content

Commit db608ed

Browse files
author
Rob Reuss
committed
Touchups to sample OS X Central VC
1 parent 71a9a14 commit db608ed

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

Samples/Central_OSX/CentralVirtualGameControllerOSXSample/ViewController.swift

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,15 @@
77
//
88

99
import Cocoa
10-
import GameController
1110
import AppKit
1211
import VirtualGameController
1312

1413
class ViewController: NSViewController {
15-
16-
@IBOutlet weak var statusLabel: NSTextField!
1714

1815
override func viewDidLoad() {
1916
super.viewDidLoad()
20-
21-
// Do any additional setup after loading the view.
2217

23-
24-
VgcManager.startAs(.Bridge, customElements: CustomElements(), customMappings: CustomMappings())
18+
VgcManager.startAs(.Bridge, appIdentifier: "vgc", customElements: CustomElements(), customMappings: CustomMappings())
2519

2620
VgcController.startWirelessControllerDiscoveryWithCompletionHandler { () -> Void in
2721

@@ -30,13 +24,6 @@ class ViewController: NSViewController {
3024
}
3125

3226
NSNotificationCenter.defaultCenter().addObserver(self, selector: "controllerDidConnect:", name: "VgcControllerDidConnectNotification", object: nil)
33-
34-
/*
35-
let scrollview = NSScrollView(frame: CGRect(x: 0, y: 0, width: self.view.bounds.size.width, height: self.view.bounds.size.height))
36-
scrollview.autoresizingMask = [NSAutoresizingMaskOptions.ViewHeightSizable, NSAutoresizingMaskOptions.ViewWidthSizable]
37-
scrollview.backgroundColor = NSColor.darkGrayColor()
38-
self.view.addSubview(scrollview)
39-
*/
4027

4128
}
4229

0 commit comments

Comments
 (0)