Cocoa port of new API.