|
A split call is a jQuery-like call, replicating ObjC's calling syntax where the method name is interwoven with its arguments. ObjC callThe method name is setValue:forKey:, the call weaves method name and arguments. [obj setValue:@"hello" forKey:@"key"]; Default JSCocoa callThe ObjC method name is translated to setValue_forKey_. obj.setValue_forKey_('hello', 'key') Can omit trailing underscore : obj.setValue_forKey('hello', 'key') Split callThe method name is extracted from the function (set) and its hash keys (value, forKey). obj.set({ value : 'hello', forKey : 'key' })
|