|
|
1.1 root 1: /*--------------------------------------------------------------------------
2: *
3: * You may freely copy, distribute, and reuse the code in this example.
4: * SHL Systemhouse disclaims any warranty of any kind, expressed or
5: * implied, as to its fitness for any particular use.
6: *
7: *
8: * SlidingMatrix
9: *
10: * Inherits From: Matrix
11: *
12: * Conforms To: None.
13: *
14: * Declared In: SlidingMatrix.h
15: *
16: * Class Description
17: *
18: * This is an adaption of Thomas Burkholder's Ranker class found
19: * in NeXT's MiniExamples. I have modified it to support its usage
20: * in custom IB connectors (added delegate notification when a
21: * row change takes place, reworked row exchange).
22: *
23: *
24: *------------------------------------------------------------------------*/
25: #import <appkit/appkit.h>
26:
27:
28:
29:
30: @interface SlidingMatrix : Matrix
31: {
32: id delegate;
33: }
34:
35:
36: @end
37:
38:
39:
40: /*--------------------------------------------------------------------------
41: *
42: * SlidingMatrixDelegate
43: *
44: * Category Of: Object
45: *
46: * Declared In: SlidingMatrix.h
47: *
48: * Category Description
49: *
50: * �description�
51: *
52: *
53: *------------------------------------------------------------------------*/
54:
55: @interface Object (SlidingMatrixDelegate)
56:
57: - (BOOL) slidingMatrix: sender willSlideFromRow: (int) sourceRow;
58: - (BOOL) slidingMatrix: sender willSlideToRow: (int) destinationRow;
59: - slidingMatrix: sender didSlideFromRow: (int) sourceRow
60: toRow: (int) destinationRow;
61:
62: @end
63:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.