simple dependancy injection for cocoa