On 03 Aug 2015, at 06:01, Graham Cox wrote:
> Thinking further, I do have a NSTabView between the window and these fields,
> and the tab on which the fields are placed are not on the default tab. I seem
> to recall there were issues with tab views a long time ago, and perhaps it’s
> naive to as
> On 4 Aug 2015, at 12:17 am, Alex Zavatone wrote:
>
> Why not store all your references in an array (a little lookup table), then
> set the firstResponder to the reference from the index of the object in the
> array + 1 and roll over to index 0 if the index is past the count of the
> array?
Why not store all your references in an array (a little lookup table), then set
the firstResponder to the reference from the index of the object in the array +
1 and roll over to index 0 if the index is past the count of the array?
Shouldn't it be [self makeFirstResponder:myTextFieldRef]?
On A
> On 3 Aug 2015, at 2:28 pm, Ken Thomases wrote:
>
> The default implementation of -canBecomeMainWindow returns NO for panels. Is
> your window intended to be the main window? Is it actually? Does it change
> anything if you add an override to return YES?
Well, it doesn’t need to be main,
On Aug 2, 2015, at 11:01 PM, Graham Cox wrote:
> On 3 Aug 2015, at 12:13 pm, Ken Thomases wrote:
>>
>> You can try [[self window] selectKeyViewFollowingView:control] instead.
>
> Great! That works fine.
Glad to hear it.
> The only problem remaining then is that the first field isn’t properl
> On 3 Aug 2015, at 12:13 pm, Ken Thomases wrote:
>
> You can try [[self window] selectKeyViewFollowingView:control] instead.
Great! That works fine.
The only problem remaining then is that the first field isn’t properly selected
when the window shows up - it is initialFirstResponder and get
On Aug 2, 2015, at 7:29 PM, Graham Cox wrote:
> I have a series of NSTextFields and I want to automatically move the keyboard
> focus to the ‘next’ field when the one preceding it has a certain number of
> characters entered. My code is:
>
> - (void) controlTextDidChange:(NSNotifi
I think this came up recently in a slightly different context, but reading that
thread doesn’t help me with my problem here.
I have a series of NSTextFields and I want to automatically move the keyboard
focus to the ‘next’ field when the one preceding it has a certain number of
characters enter