1 /*****************************************************************************
2 * ImageAndTextCell.h: Helpful cell to display an image and a text.
3 * Borrowed from Apple's sample code for most part.
4 *****************************************************************************
5 * Copyright (C) 2007 Pierre d'Herbemont
6 * Copyright (C) 2007 the VideoLAN team
9 * Authors: Pierre d'Herbemont <pdherbemont # videolan.org>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24 *****************************************************************************/
26 #import <Cocoa/Cocoa.h>
29 @interface ImageAndTextCell : NSTextFieldCell {
30 NSString *imageKeyPath;
34 /* Will be set at creation time */
35 @property (copy) NSString * imageKeyPath;
37 /* Will be set through an outlineView delegate. Represent an object that respond
38 * to the imageKeyPath. Text is displayed through the usual super class
39 * @"value" bindings */
40 @property (retain) id representedObject;