Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: First Responder target?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.