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
0
votes
1 answer

Animate UITextview change out, Keep keyboard in place

I have a UITextview, becomes first responder and keyboard is presented. Presently, I have buttons in inputAccessoryView toolbar that exchange the text forward and reverse through an array of strings. I have the process working with no issues, so of…
Dean Davids
  • 4,174
  • 2
  • 30
  • 44
0
votes
1 answer

The uiviewcontroller child of a uiviewcontroller not reacting to touches

I have a UIViewcontroller that have several views and one uiviewcontroller as childs. The uiviewcontroller include a tableview. The child uiviewcontroller has the delegate and datasource methods. I can see the tableview, the delegate build right…
lagos
  • 1,968
  • 3
  • 17
  • 26
0
votes
1 answer

iOS6 forms not navegable anymore, pressing next doesn't change to next textfield in forms

I have an issue with the new Xcode 4.5 and iOS6. I have a form in my app with various textfields and pickers. I usually navigate through them with the Next key on the onscreen keyboard or pressing tab on my Mac, it seems something new affected the…
jonathanwiesel
  • 1,036
  • 2
  • 16
  • 35
0
votes
1 answer

What would cause a view controller to lose firstResponder status?

In my parent view controller I have this: - (BOOL)canBecomeFirstResponder { return YES; } - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; NSLog(@"BECOMING FIRST RESPONDER"); [[UIApplication sharedApplication]…
soleil
  • 12,133
  • 33
  • 112
  • 183
0
votes
0 answers

Keep UITextField as first responder when pushing new view controller

Is there any way to keep a UITextField first responder even as I push another view controller? Essentially, I'm taking a screenshot of the screen, using that screenshot in the new view controller, and then popping the second view controller. The…
0
votes
0 answers

NSSearchField keeps losing focus

I've got an NSSearchField whose value is bound to a NSArrayController subclass's query string property. The array controller observes changes to query and updates its filter predicate based on the query. So every time the user types something the…
Tony
  • 36,591
  • 10
  • 48
  • 83
0
votes
1 answer

manage FirstResponder in subclass of NSViewController

I have a TextViewController which is a subclass of NSViewController which controls a View containing a NSTextView I attach an instance of TextViewController to an existing view with the following code TextViewController *textViewer; ... [[self…
Milliways
  • 1,265
  • 1
  • 12
  • 26
0
votes
2 answers

Custom TableViewCell with TextField and first responder

I have a custom TableView cell that contains a TextField and I want it to become the first responder as soon as the view is shown but [textcell.textfield becomeFirstResponder] does not work. I know it's because it's a custom cell in another class…
Xcoder
  • 1,041
  • 5
  • 17
  • 29
0
votes
1 answer

responder chain goes subview to superview, what about scrollview?

From apple doc subview(near to the screen) gets to handle a touch event first than their superviews. On the other hand, views are added to a scroll view as a subview but the scroll view handles touch to detect swipes first. Can I treat the…
eugene
  • 39,839
  • 68
  • 255
  • 489
0
votes
1 answer

First responder problems

My application is a menu-bar app. It has a panel which holds another view. This view changes, and I each one of those should do it's own key-handling. When I change the first responder, only the current first responder get's the key-down…
IluTov
  • 6,807
  • 6
  • 41
  • 103
0
votes
1 answer

FirstResponder missing some functions

For some reason some functions are missing from my FirstResponder. In my MainMenu I have the Redo Menu Item, which in my other app links to the 'redo' function in the First Responder, however this is missing from my new application? Does anyone know…
Cristian
  • 6,765
  • 7
  • 43
  • 64
0
votes
1 answer

Can't return firstResponder status

Have set up my appDelegate to return a firstResponder status, but when I compile (it compiles fine), the console returns "Could not become the first responder" but doesn't tell why. I have attached the code. Can you tell me what's wrong? Thanks in…
pdenlinger
  • 3,897
  • 10
  • 60
  • 92
-1
votes
1 answer

isFirstResponder is false even after becomeFirstResponder is true

I'm debugging code to see why a WKWebView's instance doesn't become the firstResponder by doing the following: override func becomeFirstResponder() -> Bool { let becomeFirstResponserResponse = super.becomeFirstResponder() …
Kunal Shah
  • 1,071
  • 9
  • 24
-1
votes
1 answer

Check for exiting TextField resignedFirstReponder?

Is it possible to check if a TextField has been resigned? I have 3 TextFields, and Cycle through them with return key with (resignFirstResponder) and (becomeFirstResponder) But is there a way to check if a field has resigned? I noticed some of my…
-1
votes
1 answer

Make NSToolbarItem become first responder

In my MacOS app, there is an NSSearchField in the Toolbar. I want to enable users to focus it by pressing CMD+F (the same behavior that is used in many of Apple’s apps). I created an NSMenuItem with a key equivalent of CMD+F – it calls the following…
chl
  • 380
  • 3
  • 18
1 2 3
27
28