• 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 target?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: First Responder target?


  • Subject: Re: First Responder target?
  • From: Dimitri Bouniol <email@hidden>
  • Date: Fri, 30 Jun 2006 01:34:41 -0700

I'm not exactly sure about getting First Responder programatically, but to find the key window, try [NSApp keyWindow];
The the rest of NSApplication's methods can be found here:
http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/Classes/NSApplication_Class/index.html


On Jun 30, 2006, at 1:27 AM, Fredrik Olsson wrote:

A newbie question :)

Setting the first responder as target in IB is easy, but I can not find how to set it up manually in code. Should I set NSApp target, the NSResponder class, something completely different?

I do not think I should need to go through the trouble of finding the key window, etc at least?

// Fredrik Olsson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

-- Dimitri Bouniol email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >First Responder target? (From: Fredrik Olsson <email@hidden>)

  • Prev by Date: First Responder target?
  • Next by Date: Re: First Responder target?
  • Previous by thread: First Responder target?
  • Next by thread: Re: First Responder target?
  • Index(es):
    • Date
    • Thread