> On Jul 8, 2015, at 8:52 AM, Richard Charles wrote:
>
> Do you have any insight as to why the animation does not occur the first time
> a text field is clicked?
Filed Apple bug report 21758024.
--Richard Charles
___
Cocoa-dev mailing list (Coco
> On Jul 8, 2015, at 7:00 AM, Willeke wrote:
>
>> @implementation MyTextField
>>
>> - (void)mouseDown:(NSEvent *)event
>> {
>> NSText *editor = self.currentEditor;
>> assert(editor && "Current editor is nil!");
>> assert(editor.isFieldEditor && "Editor not a field editor!");
>> NSRange
> @implementation MyTextField
>
> - (void)mouseDown:(NSEvent *)event
> {
>NSText *editor = self.currentEditor;
>assert(editor && "Current editor is nil!");
>assert(editor.isFieldEditor && "Editor not a field editor!");
>NSRange range = NSMakeRange(0, editor.string.length);
>[ed
> On Jul 7, 2015, at 8:27 AM, Willeke wrote:
>
>> Op 6 jul. 2015, om 18:15 heeft Richard Charles het
>> volgende geschreven:
>>
>> Does anyone have any insight into what is going on?
>>
> The animation of the focus ring isn't finished. If the focus ring is switched
> off, the text is select
> Op 6 jul. 2015, om 18:15 heeft Richard Charles het
> volgende geschreven:
>
> Does anyone have any insight into what is going on?
>
The animation of the focus ring isn't finished. If the focus ring is switched
off, the text is selected.
Safari's Address and Search field calls setSelectedRan
> On Jul 6, 2015, at 5:49 PM, Joel Norvell wrote:
>
> Hi Richard,
>
> When the instance of your NSTextField subclass becomes first responder, you
> have access to the NSText object (the field editor) and I believe you can use
> its methods to select the text. (I don't see why you can't, but s
Hi Richard,
When the instance of your NSTextField subclass becomes first responder, you
have access to the NSText object (the field editor) and I believe you can use
its methods to select the text. (I don't see why you can't, but since I haven't
tried it myself, I'm saying "I believe.")
Sincere
On Jul 6, 2015, at 16:16 , Richard Charles wrote:
>
> Finder does something similar when renaming files and folders. The first
> click selects the file or folder. The next click selects the name of the file
> or folder ready for replacement. The third click will place the insertion
> point som
> On Jul 6, 2015, at 4:09 PM, Quincey Morris wrote:
>
> Incidentally — this is the part where we make you sorry you asked the
> question — what are you trying to achieve here? Auto-self-selecting text
> fields are an incredibly annoying UI, if the user is ever likely to want to
> select only p
On Jul 6, 2015, at 09:15 , Richard Charles wrote:
>
> I have a NSTextField subclass that selects all of the text when the user
> clicks it.
Incidentally — this is the part where we make you sorry you asked the question
— what are you trying to achieve here? Auto-self-selecting text fields are
On Jul 6, 2015, at 12:38 , Richard Charles wrote:
>
> The delegate methods textDidBeginEditing: and controlTextDidBeginEditing: are
> not called when clicking into the view. They are called when the first edit
> is actually attempted. So that did not work.
My only other suggestion is that the
> On 6 Jul 2015, at 20:38, Richard Charles wrote:
>
>> On Jul 6, 2015, at 12:12 PM, Gary L. Wade wrote:
>>
>> You want to select the text using the associated text view of the
>> NSTextField control.
>
> Not sure what you mean by the "associated text view" of the control. Do you
> mean the f
> On Jul 6, 2015, at 12:12 PM, Gary L. Wade wrote:
>
> You want to select the text using the associated text view of the NSTextField
> control.
Not sure what you mean by the "associated text view" of the control. Do you
mean the field editor of the control? I have subclassed NSTextField and
ov
You want to select the text using the associated text view of the NSTextField
control.
--
Gary L. Wade (Sent from my iPhone)
http://www.garywade.com/
> On Jul 6, 2015, at 10:54 AM, Richard Charles wrote:
>
>
>> On Jul 6, 2015, at 10:15 AM, Richard Charles wrote:
>>
>> I have a NSTextField su
On Jul 6, 2015, at 10:54 , Richard Charles wrote:
>[self performSelector:@selector(selectText:) withObject:self
> afterDelay:0];
I dunno, but I suspect that this isn’t good enough. You’re merely guessing that
“on the next iteration of the run loop” is *after* the text field finished
b
> On Jul 6, 2015, at 10:15 AM, Richard Charles wrote:
>
> I have a NSTextField subclass that selects all of the text when the user
> clicks it. This is accomplished by overriding becomeFirstResponder.
>
> - (BOOL)becomeFirstResponder
> {
>BOOL result = [super becomeFirstResponder];
>if
16 matches
Mail list logo