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

[SOLVED] Re: NSView not resizing when parent view resizes


  • Subject: [SOLVED] Re: NSView not resizing when parent view resizes
  • From: Michael Becker <email@hidden>
  • Date: Thu, 9 Dec 2004 15:14:20 +0100

Am 09.12.2004 um 14:26 schrieb Louis C. Sacha:
NSBox instances use an instance of NSView as a content view, so you probably don't want to directly add your custom view as a subview of the NSBox.

Aaaah! Okay, thank you! I completely missed that :-) Alright. Thanks a lot.


[[container contentView] addSubview:yourCustomView];

I'm doing it now by going with:

[ container setContentView:myCustomView];

which works like a charm :-) Thanks!

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


References: 
 >NSView not resizing when parent view resizes (From: Michael Becker <email@hidden>)
 >Re: NSView not resizing when parent view resizes (From: Michael Becker <email@hidden>)
 >Re: NSView not resizing when parent view resizes (From: Ricky Sharp <email@hidden>)
 >Re: NSView not resizing when parent view resizes (From: Michael Becker <email@hidden>)
 >Re: NSView not resizing when parent view resizes (From: "John C. Randolph" <email@hidden>)
 >Re: NSView not resizing when parent view resizes (From: Michael Becker <email@hidden>)
 >Re: NSView not resizing when parent view resizes (From: "Louis C. Sacha" <email@hidden>)

  • Prev by Date: Re: NSView not resizing when parent view resizes
  • Next by Date: undefined symbols
  • Previous by thread: Re: NSView not resizing when parent view resizes
  • Next by thread: NSScanner Madness
  • Index(es):
    • Date
    • Thread