Skip to content

Commit

Permalink
Merge branch 'adapt-xcode-7.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
wangshengjia committed Mar 24, 2016
2 parents 8d4baa2 + 65df236 commit 3df65e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions VWInstantRun/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<string>7FDF5C7A-131F-4ABB-9EDC-8C5F8F0B8A90</string>
<string>0420B86A-AA43-4792-9ED0-6FE0F2B16A13</string>
<string>7265231C-39B4-402C-89E1-16167C4CC990</string>
<string>ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C</string>
</array>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
Expand Down
4 changes: 2 additions & 2 deletions VWInstantRun/VWInstantRun.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class VWInstantRun: NSObject {
self.bundle = bundle

super.init()
center.addObserver(self, selector: Selector("createMenuItems"), name: NSApplicationDidFinishLaunchingNotification, object: nil)
center.addObserver(self, selector: #selector(VWInstantRun.createMenuItems), name: NSApplicationDidFinishLaunchingNotification, object: nil)
}

deinit {
Expand All @@ -37,7 +37,7 @@ class VWInstantRun: NSObject {

let item = NSApp.mainMenu?.itemWithTitle("Product")
if item != nil {
let actionMenuItem = NSMenuItem(title:"Instant Run", action:"instantRun", keyEquivalent:"")
let actionMenuItem = NSMenuItem(title:"Instant Run", action:#selector(VWInstantRun.instantRun), keyEquivalent:"")
actionMenuItem.keyEquivalentModifierMask = Int(NSEventModifierFlags.ShiftKeyMask.rawValue | NSEventModifierFlags.CommandKeyMask.rawValue | NSEventModifierFlags.AlternateKeyMask.rawValue)
actionMenuItem.keyEquivalent = "R"
actionMenuItem.target = self
Expand Down
4 changes: 2 additions & 2 deletions VWInstantRun/VWXcodeHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct VWXcodeHelpers {
textStorage.beginEditing()
textStorage.appendAttributedString(NSAttributedString(string: logText, attributes: attibutes))
textStorage.endEditing()
consoleTextView.performSelector("_scrollToBottom")
consoleTextView.performSelector(Selector("_scrollToBottom"))
}

static func isObjCFile() -> Bool {
Expand Down Expand Up @@ -95,7 +95,7 @@ extension VWXcodeHelpers {
private static func showDebugAreaIfNeeded(inWindow window: NSWindow? = NSApp.mainWindow) {
if let editor = xcodeEditorArea(),
let showDebuggerArea = editor.valueForKey("showDebuggerArea") as? Bool where showDebuggerArea == false {
editor.performSelector("toggleDebuggerVisibility:")
editor.performSelector(Selector("toggleDebuggerVisibility:"))
}
}

Expand Down

0 comments on commit 3df65e3

Please sign in to comment.