Re: (got it) lower-right origin on NSView?
Re: (got it) lower-right origin on NSView?
- Subject: Re: (got it) lower-right origin on NSView?
- From: j o a r <email@hidden>
- Date: Thu, 25 Jul 2002 11:16:44 +0200
If you'd like to keep it tucked in the lower right corner of it's superview that would be:
[myView setAutoResizingMask: (NSViewMinXMargin | NSViewMaxYMargin)];
As you might have found out from the docs this has nothing to do with the origin of the coordinate systems for the frame and bounds rectangles of the the views in question.
This method set a bitmask in a view that it's superview can access when it (the superview) is resized, to find out how to resize and / or reposition it's contained subviews.
The superview needs to have "autoresizesSubviews" enabled (and it is by default) for this functionality to be activated.
j o a r
On Thursday, Jul 25, 2002, at 05:40 Europe/Stockholm, Philip George wrote:
Not sure what Mask should be set to yet, but that shouldn't take too much effort to figure out.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.