Revision: 12134
http://sourceforge.net/p/skim-app/code/12134
Author: hofman
Date: 2021-02-27 15:58:40 +0000 (Sat, 27 Feb 2021)
Log Message:
-----------
Use cell to hold action and target
Modified Paths:
--------------
trunk/SKColorSwatch.h
trunk/SKColorSwatch.m
Modified: trunk/SKColorSwatch.h
===================================================================
--- trunk/SKColorSwatch.h 2021-02-27 15:07:12 UTC (rev 12133)
+++ trunk/SKColorSwatch.h 2021-02-27 15:58:40 UTC (rev 12134)
@@ -52,9 +52,6 @@
NSInteger moveIndex;
CGFloat modifyOffset;
- SEL action;
- id target;
-
BOOL autoResizes;
BOOL selects;
}
Modified: trunk/SKColorSwatch.m
===================================================================
--- trunk/SKColorSwatch.m 2021-02-27 15:07:12 UTC (rev 12133)
+++ trunk/SKColorSwatch.m 2021-02-27 15:58:40 UTC (rev 12134)
@@ -136,8 +136,6 @@
self = [super initWithFrame:frame];
if (self) {
colors = [[NSMutableArray alloc] initWithObjects:[NSColor whiteColor],
nil];
- action = NULL;
- target = nil;
autoResizes = YES;
selects = NO;
[self commonInit];
@@ -149,8 +147,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];
[self commonInit];
@@ -161,8 +157,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];
}
@@ -505,14 +499,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] autorelease];
}
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