Re: Drag-and-drop onto an NSTextField?

2020-08-01 Thread Sandor Szatmari via Cocoa-dev
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: > >

Re: Drag-and-drop onto an NSTextField?

2020-08-01 Thread Carl Hoefs via Cocoa-dev
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. >

Re: Drag-and-drop onto an NSTextField?

2020-08-01 Thread Sandor Szatmari via Cocoa-dev
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.

Re: Drag-and-drop onto an NSTextField?

2020-07-31 Thread Sandor Szatmari via Cocoa-dev
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 >

Re: Drag-and-drop onto an NSTextField?

2020-07-31 Thread Carl Hoefs via Cocoa-dev
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:

Re: Drag-and-drop onto an NSTextField?

2020-07-31 Thread Sandor Szatmari via Cocoa-dev
;> >> -(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

Re: Drag-and-drop onto an NSTextField?

2020-07-31 Thread Sandor Szatmari via Cocoa-dev
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 > > _

Drag-and-drop onto an NSTextField?

2020-07-31 Thread Carl Hoefs via Cocoa-dev
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