• 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 do I hide/show a status bar?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I hide/show a status bar?


  • Subject: Re: How do I hide/show a status bar?
  • From: Uli Kusterer <email@hidden>
  • Date: Thu, 07 Aug 2014 12:05:26 +0200

On 06 Aug 2014, at 20:31, Ken Thomases <email@hidden> wrote:
> That seems like it would result in ambiguous layout to me.  You might want to make the constraint between the status text and the web view required so that it's always below that and just weaken the one between the status text and the bottom of the window content view, so that it can go below that.  Or maybe just remove that constraint entirely.  That seems excessively constrained to me.

 What I do in such situations is put the contents of the status bar into its own NSView. That NSView has constraints so that its height is fixed, but its width resizes with the superview. It is also bound to the top of the superview, but not the bottom. That way, when I collapse the parent view to zero height, it just "scrolls out" and I don't have to worry about breaking any constraints in the process. Once it is scrolled out, I also hide it, to ensure users don't actually keyboard-navigate into a button in it that they can't see anymore.

 One advantage of this is that you can animate the constraint change and the status bar scrolls out nicely (though I didn't use the content border stuff, so I don't know whether that can be animated as well, but I'd expect that you can use NSWindow's animator for that).

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de


_______________________________________________

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: 
 >How do I hide/show a status bar? (From: Daryle Walker <email@hidden>)
 >Re: How do I hide/show a status bar? (From: Ken Thomases <email@hidden>)
 >Re: How do I hide/show a status bar? (From: Daryle Walker <email@hidden>)
 >Re: How do I hide/show a status bar? (From: Ken Thomases <email@hidden>)

  • Prev by Date: NSNumberFormatter negative and NSWindowsLatin1
  • Next by Date: Getting Segue from TableView
  • Previous by thread: Re: How do I hide/show a status bar?
  • Next by thread: Talking to other apps - again
  • Index(es):
    • Date
    • Thread