NSURL.pathExtension should not be optional
| Originator: | thedov | ||
| Number: | rdar://23941550 | Date Originated: | 17-Dec-2015 02:07 PM |
| Status: | Closed | Resolved: | Duplicate of 23113017 |
| Product: | iOS SDK | Product Version: | 9.1 |
| Classification: | Enhancement | Reproducible: | Always |
Summary: It returns an empty string in at least two cases that you would expect to return nil, and I haven’t been able to come up with a case where it actually returns nil. Steps to Reproduce: Build and run tests for attached sample project Expected Results: Either both tests pass, the API is rewritten to return String instead of String?, or the documentation is updated to reflect when a nil is returned Actual Results: The tests fail, since the pathExtension method returns an empty string in both cases
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!