Revision: 15738
          http://sourceforge.net/p/skim-app/code/15738
Author:   hofman
Date:     2025-10-31 10:17:32 +0000 (Fri, 31 Oct 2025)
Log Message:
-----------
remove unused method, declare type

Modified Paths:
--------------
    trunk/NSAttributedString_SKExtensions.h
    trunk/NSAttributedString_SKExtensions.m

Modified: trunk/NSAttributedString_SKExtensions.h
===================================================================
--- trunk/NSAttributedString_SKExtensions.h     2025-10-30 17:32:56 UTC (rev 
15737)
+++ trunk/NSAttributedString_SKExtensions.h     2025-10-31 10:17:32 UTC (rev 
15738)
@@ -46,8 +46,6 @@
 @property (nonatomic, readonly) NSAttributedString 
*attributedStringByRemovingTextColorAttribute;
 @property (nonatomic, readonly) NSAttributedString 
*attributedStringByAddingControlTextColorAttribute;
 
-@property (nonatomic, readonly) NSAttributedString 
*accessibilityAttributedString;
-
 @property (nonatomic, readonly) NSString *xmlString;
 @property (nonatomic, readonly) NSData *RTFRepresentation;
 
@@ -71,7 +69,7 @@
 
 @interface NSTextStorage (SKExtensions)
 
-@property (nonatomic, copy) id scriptingRTF;
+@property (nonatomic, copy) NSData *scriptingRTF;
 
 @end
 

Modified: trunk/NSAttributedString_SKExtensions.m
===================================================================
--- trunk/NSAttributedString_SKExtensions.m     2025-10-30 17:32:56 UTC (rev 
15737)
+++ trunk/NSAttributedString_SKExtensions.m     2025-10-31 10:17:32 UTC (rev 
15738)
@@ -64,14 +64,6 @@
     return self;
 }
 
-- (NSAttributedString *)accessibilityAttributedString {
-    static NSTextFieldCell *cell = nil;
-    if (cell == nil)
-        cell = [[NSTextFieldCell alloc] init];
-    [cell setAttributedStringValue:self];
-    return [cell accessibilityAttributedStringForRange:NSMakeRange(0, [self 
length])];
-}
-
 #pragma mark Templating support
 
 - (NSString *)xmlString {
@@ -146,11 +138,11 @@
 
 #pragma mark Scripting support
 
-- (id)scriptingRTF {
+- (NSData *)scriptingRTF {
     return [self RTFRepresentation];
 }
 
-- (void)setScriptingRTF:(id)data {
+- (void)setScriptingRTF:(NSData *)data {
     if (data) {
         NSAttributedString *attrString = [[NSAttributedString alloc] 
initWithData:data options:@{} documentAttributes:NULL error:NULL];
         if (attrString)

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to