• 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
NSView not resizing when parent view resizes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSView not resizing when parent view resizes


  • Subject: NSView not resizing when parent view resizes
  • From: Michael Becker <email@hidden>
  • Date: Tue, 7 Dec 2004 03:06:59 +0100

Hi!

Here's something that bothers me: In my application, I have a custom NSBox which holds an NSView. This NSView is again filled with a couple of controls (TableView, Buttons, etc.). The NSView is defined in Interface Builder and programmatically hooked to the NSBox subclass (actually i have several of these NSViews, changing them programmatically).

Although all size attributes are set correctly (AFAICS) in Interface Builder, the NSView does not seem to resize when the NSBox resizes. Programmatically, I simply use -addSubview: to make the NSView a child of the custom NSBox. Is there anything else I might be missing?

In my NSBox subclass I have implemented the method -(BOOL)autoresizeSubviews to return YES, doesn't seem to do anything.

Cheers,
Michael

_______________________________________________
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


  • Follow-Ups:
    • Re: NSView not resizing when parent view resizes
      • From: Michael Becker <email@hidden>
  • Prev by Date: Re: Retriving the tag of superMenu Items
  • Next by Date: Re: Release understanding help…
  • Previous by thread: Re: Release understanding help…
  • Next by thread: Re: NSView not resizing when parent view resizes
  • Index(es):
    • Date
    • Thread