[SOLVED] Re: setFrame: not working in custom event loop

2009-03-11 Thread Mike Manzano
That was exactly it. Thank you very much! Mike On Mar 11, 2009, at 11:48 AM, Andy Lee wrote: I'm guessing the problem is that you are only calling setFrame: on subview 0, thereby increasing the total width of the subviews. You are assuming subview 1 will adjust by the same amount as you a

Re: setFrame: not working in custom event loop

2009-03-11 Thread Andy Lee
I'm guessing the problem is that you are only calling setFrame: on subview 0, thereby increasing the total width of the subviews. You are assuming subview 1 will adjust by the same amount as you added/ subtracted from subview 0. But actually, adjustSubviews scales both subviews down so the

Re: setFrame: not working in custom event loop

2009-03-11 Thread Mike Manzano
Well, I just rewrote it, and it's doing exactly the same thing. You can see this from the debug output: 2009-03-11 11:15:50.092 SkootUI[13145:10b] Will Set To: {{0, 0}, {743, 604}} 2009-03-11 11:15:50.097 SkootUI[13145:10b] After: {{0, 0}, {743, 604}} 2009-03-11 11:15:50.179 SkootUI[131

Re: setFrame: not working in custom event loop

2009-03-11 Thread Mike Manzano
Nope that didn't do it. Same symptoms. Any other ideas before I throw in the gauntlet and rewrite it? On Mar 10, 2009, at 5:41 PM, Jesper Storm Bache wrote: When you modify a window it registers itself as needing redrawing in the current run loop. If you are performing active tracking, you

Re: setFrame: not working in custom event loop

2009-03-10 Thread Mike Manzano
Thanks, I will try that tomorrow. The code isn't mine, I'm just trying to use it with minimal change. If this doesn't fix it, I probably will just rewrite it to use the separate events. Mike On Mar 10, 2009, at 5:41 PM, Jesper Storm Bache wrote: When you modify a window it registers itself

Re: setFrame: not working in custom event loop

2009-03-10 Thread Jesper Storm Bache
When you modify a window it registers itself as needing redrawing in the current run loop. If you are performing active tracking, you may have to do so yourself. Try calling [window flushWindowIfNeeded] on your window at the end of your loop (inside the loop). What is the reason for your exp

setFrame: not working in custom event loop

2009-03-10 Thread Mike Manzano
Hi, I am tracking the mouse pointer to dynamically resize a splitter as a separate drag handle is dragged. This is done in mouseDown: of the drag handle with a custom event loop. The loop looks like this: while (keepOn) { NSAutoreleasePool *pool = [[NSAutoreleasePool all