github / Rebel

Cocoa framework for improving AppKit
Other
1.13k stars 111 forks source link

Add animating container views. #98

Closed alanjrogers closed 11 years ago

alanjrogers commented 11 years ago

This PR adds two container NSView subclasses, that use Auto-Layout to (optionally) animate the swapping of their content views.

You can see an example of how they look in GitHub for Mac.

RBLExpandingContainerView

RBLSlidingContainerView

joshaber commented 11 years ago

:diamond_shape_with_a_dot_inside:

jspahrsummers commented 11 years ago

Do we actually want an AL-enabled view in Rebel? Let's talk about that.

jwilling commented 11 years ago

Is it just the fault of the recording software that makes that animation look terrible?

dannygreg commented 11 years ago

Yo @alanjrogers what's with the cray demos… they look horrendous :p.

alanjrogers commented 11 years ago

Is it just the fault of the recording software that makes that animation look terrible?

Uh, yeah not sure what happened there, they looked fine when I first captured them. :rage:

alanjrogers commented 11 years ago

Do we actually want an AL-enabled view in Rebel?

I don't see why not, they'll only enable AL on a window if you include them in your view hierarchy.

@dannygreg @joshaber any thoughts?

alanjrogers commented 11 years ago

fixed the videos (seriously WTF)

dannygreg commented 11 years ago

Do we actually want an AL-enabled view in Rebel?

It's possibly better than adding RCL as a dependency. Not to mention all the work has already been done.

jspahrsummers commented 11 years ago

I agree with that, just want to figure out if it's a good idea or not to offer a mix of AL and non-AL views in a library.

As long as it's clearly documented, I'm alright with it.

alanjrogers commented 11 years ago

:diamonds:

alanjrogers commented 11 years ago

bump

joshaber commented 11 years ago

:diamond_shape_with_a_dot_inside:

alanjrogers commented 11 years ago

:chart_with_upwards_trend:

joshaber commented 11 years ago

:boom: