mirror of
https://github.com/UrbanApps/Armchair.git
synced 2026-01-12 05:20:25 +01:00
Swift 1.2 compatibility #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kwhitaker on GitHub (Apr 9, 2015).
Hello,
I updated XCode to 6.3 today, which includes Swift 1.2, and that seems to have broken Armchair. Several of the errors I think I was able to fix myself (implicitly casting
NSStringintoStringis no longer allowed, it seems), but I'm getting a few errors which, frankly, I'm not knowledgable enough to fix.All of these are in Armchair.swift, so far.
public class StandardUserDefaults: ArmchairDefaultsObjectrenders "Type StandardUserDefaults does not conform to protocol ArmchairDefaultsObject.private var userDefaultsObject:ArmchairDefaultsObject? = StandardUserDefaults()renders "StandardUserDefaults is not convertibel to ArmchairDefaultsObject?"let currentVersion = NSBundle.mainBundle().objectForInfoDictionaryKey(kCFBundleVersionKey) as? NSStringrenders "Type of expression is ambiguous without more context."I'm going to do my best to get some answers for these, but I thought it might be helpful for you to know (and maybe you have some quick solutions).
@coneybeare commented on GitHub (Apr 10, 2015):
Thanks for digging in. I am not going to be able to work on Armchair for a bit, so any PR's would be much appreciated. Thanks for the heads up.
@nickoneill commented on GitHub (Apr 11, 2015):
Added in #12