Re: creating draggable NSView

2016-02-03 Thread Jens Alfke
> On Feb 3, 2016, at 4:28 PM, Jeff Evans wrote: > > Does anyone have a clue as to why that frame would not alter after setFrame: > with a new value? Constraints, probably. —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: creating draggable NSView

2016-02-03 Thread Jeff Evans
OK, cancel that. As so often happens when I finally give up and ask a question, the answer hit me the face a few minutes later. Still hurts, too: trouble was that in an earlier experiment I had overridden setFrame: in this derived class and had neglected to remove that - it was not configured to

creating draggable NSView

2016-02-03 Thread Jeff Evans
Colleagues, I have been trying to create a draggable NSView for OSX and am stumped by the stubborn refusal of the view frame to change. Here's the essence: in responding to a mouse drag there is a place where I do this; NSPoint newLocation = event.locationInWindow; NSRect frame = self.frame; fr