Add NSPathComponentCell

This commit is contained in:
Gregory John Casamento 2020-04-27 01:55:31 -04:00
parent 699bffe59c
commit 3dc3feda41
2 changed files with 34 additions and 0 deletions

View file

@ -33,7 +33,19 @@
extern "C" {
#endif
@class NSImage, NSURL;
@interface NSPathComponentCell : NSTextFieldCell
{
NSImage *_image;
NSURL *_url;
}
- (NSImage *) image;
- (void) setImage: (NSImage *)image;
- (NSURL *) URL;
- (void) setURL: (NSURL *)url;
@end

View file

@ -22,9 +22,31 @@
Boston, MA 02110 USA.
*/
#import <Foundation/NSURL.h>
#import "AppKit/NSPathComponentCell.h"
#import "AppKit/NSImage.h"
@implementation NSPathComponentCell
- (NSImage *) image
{
return _image;
}
- (void) setImage: (NSImage *)image
{
ASSIGNCOPY(_image, image);
}
- (NSURL *) URL
{
return _url;
}
- (void) setURL: (NSURL *)url
{
ASSIGNCOPY(_url, url);
}
@end