Questions tagged [first-responder]

In Apple Cocoa programing, the first responder is the first object in a chain of NSResponder subclasses to be called upon receiving an even such as keypress, mouseclick, etc.

409 questions
2
votes
2 answers

Create custom input for UITextField in Swift

I'm programming a iOS app in Swift language and all I have to do is create a custom input for a textfield. I created an additional View Controller with two buttons and what I want is this view controller (instead of the keyboard) to pop-up when I…
2
votes
1 answer

UIScrollView inside UIScrollView – ignore scroll view touches when in bounds of text view?

I have one UIScrollView inside another UIScrollView, both scrolling vertically. I’m having an issue where when I try to scroll the inner scroll view, the touches are also picked up just afterwards by the outer scroll view. I need touches in the…
Luke
  • 9,512
  • 15
  • 82
  • 146
2
votes
1 answer

iOS: Stop ScrollView from making room when selecting textfield at top

I've scoured through several questions asking about how to prevent scrolling when selecting a first responder however nothing I find seems to work for this issue. I have a UITextField above my table view at the very top of my page. When the user…
Ian Gray
  • 387
  • 1
  • 3
  • 15
2
votes
1 answer

Subview will not become first responder

In my view controller I have initialized a new UIView Subclass called HypnosisView and added it to the root view of the ViewController. And in viewDidLoad I set the view to become the first responder like so: - (void)viewDidLoad { [super…
Nearpoint
  • 7,202
  • 13
  • 46
  • 74
2
votes
0 answers

Keyboard/Space Bar misbehavior for UITextField with custom character input

This is really bizarre and I've already wasted almost an entire day trying to figure out this ridiculous little problem... ahhh, I need some help from any who are willing to dig into this :( So I've got a UITextField, in which I need to limit the…
Daniel McCarthy
  • 1,406
  • 2
  • 13
  • 19
2
votes
1 answer

Change UITextField background when editing begins for multiple fields

So I found this thread a while ago: Change UITextField background when editing begins The top answer is a fantastic resource for changing the background image of a textField when the user edits it. However, my issue is, how can you enable this with…
Slider257
  • 69
  • 1
  • 12
2
votes
1 answer

NSTextView keyDown Event

I want trigger the keyDown Event with every Key action. Therefore I have created a subclass of NSView. @interface CodrTextView : NSView { NSTextField *lineNumberSpace; NSTextView *mainTextView; } - (id) initWithTextView:(NSTextView…
Chryb
  • 547
  • 1
  • 12
  • 34
2
votes
3 answers

Handling messages to the first responder in a view controller

I must be missing something simple, but I can't see it. First, the setup: DATreeView, a subclass of NSView DATreeViewController, a subclass of NSViewController MainMenu.xib has an instance of DATreeViewController, which is configured to load a…
Cody Brimhall
  • 1,185
  • 1
  • 9
  • 18
2
votes
3 answers

UITextField that is always first responder

I have a ViewController that is just a textfield, a next button, and a back button. I want the text field to always be editable while having the keyboard always present. I also want to customize the keyboard to be my own, but that will come once I…
sbjluke
  • 309
  • 5
  • 15
2
votes
2 answers

iOS dismiss keyboard but keep editing

I have a UITextView that is being edited and I want to add a custom keyboard... is there any way to dismiss the keyboard but leave the textView in edit mode so the blue cursor keeps flashing? Or better yet is there any way to put a view ontop of the…
Albert Renshaw
  • 17,282
  • 18
  • 107
  • 195
2
votes
1 answer

Select or mark text in UITextView without it becoming first responder

Is this even possible? I want to select/mark text without text view becoming first responder. I have search implemented in UIPopoverController and then when it's dismissed UIToolBar with Next and Previous button is showed which allows me to select…
Amar Kulo
  • 1,098
  • 8
  • 18
2
votes
0 answers

What determines the list of action for first Responder?

If I click firstResponder and see all the outlet I saw this pics: I recognize the name as some of the name of my selectors. I noticed that The fact that selector is public or not doesn't seem to matter to get into the list I am not sure if the…
user4951
  • 32,206
  • 53
  • 172
  • 282
2
votes
1 answer

UITextField - Action on resignFirstResponder -- possible?

I have created a form that has a number of text fields that save to NSStrings that are then used deeper in the app. Currently, if you hit the return key (done) on the GUI keyboard, the keyboard is dismissed, and the data in the text field is saved…
Refllux
  • 25
  • 3
2
votes
1 answer

NSTextView won't become first responder

Here's the layout of my little test app: AppDelegate owns WindowController. WindowController owns CustomTextContainerView. CustomTextContainerView owns an NSScrollView which embeds MyCustomTextView (an NSTextView subclass). The xibs for both the…
jbrennan
  • 11,943
  • 14
  • 73
  • 115
2
votes
0 answers

Uimenucontroller controller not responding to touch

I have a uimenucontroller that I am using on a uiwebview. The menu controller works fine on simple text websites however on larger websites i.e.…
Jacob Hull
  • 21
  • 2