source: trunk/Cocoa/F-Script Anywhere/Source/NJRLabeledImageCell.h @ 413

Last change on this file since 413 was 342, checked in by rchin, 13 years ago

Leopard compatibility changes:

  • Removed some icon caching code that was causing crashes (not sure we really needed those optimizations anyway -- doesn't appear to affect performance)
  • Added code to automatically try to add certificate to keychain, for new code signing behavior (replaces previous procmod nonesense).
  • Note that the enclosed public certificate is mine, and so it will need to be signed by me. In the case that someone else wants to distribute this binary, please replace Certficiate.cer with your own public certificate, and then make sure o code sign the binary after it is built.
File size: 1.5 KB
Line 
1//
2//  NJRLabeledImageCell.h
3//  HostLauncher
4//
5//  Created by nicholas on Wed Aug 01 2001.
6//  Copyright (c) 2001 Nicholas Riley. All rights reserved.
7//
8
9/*
10
11 F-Script Anywhere 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.
15
16 F-Script Anywhere 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.
20
21 You should have received a copy of the GNU General Public License
22 along with F-Script Anywhere; if not, write to the Free Software
23 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
24
25*/
26
27#import <Cocoa/Cocoa.h>
28
29
30@interface NJRLabeledImageCell : NSTextFieldCell {
31@private
32    NSImage *image;
33}
34
35+ (NJRLabeledImageCell *)cell;
36
37- (void)setImage:(NSImage *)anImage;
38- (NSImage *)image;
39
40- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
41- (NSSize)cellSize;
42
43@end
44
45// The cell may rescale the image in its drawing routine. To avoid scaling the image each time, if the imageCacheSource is set, the cell will store the scaled image and retrieve it later, using the following methods:
46@interface NJRLabeledImageCell (NJRLabeledImageCellCacheSource)
47- (NSImage *)cachedImage;
48- (void)setCachedImage:(NSImage *)anImage;
49@end
Note: See TracBrowser for help on using the repository browser.