"Jittery" NSMatrix resize problems.
"Jittery" NSMatrix resize problems.
- Subject: "Jittery" NSMatrix resize problems.
- From: Aaron Kobayashi <email@hidden>
- Date: Mon, 25 Sep 2006 09:48:51 -0500
Hello everyone.
I have a 10x10 NSMatrix that "jitters" a lot when being live-
resized. I suspect that the cause of this is related to the fact
that every cell in an NSMatrix must be the same size, so the NSMatrix
can only increment in multiples of 10 pixels (in my case).
I also seem to recall something about OSX's display technology as
being "pixel independent", invalidating my previous hypothesis.
So my question to you all is, how can I make a 10x10 matrix smoothly
perform a live resize? Below is one way to reproduce the problem.
Thanks,
Aaron K.
---Snip Snip Snip ---
How to reproduce using Interface Builder
1) Drop an NSTextField, change the text to something small like the
word "The" and turn on the text border (to make the resize issue
obvious).
2) Create a 10x10 matrix using option drag.
3) In inspector->attributes: set x and y spacing to 0, and check
"autosize cells"
4) In inspector->size: check the internal springs for both vertical
and horizontal.
5) To make the issue really obvious, add a horizontal slider directly
above the NSMatrix. Make the same horizontal size, and click
horizontal internal spring to make it resize in the same fashion.
What you will see when running the result:
The horizontal slider resizes smoothly, but the matrix jitters with
each step. Since the two are supposed to maintain the same width,
but fail to, the live resize is ugly, and the edge alignment is lost.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden