Skip to content

Commit

Permalink
Revert "Allow building: updates to project.clj & cocoapods usage (#94)"
Browse files Browse the repository at this point in the history
This reverts commit 33415a4.

# Conflicts:
#	ClojureScript/replete/project.clj
#	Podfile
#	Replete.xcodeproj/project.pbxproj
  • Loading branch information
mfikes committed Mar 18, 2017
1 parent ff9a899 commit d9d8c8e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Replete/Info.plist
Expand Up @@ -24,7 +24,7 @@
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<string>com.fikesfarm.$(PRODUCT_NAME:rfc1034identifier)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down
18 changes: 9 additions & 9 deletions Replete/ReplViewController.swift
Expand Up @@ -43,7 +43,7 @@ class ReplViewController: UIViewController, UITableViewDataSource, UITableViewDe
evalButton.setTitleColor(UIColor(red: 142/255, green: 142/255, blue: 147/255, alpha: 1), forState: .Disabled)
evalButton.setTitleColor(UIColor(red: 1/255, green: 122/255, blue: 255/255, alpha: 1), forState: .Normal)
evalButton.contentEdgeInsets = UIEdgeInsets(top: 6, left: 6, bottom: 6, right: 8)
evalButton.addTarget(self, action: #selector(sendAction), forControlEvents: UIControlEvents.TouchUpInside)
evalButton.addTarget(self, action: "sendAction", forControlEvents: UIControlEvents.TouchUpInside)
toolBar.addSubview(evalButton)

toolBar.translatesAutoresizingMaskIntoConstraints = false
Expand Down Expand Up @@ -102,9 +102,9 @@ class ReplViewController: UIViewController, UITableViewDataSource, UITableViewDe
view.addSubview(tableView)

let notificationCenter = NSNotificationCenter.defaultCenter()
notificationCenter.addObserver(self, selector: #selector(keyboardWillShow(_:)), name: UIKeyboardWillShowNotification, object: nil)
notificationCenter.addObserver(self, selector: #selector(keyboardDidShow(_:)), name: UIKeyboardDidShowNotification, object: nil)
notificationCenter.addObserver(self, selector: #selector(menuControllerWillHide(_:)), name: UIMenuControllerWillHideMenuNotification, object: nil) // #CopyMessage
notificationCenter.addObserver(self, selector: "keyboardWillShow:", name: UIKeyboardWillShowNotification, object: nil)
notificationCenter.addObserver(self, selector: "keyboardDidShow:", name: UIKeyboardDidShowNotification, object: nil)
notificationCenter.addObserver(self, selector: "menuControllerWillHide:", name: UIMenuControllerWillHideMenuNotification, object: nil) // #CopyMessage

let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate

Expand Down Expand Up @@ -184,7 +184,7 @@ class ReplViewController: UIViewController, UITableViewDataSource, UITableViewDe
cell = HistoryTableViewCell(style: .Default, reuseIdentifier: cellIdentifier)

// Add gesture recognizers #CopyMessage
let action: Selector = #selector(messageShowMenuAction(_:))
let action: Selector = "messageShowMenuAction:"
let doubleTapGestureRecognizer = UITapGestureRecognizer(target: self, action: action)
doubleTapGestureRecognizer.numberOfTapsRequired = 2
cell.messageLabel.addGestureRecognizer(doubleTapGestureRecognizer)
Expand Down Expand Up @@ -379,7 +379,7 @@ class ReplViewController: UIViewController, UITableViewDataSource, UITableViewDe
if (text != "\n") {
// NSLog("load: %@", text);

let s = NSMutableAttributedString(string:text)
var s = NSMutableAttributedString(string:text);

while (markString(s)) {};

Expand Down Expand Up @@ -457,7 +457,7 @@ class ReplViewController: UIViewController, UITableViewDataSource, UITableViewDe
let menuController = UIMenuController.sharedMenuController()
let bubbleImageView = gestureRecognizer.view!
menuController.setTargetRect(bubbleImageView.frame, inView: bubbleImageView.superview!)
menuController.menuItems = [UIMenuItem(title: "Copy", action: #selector(messageCopyTextAction(_:)))]
menuController.menuItems = [UIMenuItem(title: "Copy", action: "messageCopyTextAction:")]
menuController.setMenuVisible(true, animated: true)
}
}
Expand All @@ -477,7 +477,7 @@ class ReplViewController: UIViewController, UITableViewDataSource, UITableViewDe

override var keyCommands: [UIKeyCommand]? {
get {
let commandEnter = UIKeyCommand(input: "\r", modifierFlags: .Command, action: #selector(sendAction))
let commandEnter = UIKeyCommand(input: "\r", modifierFlags: .Command, action: Selector("sendAction"))
return [commandEnter]
}
}
Expand All @@ -487,7 +487,7 @@ class ReplViewController: UIViewController, UITableViewDataSource, UITableViewDe
class InputTextView: UITextView {
override func canPerformAction(action: Selector, withSender sender: AnyObject!) -> Bool {
if (delegate as! ReplViewController).tableView.indexPathForSelectedRow != nil {
return action == #selector(messageCopyTextAction(_:))
return action == "messageCopyTextAction:"
} else {
return super.canPerformAction(action, withSender: sender)
}
Expand Down
2 changes: 1 addition & 1 deletion RepleteTests/Info.plist
Expand Up @@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<string>com.fikesfarm.$(PRODUCT_NAME:rfc1034identifier)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down

0 comments on commit d9d8c8e

Please sign in to comment.