Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Objective-C blocks gaining spurious spaces #46

Closed
tonyarnold opened this issue Nov 18, 2011 · 3 comments
Closed

Objective-C blocks gaining spurious spaces #46

tonyarnold opened this issue Nov 18, 2011 · 3 comments

Comments

@tonyarnold
Copy link

I'm not sure if this is the same issue as #22 (it looks similar), but I'm seeing some odd behaviour around formatting Objective-C blocks:

typedef void (^ CancelBlock)();
typedef void (^ PhotoPickedBlock)(NSDictionary *chosenItemDetails);

Should be:

typedef void (^CancelBlock)();
typedef void (^PhotoPickedBlock)(NSDictionary *chosenItemDetails);

And then when it is used in the header (.h):

+ (void)imagePickerWithTitle:(NSString *)title showInView:(UIView *)view presentVC:(UIViewController *)presentView onPhotoPicked:(PhotoPickedBlock) photoPicked onCancel:(CancelBlock)cancelled;

Should be:

+ (void)imagePickerWithTitle:(NSString *)title showInView:(UIView *)view presentVC:(UIViewController *)presentView onPhotoPicked:(PhotoPickedBlock)photoPicked onCancel:(CancelBlock)cancelled;

Oddly, it only seems to affect the first declaration, and the implementation (.m) file is unaffected by this problem.

@bengardner
Copy link
Collaborator

Probably fixed.

@overfocus
Copy link

Seeing same behavior on typedefs as tonyarnold on HEAD 126a8b4

Let me know what information you need.

@Whirlwind
Copy link



- (HTBKVObservation *)observe:(id)observedObject
                      keyPath:(NSString *)keyPath
                      options:(NSKeyValueObservingOptions)options
                     callback:(void(^)     (HTBKVObservation *observation, NSDictionary *changeDictionary))callbackBlock;

the void(^) will not remove the spaces. I use HEAD now.
How do I set to remove the spaces?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants