• 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
Setting Custom View as First Responder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting Custom View as First Responder


  • Subject: Setting Custom View as First Responder
  • From: Walker Argendeli <email@hidden>
  • Date: Sat, 17 Jan 2009 23:13:53 -0500

I've created a custom view with 2 instances in the nib. We'll call them view1 and view2. I have a controller class that has the outlets for both views. I'd like to have a certain function in my controller class test to see if view1 is the first responder, and if not, to make it the first responder.
if (![[view1 window] firstResponder]
{
// Do something
}
How do I set a custom view to be the firstResponder?


- Walker Argendeli

_______________________________________________

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


  • Follow-Ups:
    • Re: Setting Custom View as First Responder
      • From: Rob Keniger <email@hidden>
    • Re: Setting Custom View as First Responder
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Yo
  • Next by Date: Re: ObjC in time-critical parts of the code
  • Previous by thread: Re: Cocoa and the need for a dynamic language
  • Next by thread: Re: Setting Custom View as First Responder
  • Index(es):
    • Date
    • Thread