Re: Window position updates on demand?

2015-12-17 Thread kata
In my case, my window has no title bar and no frame, I do dragging window by myself. In the NSView in the window - (void)mouseDown:(NSEvent*)event { self.mouse = [event locationInWindow]; } - (void)mouseDragged:(NSEvent *)event { NSPoint location = [NSEvent mouseLocation]; location.x

Re: Window position updates on demand?

2015-12-17 Thread Steve Mills
> On Dec 17, 2015, at 18:32, Cem Karan wrote: > > All that works, but the problem is that I'm not getting window positions > quickly enough; as long as a window is being dragged, it won't send out a > notification about its position, which means all the windows get out of sync > with one anoth

Re: Window position updates on demand?

2015-12-17 Thread Matt Reagan
NSWindow -frame doesn't update synchronously when dragging (which is weird, because other NSWindow public API that also depend on the exact window frame, e.g. NSWindow -mouseLocationOutsideOfEventStream, work as expected during window drags). One option might be to grab the NSWindow's rect via

Window position updates on demand?

2015-12-17 Thread Cem Karan
Hi all, I'm working on an application that has one primary window and multiple support windows. The support windows show auxiliary information for what is in the primary window, but not off to the side; they are more like color filters or X-ray glasses. You slide them over the primary, and the

Re: output string like a teleprinter (NSTextView)

2015-12-17 Thread Graham Cox
> On 18 Dec 2015, at 1:49 AM, sqwarqDev wrote: > > A couple of years ago I was messing around with NSTextView and NSTextStorage > and accidentally ended up with a method that printed my string (could have > been attributed string) to my textview one character at a time, rather like > an old

output string like a teleprinter (NSTextView)

2015-12-17 Thread sqwarqDev
A couple of years ago I was messing around with NSTextView and NSTextStorage and accidentally ended up with a method that printed my string (could have been attributed string) to my textview one character at a time, rather like an old fashioned teleprinter. At the time, that wasn’t the effect