• 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: How can a view know when its superview changes sizes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can a view know when its superview changes sizes?


  • Subject: Re: How can a view know when its superview changes sizes?
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 26 Apr 2005 15:59:49 -0400
  • Organization: Rogue Research

On 2005-04-26 11:40, Shawn Erickson said:

>Consider NSViewBoundsDidChangeNotification or assuming you are dealing
>with a subclassing of NSView then as you noted override
>resizeWithOldSuperviewSize:. You should get this message if the
>super-view has auto-resizing enabled (see setAutoresizesSubviews:).

hmmm, the setAutoresizesSubviews: docs say "View objects do autoresize
their subviews by default."  I have done nothing to set it to NO, and
even called

[[self superview] setAutoresizesSubviews:YES];

in my view's awakeFromNib, but still resizeWithOldSuperviewSize: in never
called.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
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

References: 
 >How can a view know when its superview changes sizes? (From: "Sean McBride" <email@hidden>)
 >Re: How can a view know when its superview changes sizes? (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: NSFileModificationDate after 2039
  • Next by Date: Re: Subclassing Catch-22
  • Previous by thread: Re: How can a view know when its superview changes sizes?
  • Next by thread: Re: How can a view know when its superview changes sizes?
  • Index(es):
    • Date
    • Thread