NSString extension functions from NSPathUtilities are not usable on String
| Originator: | an00na | ||
| Number: | rdar://22192414 | Date Originated: | 07-Aug-2015 01:57 PM |
| Status: | Behaves as Intended | Resolved: | |
| Product: | Developer Tools | Product Version: | Swift 2.0 beta 5 |
| Classification: | Other Bug | Reproducible: | Always |
NSString functions like lastPathComponent are no long usable on String in beta 5. They should. Sample code: http://cl.ly/2P0o3q050K0D
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!
Apple Developer Relations03-Feb-2016 04:03 PM
This issue behaves as intended based on the following:
These APIs are no longer supported and should not be exposed on String. We recommend you use NSURL instead.