Revision: 15025
http://sourceforge.net/p/skim-app/code/15025
Author: hofman
Date: 2025-03-26 16:57:47 +0000 (Wed, 26 Mar 2025)
Log Message:
-----------
No need to store target and action, NSControl already does that since 10.10
Modified Paths:
--------------
trunk/SKColorSwatch.h
trunk/SKColorSwatch.m
Modified: trunk/SKColorSwatch.h
===================================================================
--- trunk/SKColorSwatch.h 2025-03-26 16:44:37 UTC (rev 15024)
+++ trunk/SKColorSwatch.h 2025-03-26 16:57:47 UTC (rev 15025)
@@ -55,9 +55,6 @@
NSInteger focusedIndex;
NSInteger draggedIndex;
- SEL action;
- id target;
-
BOOL autoResizes;
BOOL selects;
BOOL alternate;
Modified: trunk/SKColorSwatch.m
===================================================================
--- trunk/SKColorSwatch.m 2025-03-26 16:44:37 UTC (rev 15024)
+++ trunk/SKColorSwatch.m 2025-03-26 16:57:47 UTC (rev 15025)
@@ -50,8 +50,6 @@
#define COLORS_KEY @"colors"
-#define ACTION_KEY @"action"
-#define TARGET_KEY @"target"
#define AUTORESIZES_KEY @"autoResizes"
#define SELECTS_KEY @"selects"
#define BEZELHEIGHT_KEY @"bezelHeight"
@@ -139,8 +137,6 @@
self = [super initWithFrame:frame];
if (self) {
colors = [[NSMutableArray alloc] initWithObjects:[NSColor whiteColor],
nil];
- action = NULL;
- target = nil;
autoResizes = YES;
selects = NO;
bezelHeight = 22.0;
@@ -170,8 +166,6 @@
self = [super initWithCoder:decoder];
if (self) {
colors = [[NSMutableArray alloc] initWithArray:[decoder
decodeObjectForKey:COLORS_KEY]];
- action = NSSelectorFromString([decoder decodeObjectForKey:ACTION_KEY]);
- target = [decoder decodeObjectForKey:TARGET_KEY];
autoResizes = [decoder decodeBoolForKey:AUTORESIZES_KEY];
selects = [decoder decodeBoolForKey:SELECTS_KEY];
bezelHeight = [decoder decodeDoubleForKey:BEZELHEIGHT_KEY];
@@ -193,8 +187,6 @@
- (void)encodeWithCoder:(NSCoder *)coder {
[super encodeWithCoder:coder];
[coder encodeObject:colors forKey:COLORS_KEY];
- [coder encodeObject:NSStringFromSelector(action) forKey:ACTION_KEY];
- [coder encodeConditionalObject:target forKey:TARGET_KEY];
[coder encodeBool:autoResizes forKey:AUTORESIZES_KEY];
[coder encodeBool:selects forKey:SELECTS_KEY];
[coder encodeDouble:bezelHeight forKey:BEZELHEIGHT_KEY];
@@ -458,14 +450,6 @@
#pragma mark Accessors
-- (SEL)action { return action; }
-
-- (void)setAction:(SEL)newAction { action = newAction; }
-
-- (id)target { return target; }
-
-- (void)setTarget:(id)newTarget { target = newTarget; }
-
- (NSArray *)colors {
return [colors copy];
}
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