Stephen Hsu
Stephen Hsu

Reputation: 5187

How to implement this ejecting and withdrawing portion of a window like a drawer?

How to implement following effect with Cocoa:

enter image description here

<-> enter image description here

User can eject and withdraw right portion of window with a button.

Update: How to draw the vertical line in the tool bar?

Upvotes: 0

Views: 92

Answers (1)

spudwaffle
spudwaffle

Reputation: 2925

This is actually part of the window. When you click the button, the window and view just resize into their appropriate positions.

Check out NSViewAnimation.

Upvotes: 2

Related Questions