What do you mean, it didn't work? It definitely works to get the
content view.
but to make a long story short, I have a solution.
I need a rectangle inside the window to draw on. The window itself
includes the title bar and the bit around the bottom where the edge
isn't square. So I made an HiView that sits inside the window, and
this works nicely: there's a window which has the metal finish
with the bitmap inside it. In the inspector, when i look at the
HiView, x is set to 0 and y is set to 20.
Which y? You really need to be more specific when you post. Vague
statements are rarely useful.
Perhaps this explains the y offset. The width and height seem to
explain the top margin: the width is the same as the window, and
the height is 20 less than the enclosing window. Apparently y in
the inspector starts at the bottom, which seems to be true for some
things but not others.
IIRC you can set whether it should be from the top or the bottom.
Then when I resize, (which I always do after creating it), it
maintains the 'y' and the height difference in absolute pixels.
Solution: Find out the difference in size of the view and the
window, and resize accordingly
The goal ws to get rid of the magic number 20 in my code, and this
did it: the heightDiff is 20.
This doesn't really seem like a good solution IMO, because, you don't
really understand what you've solved, you just found something that
works.
Larry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden