• 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: best way to deal with resizable controls that can go to zero?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: best way to deal with resizable controls that can go to zero?


  • Subject: Re: best way to deal with resizable controls that can go to zero?
  • From: Fritz Anderson <email@hidden>
  • Date: Mon, 24 Sep 2007 13:45:18 -0500

On 24 Sep 2007, at 1:36 PM, mike woodworth wrote:

I'm a recent convert to Cocoa, and after a few months of development, I'm putting the finishing touches on my first Cocoa app. One annoyance I've run into is dealing with resizable views and springs. The app has a sidebar that needs to collapse, and the controls within it are set to resize, but if the sidebar closes beyond the point where a control gets a width of 0, things go to pot.

What is the best practice for working around this? Is there a common solution? I can handle all the resizing programmatically, but I'm hoping someone can offer an easier solution.

You have a situation in which the minimum size of the sidebar is greater than zero.


You can still collapse the sidebar, even if a minimum size is set. Start following the documentation for NSSplitView at the delegate method splitView:canCollapseSubview: .

	— F

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >best way to deal with resizable controls that can go to zero? (From: mike woodworth <email@hidden>)

  • Prev by Date: Re: Instantiate custom NSWindow
  • Next by Date: Re: Instantiate custom NSWindow
  • Previous by thread: best way to deal with resizable controls that can go to zero?
  • Next by thread: How to disable non-roman input in NSTextField
  • Index(es):
    • Date
    • Thread