Skip to content

SR-794 pass supplied subpath through to URLForResource rather than nil #275

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

Merged
merged 1 commit into from
Mar 7, 2016

Conversation

seabaylea
Copy link
Contributor

SR-794 reports an issue with NSBundle.pathForResource() whereby it returns nil instead of the expected resource.

It looks like this is cause because the supplied subpath value isn't passed down to the underlying URLForResource() call.

I've fixed that and added an implementation of the test case to TestNSBundle. I've done that under the existing test_URLsForResourcesWithExtension() test as a separate call and check as its a similar test and reuses the same bundle setup/teardown. I can spin it off as a separate test though if it makes sense.

@parkera
Copy link
Contributor

parkera commented Mar 4, 2016

Looks good. Will run through tests then we can merge.

@parkera
Copy link
Contributor

parkera commented Mar 4, 2016

@swift-ci please test

phausler added a commit that referenced this pull request Mar 7, 2016
SR-794 pass supplied subpath through to URLForResource rather than nil
@phausler phausler merged commit a1d15a1 into swiftlang:master Mar 7, 2016
@seabaylea seabaylea deleted the nsbundle branch March 7, 2016 19:51
kateinoigakukun pushed a commit to kateinoigakukun/swift-corelibs-foundation that referenced this pull request Oct 11, 2023
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

Successfully merging this pull request may close these issues.

3 participants