FROM : Angelo Chen
DATE : Sat Jun 24 13:25:23 2006
Hi,
I use IB to create a NSMatrix containing of
NSImageCell, at runtime I use NSImageCell's setImage
to set the pictures, everything works. Now I like to
attach a subclass of NSImageCell to the NSMatrix, as a
testing I made following changes to the program:
// ClipImage.h
@interface ClipImage : NSImageCell {
}
// ClipImage.m
- (void)setImage:(NSImage *)image
{
}
and in my Controller class I had:
- (void) awakeFromNib
{
[myMatrix setCellClass: [ClipImage class]];
}
with the above changes I was expecting no image to be
displayed in the NSMatrix, but it still displays, why?
am I attaching the subClass wrongly?
Thanks.
Angelo
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
DATE : Sat Jun 24 13:25:23 2006
Hi,
I use IB to create a NSMatrix containing of
NSImageCell, at runtime I use NSImageCell's setImage
to set the pictures, everything works. Now I like to
attach a subclass of NSImageCell to the NSMatrix, as a
testing I made following changes to the program:
// ClipImage.h
@interface ClipImage : NSImageCell {
}
// ClipImage.m
- (void)setImage:(NSImage *)image
{
}
and in my Controller class I had:
- (void) awakeFromNib
{
[myMatrix setCellClass: [ClipImage class]];
}
with the above changes I was expecting no image to be
displayed in the NSMatrix, but it still displays, why?
am I attaching the subClass wrongly?
Thanks.
Angelo
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
| Related mails | Author | Date |
|---|---|---|
| Angelo Chen | Jun 24, 13:25 | |
| Matt Neuburg | Jun 26, 19:41 |






Cocoa mail archive

