Revision: 15026 http://sourceforge.net/p/skim-app/code/15026 Author: hofman Date: 2025-03-26 17:04:40 +0000 (Wed, 26 Mar 2025) Log Message: ----------- No need to store target and action, NSControl already does that since 10.10
Modified Paths: -------------- trunk/SKLineWell.h trunk/SKLineWell.m Modified: trunk/SKLineWell.h =================================================================== --- trunk/SKLineWell.h 2025-03-26 16:57:47 UTC (rev 15025) +++ trunk/SKLineWell.h 2025-03-26 17:04:40 UTC (rev 15026) @@ -71,9 +71,6 @@ unsigned int existsActiveLineWell:1; unsigned int highlighted:1; } lwFlags; - - id target; - SEL action; } @property (nonatomic, readonly, getter=isActive) BOOL active; Modified: trunk/SKLineWell.m =================================================================== --- trunk/SKLineWell.m 2025-03-26 16:57:47 UTC (rev 15025) +++ trunk/SKLineWell.m 2025-03-26 17:04:40 UTC (rev 15026) @@ -52,8 +52,6 @@ #define DISPLAYSTYLE_KEY @"lwFlags.displayStyle" #define ACTIVE_KEY @"active" -#define ACTION_KEY @"action" -#define TARGET_KEY @"target" #define SKLineWellWillBecomeActiveNotification @"SKLineWellWillBecomeActiveNotification" #define EXCLUSIVE_KEY @"exclusive" @@ -90,9 +88,6 @@ lwFlags.canActivate = 0; lwFlags.existsActiveLineWell = 0; - target = nil; - action = NULL; - [self commonInit]; } return self; @@ -108,8 +103,6 @@ endLineStyle = [decoder decodeIntegerForKey:SKLineWellEndLineStyleKey]; lwFlags.displayStyle = [decoder decodeIntegerForKey:DISPLAYSTYLE_KEY]; lwFlags.active = [decoder decodeBoolForKey:ACTIVE_KEY]; - action = NSSelectorFromString([decoder decodeObjectForKey:ACTION_KEY]); - target = [decoder decodeObjectForKey:TARGET_KEY]; [self commonInit]; } return self; @@ -124,8 +117,6 @@ [coder encodeInteger:endLineStyle forKey:SKLineWellEndLineStyleKey]; [coder encodeInteger:(NSInteger)(lwFlags.displayStyle) forKey:DISPLAYSTYLE_KEY]; [coder encodeBool:(BOOL)(lwFlags.active) forKey:ACTIVE_KEY]; - [coder encodeObject:NSStringFromSelector(action) forKey:ACTION_KEY]; - [coder encodeConditionalObject:target forKey:TARGET_KEY]; } - (void)dealloc { @@ -436,14 +427,6 @@ #pragma mark Accessors -- (SEL)action { return action; } - -- (void)setAction:(SEL)newAction { action = newAction; } - -- (id)target { return target; } - -- (void)setTarget:(id)newTarget { target = newTarget; } - - (BOOL)isActive { return lwFlags.active; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit