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

Compilation Issue on Mountain Lion #42

Closed
roverk8y opened this issue May 6, 2014 · 1 comment
Closed

Compilation Issue on Mountain Lion #42

roverk8y opened this issue May 6, 2014 · 1 comment

Comments

@roverk8y
Copy link

roverk8y commented May 6, 2014

there is issue in scoreItem method of FAItemScoringMethod.m
when i build the project , i get the following message
No visible @interface for 'NSArray' declares the selector 'firstObject'

changed the following code
"NSRange range = [[rangesArray firstObject] rangeValue];"
to
"NSRange range = [[rangesArray objectAtIndex:0]rangeValue];"
then it work well

@slazyk slazyk changed the title No visible @interface for 'NSArray' declares the selector 'firstObject' Compilation Issue on Mountain Lion May 6, 2014
@slazyk
Copy link
Member

slazyk commented May 6, 2014

Thanks, I forgot that while according to the new headers and docs it is available since 10.6 it only appeared as public in the headers in 10.9. I will probably just add a category to silence this error in the next release. In the meantime you should also be able to compile by changing it as you described (even though it changes meaning for an empty array, rangesArray should not be empty here), or just use a precompiled binary available in Releases.

slazyk added a commit that referenced this issue May 6, 2014
@slazyk slazyk closed this as completed in 09d3638 May 12, 2014
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