7
7
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8
8
//
9
9
10
- import CoreFoundation
11
10
12
11
public class NSAttributedString : NSObject , NSCopying , NSMutableCopying , NSSecureCoding {
13
12
14
- private var _cfAttributedString : CFAttributedString
15
-
16
- internal init ( cfObject: CFAttributedString ) {
17
- _cfAttributedString = cfObject
18
- }
19
-
20
13
public required init ? ( coder aDecoder: NSCoder ) {
21
14
NSUnimplemented ( )
22
15
}
@@ -45,16 +38,10 @@ public class NSAttributedString : NSObject, NSCopying, NSMutableCopying, NSSecur
45
38
NSUnimplemented ( )
46
39
}
47
40
48
- public var string : String {
49
- return CFAttributedStringGetString ( _cfAttributedString) . _swiftObject
50
- }
51
-
41
+ public var string : String { NSUnimplemented ( ) }
52
42
public func attributesAtIndex( _ location: Int , effectiveRange range: NSRangePointer ) -> [ String : AnyObject ] { NSUnimplemented ( ) }
53
43
54
- public var length : Int {
55
- return CFAttributedStringGetLength ( _cfAttributedString)
56
- }
57
-
44
+ public var length : Int { NSUnimplemented ( ) }
58
45
public func attribute( _ attrName: String , atIndex location: Int , effectiveRange range: NSRangePointer ) -> AnyObject ? { NSUnimplemented ( ) }
59
46
public func attributedSubstringFromRange( _ range: NSRange ) -> NSAttributedString { NSUnimplemented ( ) }
60
47
@@ -63,20 +50,9 @@ public class NSAttributedString : NSObject, NSCopying, NSMutableCopying, NSSecur
63
50
64
51
public func isEqualToAttributedString( _ other: NSAttributedString ) -> Bool { NSUnimplemented ( ) }
65
52
66
- public init ( string str: String ) {
67
- _cfAttributedString = CFAttributedStringCreate ( kCFAllocatorDefault, str. _cfObject, nil )
68
- super. init ( )
69
- }
70
-
71
- public init ( string str: String , attributes attrs: [ String : AnyObject ] ? ) {
72
- _cfAttributedString = CFAttributedStringCreate ( kCFAllocatorDefault, str. _cfObject, attrs? . _cfObject)
73
- super. init ( )
74
- }
75
-
76
- public init ( attributedString attrStr: NSAttributedString ) {
77
- _cfAttributedString = CFAttributedStringCreateCopy ( kCFAllocatorDefault, attrStr. _cfAttributedString)
78
- super. init ( )
79
- }
53
+ public init ( string str: String ) { NSUnimplemented ( ) }
54
+ public init ( string str: String , attributes attrs: [ String : AnyObject ] ? ) { NSUnimplemented ( ) }
55
+ public init ( attributedString attrStr: NSAttributedString ) { NSUnimplemented ( ) }
80
56
81
57
public func enumerateAttributesInRange( _ enumerationRange: NSRange , options opts: NSAttributedStringEnumerationOptions , usingBlock block: ( [ String : AnyObject ] , NSRange , UnsafeMutablePointer < ObjCBool > ) -> Void ) { NSUnimplemented ( ) }
82
58
public func enumerateAttribute( _ attrName: String , inRange enumerationRange: NSRange , options opts: NSAttributedStringEnumerationOptions , usingBlock block: ( AnyObject ? , NSRange , UnsafeMutablePointer < ObjCBool > ) -> Void ) { NSUnimplemented ( ) }
0 commit comments