[zephyrchat-cvs] zchat/zChat ZChatLocationMatrix.h,NONE,1.1 ZChatLocationMatrix.m,NONE,1.1 AKStacked
Status: Alpha
Brought to you by:
akosut
|
From: <ak...@us...> - 2003-03-29 16:37:37
|
Update of /cvsroot/zephyrchat/zchat/zChat
In directory sc8-pr-cvs1:/tmp/cvs-serv30224
Modified Files:
AKStackedView.h AKStackedView.m
Added Files:
ZChatLocationMatrix.h ZChatLocationMatrix.m
Log Message:
Correctly select friends list when showing locations, using NSMatrix subclass
that ignores all mouse clicks (passes them to the next responder).
--- NEW FILE: ZChatLocationMatrix.h ---
/* ZChatLocationMatrix */
#import <Cocoa/Cocoa.h>
@interface ZChatLocationMatrix : NSMatrix
{
}
@end
--- NEW FILE: ZChatLocationMatrix.m ---
#import "ZChatLocationMatrix.h"
@implementation ZChatLocationMatrix
/* Pass mouse events directly to the next responder. Do not pass go, do not collect $200 */
- (void)mouseDown:(NSEvent *)event {
[[self nextResponder] mouseDown:event];
}
- (void)mouseUp:(NSEvent *)event {
[[self nextResponder] mouseUp:event];
}
@end
Index: AKStackedView.h
===================================================================
RCS file: /cvsroot/zephyrchat/zchat/zChat/AKStackedView.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- AKStackedView.h 28 Mar 2003 22:18:31 -0000 1.2
+++ AKStackedView.h 29 Mar 2003 16:37:33 -0000 1.3
@@ -20,9 +20,6 @@
IBOutlet id <AKStackedViewDelegate> _delegate;
}
-- (IBAction)action:(id)sender;
-- (IBAction)doubleAction:(id)sender;
-
- (void)setDelegate:(id <AKStackedViewDelegate>)delegate;
- (id)delegate;
Index: AKStackedView.m
===================================================================
RCS file: /cvsroot/zephyrchat/zchat/zChat/AKStackedView.m,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- AKStackedView.m 28 Mar 2003 22:18:31 -0000 1.3
+++ AKStackedView.m 29 Mar 2003 16:37:34 -0000 1.4
@@ -54,10 +54,6 @@
[[self superview] displayIfNeeded];
}
-- (IBAction)action:(id)sender {
- [self mouseDown:[[sender window] currentEvent]];
-}
-
- (void)mouseDown:(NSEvent *)event {
if (_delegate != nil) {
if ([_delegate selectViewIsSelected:self] && [event modifierFlags] & NSCommandKeyMask) {
@@ -76,10 +72,6 @@
if ([event clickCount] == 2 && [_delegate respondsToSelector:@selector(selectViewAction:)]) {
[self doubleAction:nil];
}
-}
-
-- (IBAction)doubleAction:(id)sender {
- [_delegate selectViewAction:self];
}
- (void)setDelegate:(id <AKStackedViewDelegate>)delegate {
|