• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: (got it) lower-right origin on NSView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • OT: View/subview setup [Was: Re: (got it) lower-right origin on NSView?]
      • From: Michael Gersten <email@hidden>
References: 
 >Re: (got it) lower-right origin on NSView? (From: Philip George <email@hidden>)

  • Prev by Date: Re: Retain/release objects in an array...
  • Next by Date: double click call textedit
  • Previous by thread: Re: (got it) lower-right origin on NSView?
  • Next by thread: OT: View/subview setup [Was: Re: (got it) lower-right origin on NSView?]
  • Index(es):
    • Date
    • Thread