I believe there were occasions where the UI was not updating, specifically the
focus ring type behavior. But that was implemented around 10.11 era, so maybe
things have gotten better.
Sandor
> On Aug 1, 2020, at 13:04, Carl Hoefs wrote:
>
> I was wondering also about the necessity of:
>
>
I was wondering also about the necessity of:
[self setNeedsDisplay:YES];
It seems to work fine without it (perhaps it's already being done by the
superclass, NSTextField?).
-Carl
> On Aug 1, 2020, at 5:28 AM, Graham Cox wrote:
>
> You shouldn’t call -becomeFirstResponder yourself.
>
Thanks Graham!
Sandor
> On Aug 1, 2020, at 08:28, Graham Cox wrote:
>
> You shouldn’t call -becomeFirstResponder yourself.
>
> Instead, call [self.window makeFirstResponder:self].
>
> That should properly switch the first responder, giving the previous
> responder the chance to refuse.
the subclass
>>>>
>>>> And then to accept the drag implement the method in the sublclass
>>>>
>>>> -(NSDragOperation)draggingEntered:(id)sender
>>>>
>>>> If there’s an easier or better it’d be cool to learn about it
>
t;
>>> -(NSDragOperation)draggingEntered:(id)sender
>>>
>>> If there’s an easier or better it’d be cool to learn about it
>>>
>>> Sandor
>>>
>>>> On Jul 31, 2020, at 19:29, Carl Hoefs via Cocoa-dev
>>>> wrote:
;>
>> -(NSDragOperation)draggingEntered:(id)sender
>>
>> If there’s an easier or better it’d be cool to learn about it
>>
>> Sandor
>>
>>>> On Jul 31, 2020, at 19:29, Carl Hoefs via Cocoa-dev
>>>> wrote:
>>> Why is drag-an
to learn about it
Sandor
> On Jul 31, 2020, at 19:29, Carl Hoefs via Cocoa-dev
> wrote:
>
> Why is drag-and-drop onto an NSTextField enabled only when it has focus?
>
> Is there any way around this?
>
> -Carl
>
> _
Why is drag-and-drop onto an NSTextField enabled only when it has focus?
Is there any way around this?
-Carl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact