> On 21 Jul 2015, at 08:23, Thomas Wetmore wrote:
>>
>> As a side issue, given that you’ll need to update constraints and re-layout
>> your view hierarchy every time the mouse moves during a drag, it might be
>> worthwhile retooling your code to use mouseDown/mouseDragged events
>> non-modall
> On Jul 20, 2015, at 7:53 PM, Quincey Morris
> wrote:
>
> On Jul 20, 2015, at 16:41 , Thomas Wetmore wrote:
>>
>> Here is the mouse-down method with event loop. As you can see I am calling
>> setFrameOrigin in the dragging case and setting frame directly in the
>> resizing case.
>
> So I
Clearly Quincey can read minds. He is exactly right about the wrongness of my
thinking. I hope he doesn’t read my mind too much longer, or he will get
horribly tangled in dusty cob webs of ill-conceived good intentions!
Tom Wetmore
> On Jul 20, 2015, at 5:15 PM, Quincey Morris
> wrote:
>
> O
Ken,
Thank you! The lights are coming on. Things can become quite obvious when they
become obvious, can’t they?
Tom Wetmore
> On Jul 20, 2015, at 5:13 PM, Ken Thomases wrote:
>
>> On Jul 20, 2015, at 3:30 PM, Thomas Wetmore wrote:
>>
>> I would really like to be able to do resizing using a
Gary, I am working on an application that supports the old fashioned research
process of using 3x5 index cards to hold sources and research notes.
I have a hierarchy of NSView sub-classes to represent the cards. At the top of
the hierarchy is CardView which simply provides the ability to drag an
On Jul 20, 2015, at 16:41 , Thomas Wetmore wrote:
>
> Here is the mouse-down method with event loop. As you can see I am calling
> setFrameOrigin in the dragging case and setting frame directly in the
> resizing case.
So I think you need to retool your thinking. With auto layout, you no longer
> On Jul 20, 2015, at 4:45 PM, David Duncan wrote:
>
>
>> On Jul 20, 2015, at 1:30 PM, Thomas Wetmore wrote:
>>
>> I really try to figure this stuff out. No kidding. I am trying this simple
>> experiment:
>>
>> I define an NSView that has nothing more than a resize handle, defined as a
>>
Quincey,
Thanks. I’m using Xcode Version 6.4 (6E35b). Mac running 10.10.4. Programming
in Swift 1.2.
Here is the mouse-down method with event loop. As you can see I am calling
setFrameOrigin in the dragging case and setting frame directly in the resizing
case.
override func mouseDown (event:
On Jul 20, 2015, at 13:50 , Gary L. Wade wrote:
>
> Depending on your design, why not just use an NSSplitView to do all that for
> you?
Um, before we go API-hog-wild here, we need to rule out the possibility that
the OP is just Doing It Wrong™. Because I’m 99.% certain that the OP is
just
> On Jul 20, 2015, at 3:30 PM, Thomas Wetmore wrote:
> I define an NSView that has nothing more than a resize handle, defined as a
> rectangular NSBezierPath in its lower right corner. There are no subviews and
> no superviews involved here. I resize the NSView by implementing a mouse
> event
Or NSSplitViewController, if you can target 10.10+.
> On Jul 20, 2015, at 1:50 PM, Gary L. Wade
> wrote:
>
> Depending on your design, why not just use an NSSplitView to do all that for
> you?
> --
> Gary L. Wade (Sent from my iPhone)
> http://www.garywade.com/
> __
Depending on your design, why not just use an NSSplitView to do all that for
you?
--
Gary L. Wade (Sent from my iPhone)
http://www.garywade.com/
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comme
> On Jul 20, 2015, at 1:30 PM, Thomas Wetmore wrote:
>
> I really try to figure this stuff out. No kidding. I am trying this simple
> experiment:
>
> I define an NSView that has nothing more than a resize handle, defined as a
> rectangular NSBezierPath in its lower right corner. There are no
On Jul 20, 2015, at 13:30 , Thomas Wetmore wrote:
>
> When I instantiate one of these views and place it in an NSWindow, I can drag
> it around and I can resize it, as expected. Notably, however, I can resize it
> down to zero size (and even smaller!), even though the two constraints exist.
>
I really try to figure this stuff out. No kidding. I am trying this simple
experiment:
I define an NSView that has nothing more than a resize handle, defined as a
rectangular NSBezierPath in its lower right corner. There are no subviews and
no superviews involved here. I resize the NSView by im
15 matches
Mail list logo