cocoa hook