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

Improve code completion for dot notation #78

Open
maciekish opened this issue May 27, 2015 · 1 comment
Open

Improve code completion for dot notation #78

maciekish opened this issue May 27, 2015 · 1 comment

Comments

@maciekish
Copy link

Hi,
we write a lot of code using dot notation because we think it's easier to read, you don't have to keep track of the number of brackets and so on. Compare:

UIScreen.mainScreen.scale; vs [[UIScreen mainScreen] scale];

Is there any way you could perhaps add better support for this in FuzzyAutocomplete? We get code completion for the UIScreen part, but as soon as i put a dot after it and start typing mainScreen there is no completion any more. This happens in a lot of cases and is very frustrating.

Thanks!

@slazyk
Copy link
Member

slazyk commented Jun 9, 2015

It does not complete without the plugin either, that is because mainScreen is a class method.
The completion list that is generated by Xoce for dot- and method-syntax in this case are different.
The same applies for objects of type id.

It might be easy to make the lists consistent if internally Xcode filters the method list for the dot-notation completions (otherwise it will probably be quite tricky...). If you want to spend some time and try to implement this, I can give you some pointers where to look.

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

2 participants