Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (got it) lower-right origin on NSView?



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.

References: 
 >Re: (got it) lower-right origin on NSView? (From: Philip George <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.