autocomplete block arguments

Hello,
I have a method which takes a block as argument:

-(void) fetchStats: ( void (^)(BOOL, NSError *) )fetchDoneBlock;


When I use this method I get a autocomplete proposition from AppCode :

Screen Shot 2012-02-14 at 8.26.48 PM.png

but I don't know how to "accept" this code completion to get this:

Screen Shot 2012-02-14 at 8.27.51 PM.png

Did I miss something ?

Thanks,
Tex

5 comments
Comment actions Permalink

You need to use Smart Completion (Shift+Control+Space) to complete a block skeleton:
Screen Shot 2012-02-21 at 14.16.29 .png

0
Comment actions Permalink

ok thanks !

0
Comment actions Permalink

Hi,
I don't know why but the keyboard shortcut for the Smart Completion does not work. If I hit Ctrl+Shit+Space nothing happens. If I go to Code>Completion>SmartType, it works ...

The keymaps for this in the Preferences are left default.

EDIT: forget this post. It works. I don't know what was wrong.

0
Comment actions Permalink

ok, thanks for the hint

0

Please sign in to leave a comment.