Between b4 and b5, Apple has changed some NSString methods in Swift. I used to 
be able to do this:

let s : String = ...
let s2 = s.stringByExpandingTildeInPath.stringByAppendingPathComponent("foo")

Now I have to write:

let s2 = ((s as NSString).stringByExpandingTildeInPath as 
NSString).stringByAppendingPathComponent("foo")

How is this better? Am I overlooking something else that makes this 
straightforward again (e.g. native String methods that do the same as the 
NSString methods)?

TIA,


-- 
Rick Mann
rm...@latencyzero.com



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to