No ideas on this?

We have an NSControl subclass in a window. The class returns YES from 
acceptsFirstResponder and canBecomeKeyView, and it overrides some NSResponder 
methods (mouseDown:, keyDown:). The control is set to be the 
initialFirstResponder in the xib. Yet it will not be the initial first 
responder unless Full Keyboard Access is turned on. Even if FKA is off I can 
still tab to it and it gains focus. What else should I be doing here?

If I override makeFirstResponder: in our window subclass, I see that an 
NSTextField is being set as the first responder when we tell the window to 
orderFront. The stack:

#0      0x0144b8d3 in -[EDLGWindow makeFirstResponder:] at 
/depot/Finale_Main/FinaleDev/Finale/SRC/FIN/MAC/Cocoa/EDLGController.mm:172
#1      0x90c8053c in -[NSWindow _selectFirstKeyView] ()
#2      0x90c801fe in -[NSWindow _setUpFirstResponder] ()
#3      0x90c8014e in -[NSWindow _setUpFirstResponderBeforeBecomingVisible] ()
#4      0x90c7e5c9 in -[NSWindow 
_reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] ()
#5      0x90c7e0b6 in -[NSWindow 
_doOrderWindowWithoutAnimation:relativeTo:findKey:forCounter:force:isModal:] ()
#6      0x90c7dbcd in -[NSWindow 
_doOrderWindow:relativeTo:findKey:forCounter:force:isModal:] ()
#7      0x90c7d734 in -[NSWindow orderWindow:relativeTo:] ()
#8      0x90b581d8 in -[NSWindow orderFront:] ()

Why is it choosing a text field instead of the control that I explicitly set as 
the initialFirstResponder in the xib?

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to