+(defun company-clang-objc-templatify (selector)
+ (let* ((end (point))
+ (beg (- (point) (length selector)))
+ (templ (company-template-declare-template beg end)))
+ (save-excursion
+ (goto-char beg)
+ (while (search-forward ":" end t)
+ (replace-match ": ")
+ (incf end 2)
+ (company-template-add-field templ (1- (match-end 0)) "<arg>"))
+ (delete-char -1))
+ (company-template-move-to-first templ)))
+