Re: first responder being clobbered

2009-10-27 Thread Michael Link
It is different, UIWindow doesn't have a method -makeFirstResponder. When I was trying to figure this out I had assumed UIWindow had a firstResponder outlet just like NSWindow but it doesn't. Of course it's possible to extend the class to access the iv. -- Michael On Oct 26, 2009, at 10:59

Re: first responder being clobbered

2009-10-26 Thread glenn andreas
On Oct 26, 2009, at 10:55 PM, Michael Link wrote: I have a custom UITableViewController that uses a custom cell that displays a text field. I have this method added to the table view controller to set the text field as first responder - (void)viewWillAppear:(BOOL)animated { [super

Re: first responder being clobbered

2009-10-26 Thread Dave DeLong
Nope. In CocoaTouch, you can explicitly assign a UIResponder to be first responder by sending it the -becomeFirstResponder message. There is no "makeFirstResponder" method. IMO, this is one of the improvements of CocoaTouch over Cocoa. The responder system seems to be better organized.

Re: first responder being clobbered

2009-10-26 Thread Graham Cox
On 27/10/2009, at 2:55 PM, Michael Link wrote: Is there a different solution to getting a first responder in a table cell and not having it resign on 3.1? I'm unfamiliar with the iPhone version of Cocoa and whether its rules are different, but certainly on the Mac you shouldn't invoke -

first responder being clobbered

2009-10-26 Thread Michael Link
I have a custom UITableViewController that uses a custom cell that displays a text field. I have this method added to the table view controller to set the text field as first responder - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; MLPropertyEditing