Revision 2, 1.1 KB
(checked in by jon, 16 years ago)
|
Initial commit of skeletal project.
|
Line | |
---|
1 | // |
---|
2 | // AIGenericViewCell.h |
---|
3 | // Adium |
---|
4 | // |
---|
5 | // Created by Mac-arena the Bored Zo on Sun May 09 2004. |
---|
6 | // Copyright (c) 2004-2005 The Adium Team. All rights reserved. |
---|
7 | // |
---|
8 | |
---|
9 | #import <AppKit/NSCell.h> |
---|
10 | |
---|
11 | /* |
---|
12 | * @class AIGenericViewCell |
---|
13 | * @brief A cell which can display any view |
---|
14 | * |
---|
15 | * This cell allows any view to be used in a table or outlineview. |
---|
16 | * Based on sample code from SubViewTableView by Joar Wingfors, http://www.joar.com/code/ |
---|
17 | */ |
---|
18 | @interface AIGenericViewCell : NSCell |
---|
19 | { |
---|
20 | NSView *embeddedView; |
---|
21 | } |
---|
22 | |
---|
23 | /* |
---|
24 | * @brief Set the NSView this cell displays |
---|
25 | * |
---|
26 | * This should be called before the cell is used, such as in a tableView:willDisplayCell: type delegate method. |
---|
27 | * |
---|
28 | * @param inView The view to display |
---|
29 | */ |
---|
30 | - (void)setEmbeddedView:(NSView *)inView; |
---|
31 | |
---|
32 | /* |
---|
33 | * @brief Used within AIUtilities to generate a drag image from this cell |
---|
34 | * |
---|
35 | * This is a hack, and it's not a particularly great one. A drawing context must be locked before this is called. |
---|
36 | * |
---|
37 | * @param cellFrame The frame of the cell |
---|
38 | * @param controlView The view into which the cell is drawing |
---|
39 | */ |
---|
40 | - (void)drawEmbeddedViewWithFrame:(NSRect)cellFrame inView:(NSView *)controlView; |
---|
41 | |
---|
42 | @end |
---|