Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Animations were possible before blocks appeared. The non-block-based APIs is still around:

-beginAnimations:context: -commitAnimations

etc.

The "completion" feature can be implemented via delegating. One thing to note here is: If you don't need the completion block you can also just write:

myObj.position.x += 10.0

without blocks at all. At least on OS X every animatable object as an animator proxy that works like this:

[myObj animator].position.x += 10.0;

Then an implicit animation kicks in that can be configured. The default implicit animation duration is 0.25s but this can all the configured.

The original Core Animation (without blocks) made working with animations so much easier and cooler. You could do everything you can do with the blocks API - although the blocks API is much nicer of course.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: