Documentation Archive Developer
Search

Social Changes for Swift

Social

Declaration
From
class SLComposeServiceViewController : NSViewController, NSTextViewDelegate, NSTextDelegate, NSObjectProtocol {
    func presentationAnimationDidFinish()
    var textView: NSTextView! { get }
    var contentText: String! { get }
    var placeholder: String!
    func didSelectPost()
    func didSelectCancel()
    func cancel()
    func isContentValid() -> Bool
    func validateContent()
    var charactersRemaining: NSNumber!
}
To
class SLComposeServiceViewController : NSViewController, NSTextViewDelegate, NSTextDelegate {
    func presentationAnimationDidFinish()
    var textView: NSTextView! { get }
    var contentText: String! { get }
    var placeholder: String!
    func didSelectPost()
    func didSelectCancel()
    func cancel()
    func isContentValid() -> Bool
    func validateContent()
    var charactersRemaining: NSNumber!
}

Modified SLRequest
Declaration
From
class SLRequest : NSObject {
    init!(forServiceType serviceType: String!, requestMethod requestMethod: SLRequestMethod, URL url: NSURL!, parameters parameters: [NSObject : AnyObject]!) -> SLRequest
    class func requestForServiceType(_ serviceType: String!, requestMethod requestMethod: SLRequestMethod, URL url: NSURL!, parameters parameters: [NSObject : AnyObject]!) -> SLRequest!
    var account: ACAccount!
    var requestMethod: SLRequestMethod { get }
    var URL: NSURL! { get }
    var parameters: [NSObject : AnyObject]! { get }
    func addMultipartData(_ data: NSData!, withName name: String!, type type: String!, filename filename: String!)
    func addMultipartData(_ data: NSData!, withName name: String!, type type: String!)
    func preparedURLRequest() -> NSURLRequest!
    func performRequestWithHandler(_ handler: SLRequestHandler!)
}
To
class SLRequest : NSObject {
     init!(forServiceType serviceType: String!, requestMethod requestMethod: SLRequestMethod, URL url: NSURL!, parameters parameters: [NSObject : AnyObject]!)
    class func requestForServiceType(_ serviceType: String!, requestMethod requestMethod: SLRequestMethod, URL url: NSURL!, parameters parameters: [NSObject : AnyObject]!) -> SLRequest!
    var account: ACAccount!
    var requestMethod: SLRequestMethod { get }
    var URL: NSURL! { get }
    var parameters: [NSObject : AnyObject]! { get }
    func addMultipartData(_ data: NSData!, withName name: String!, type type: String!, filename filename: String!)
    func addMultipartData(_ data: NSData!, withName name: String!, type type: String!)
    func preparedURLRequest() -> NSURLRequest!
    func performRequestWithHandler(_ handler: SLRequestHandler!)
}

Declaration
From
init!(forServiceType serviceType: String!, requestMethod requestMethod: SLRequestMethod, URL url: NSURL!, parameters parameters: [NSObject : AnyObject]!) -> SLRequest
To
init!(forServiceType serviceType: String!, requestMethod requestMethod: SLRequestMethod, URL url: NSURL!, parameters parameters: [NSObject : AnyObject]!)

Raw Value Type
From--
ToInt