• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: first responder being clobbered
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: first responder being clobbered


  • Subject: Re: first responder being clobbered
  • From: Michael Link <email@hidden>
  • Date: Tue, 27 Oct 2009 11:47:53 -0500

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 PM, Graham Cox wrote:


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 - becomeFirstResponder on an object. Instead you must ask its window to make it the first responder using -makeFirstResponder. Same?

--Graham




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >first responder being clobbered (From: Michael Link <email@hidden>)
 >Re: first responder being clobbered (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: programmatically determining whether a system would run a GC only app
  • Next by Date: Re: Alternative to stringWithContentsOfURL
  • Previous by thread: Re: first responder being clobbered
  • Next by thread: Re: first responder being clobbered
  • Index(es):
    • Date
    • Thread