Re: Drawing views
Re: Drawing views
- Subject: Re: Drawing views
- From: Livio <email@hidden>
- Date: Fri, 02 Jun 2006 11:12:31 +0200
Stephane wrote:
the drawinRect has nothing to do with the view rect, it's either a
portion of the latter or the latter. It's the portion of the view
which needs to be refreshed.
Joshua wrote:
The NSRect you are sent in NSView:drawRect contains relative
coordinates. It should automatically stay on the left-bottom when the
window is resized. Try opening IB and putting a control at the bottom-
left, and then run the app. Resize the window and it should stay in
the bottom-left.
It happens that if I create a control with IB, mark the sizes for
example as NSViewMinYMargin + NSViewMaxXMargin, resizing the window it
remains always where I put it, and as I put it; while with my view (no
matter if I create it programmatically or with IB) when the window
becomes smaller than the view this one begins to shrink. (Apart that if
the window is bigger or smaller than the image this won't be where I
want - more down or more up.)
I really tried in any way, but can only guess that I miss to signal
something to the app (while a control actually does).
Any further idea?
Thanks in advance,
livio.
_______________________________________________
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