Skip to content

[SR-765] Implement NSNumberFormatter.stringForObjectValue() #279

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 8, 2016

Conversation

seabaylea
Copy link
Contributor

SR 765 reports that NSNumberFormatter is missing an implementation for stringForObjectValue().

I've added an implementation for that which follows the NSFormatter Class Reference by returning nil if the class is incorrect, otherwise returning a formatted string. The formatted string is obtained by calling through to stringFromNumber(), which also deals with the localisation of the string.

@phausler
Copy link
Contributor

phausler commented Mar 8, 2016

looks good to me

phausler added a commit that referenced this pull request Mar 8, 2016
[SR-765] Implement NSNumberFormatter.stringForObjectValue()
@phausler phausler merged commit dee389b into swiftlang:master Mar 8, 2016
@seabaylea seabaylea deleted the NSNumberFormatter branch March 8, 2016 15:34
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.

2 participants