How to get the bounds as seen by the user?
How to get the bounds as seen by the user?
- Subject: How to get the bounds as seen by the user?
- From: "Theodore H. Smith" <email@hidden>
- Date: Mon, 27 Jun 2005 17:24:29 +0100
I'm trying to find out how wide is my NSTableView, so I can do my own
highly customised column resizing.
So, I tried to use [bounds] to get the width of the NSTableView.
However, this doesn't give good results. The results are usually way
bigger than the user sees them, anywhere from 2x, to 1x (equal).
Where am I going wrong? Did I read something wrong? The docs say this:
"Returns the receiver’s bounds rectangle, which expresses its
location and size in its own coordinate system. The bounds rectangle
may be rotated; use the boundsRotation method to check this."
To me, that would mean that the location should be 0,0 (which it is),
and the width and size should be the same width as size as seen by
the user.
--
http://elfdata.com/plugin/ Industrial strength string processing,
made easy.
"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."
_______________________________________________
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