add support delegates to prevent error message in swift.

![screen shot 2014-12-03 at 1 23 49 am](https://cloud.githubusercontent.com/assets/5866/5278149/12cd3c02-7a8b-11e4-88b3-bab2757549f9.png)