forked from atg/Ingredients
-
Notifications
You must be signed in to change notification settings - Fork 2
/
CHLeftSplitView.m
74 lines (65 loc) · 1.27 KB
/
CHLeftSplitView.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//
// CHLeftSplitView.m
// Chocolat
//
// Created by Alex Gordon on 29/10/2009.
// Copyright 2009 Fileability. Written in 2010 by Fileability..
//
#import "CHLeftSplitView.h"
#import <QuartzCore/QuartzCore.h>
@implementation CHLeftSplitView
@synthesize enabled;
- (id)animationForKey:(NSString *)key
{
CAAnimation *animation = [super animationForKey:key];
animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
return animation;
}
- (id)initWithFrame:(NSRect)frame {
self = [super initWithFrame:frame];
if (self)
{
enabled = YES;
}
return self;
}
- (void)awakeFromNib
{
enabled = YES;
}
- (void)mouseDown:(NSEvent *)theEvent
{
if (enabled)
[super mouseDown:theEvent];
}
- (void)mouseDragged:(NSEvent *)theEvent
{
if (enabled)
[super mouseDragged:theEvent];
}
- (void)mouseUp:(NSEvent *)theEvent
{
if (enabled)
[super mouseUp:theEvent];
}
- (void)mouseEntered:(NSEvent *)theEvent
{
if (enabled)
[super mouseEntered:theEvent];
}
- (void)mouseExited:(NSEvent *)theEvent
{
if (enabled)
[super mouseExited:theEvent];
}
- (void)mouseMoved:(NSEvent *)theEvent
{
if (enabled)
[super mouseMoved:theEvent];
}
- (void)cursorUpdate:(NSEvent *)theEvent
{
if (enabled)
[super cursorUpdate:theEvent];
}
@end