internal/cocoa: rename _cmd to cmd

This commit is contained in:
Hajime Hoshi 2022-09-16 02:32:05 +09:00
parent 963eb2756a
commit 53df5aaaf0

View File

@ -65,8 +65,8 @@ func NSInvocation_invocationWithMethodSignature(sig NSMethodSignature) NSInvocat
return NSInvocation{objc.ID(class_NSInvocation).Send(sel_invocationWithMethodSignature, sig.ID)} return NSInvocation{objc.ID(class_NSInvocation).Send(sel_invocationWithMethodSignature, sig.ID)}
} }
func (inv NSInvocation) SetSelector(_cmd objc.SEL) { func (inv NSInvocation) SetSelector(cmd objc.SEL) {
inv.Send(sel_setSelector, _cmd) inv.Send(sel_setSelector, cmd)
} }
func (inv NSInvocation) SetTarget(target objc.ID) { func (inv NSInvocation) SetTarget(target objc.ID) {
@ -89,8 +89,8 @@ type NSMethodSignature struct {
objc.ID objc.ID
} }
func NSMethodSignature_instanceMethodSignatureForSelector(self objc.ID, _cmd objc.SEL) NSMethodSignature { func NSMethodSignature_instanceMethodSignatureForSelector(self objc.ID, cmd objc.SEL) NSMethodSignature {
return NSMethodSignature{self.Send(sel_instanceMethodSignatureForSelector, _cmd)} return NSMethodSignature{self.Send(sel_instanceMethodSignatureForSelector, cmd)}
} }
// NSMethodSignature_signatureWithObjCTypes takes a string that represents the type signature of a method. // NSMethodSignature_signatureWithObjCTypes takes a string that represents the type signature of a method.