• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Attaching subclass of NSImageCel to a NSMatrix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Attaching subclass of NSImageCel to a NSMatrix


  • Subject: Attaching subclass of NSImageCel to a NSMatrix
  • From: Angelo Chen <email@hidden>
  • Date: Sat, 24 Jun 2006 04:25:23 -0700 (PDT)

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
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Many thanks to this list
  • Next by Date: Implementing Undo for a Cut operation, against an NSManagedObject
  • Previous by thread: Many thanks to this list
  • Next by thread: Re: Attaching subclass of NSImageCel to a NSMatrix
  • Index(es):
    • Date
    • Thread