mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +00:00
Add NSPathComponentCell
This commit is contained in:
parent
699bffe59c
commit
3dc3feda41
2 changed files with 34 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue