Re: NSBrowser and tab order
Re: NSBrowser and tab order
- Subject: Re: NSBrowser and tab order
- From: Corbin Dunn <email@hidden>
- Date: Fri, 19 Mar 2010 10:02:08 -0700
On Mar 18, 2010, at 9:48 AM, Keary Suska wrote:
> On Mar 18, 2010, at 8:40 AM, Corbin Dunn wrote:
>
>> Aj -- I believe this was a bug fixed in 10.6; maybe 10.5. What OS are you on?
>>
>> The work around is to set it up in awakeFromNib.
>
> Is there any way to tab into an NSBrowser in 10.4? It seems that once the browser loses focus, you can't get focus except by clicking...
Yes -- ensure you have at least one column and make it the first responder. The issue is that the browser was incorrectly refusing first responder status if it had 0 columns. So, setting it up in IB it had non when unarchived...hence the problem.
Alternatively, another solution: subclass NSBrowser and return YES from:
- (BOOL)acceptsFirstResponder
I double checked; we fixed this in 10.6 (for apps linked on 10.6+). Returning YES from the above method is the best, and most compatible solution.
corbin
>
>> On Mar 18, 2010, at 1:15 AM, Andrew James wrote:
>>
>>> I have a nib file set up in Interface Builder with a window containing a single NSBrowser.
>>>
>>> I have set the NSBrowser as the window's initialFirstResponder... but for some reason when the window is displayed the NSBrowser does not receive keyboard focus and will not receive keyboard focus until I click on it.
>>>
>>> I'm hoping I'm missing something trivially easy.
>
>
> Keary Suska
> Esoteritech, Inc.
> "Demystifying technology for your home or business"
>
_______________________________________________
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