Re: problem with NSMatrix
Re: problem with NSMatrix
- Subject: Re: problem with NSMatrix
- From: Andy Lee <email@hidden>
- Date: Sat, 6 Apr 2002 10:48:30 -0500
At 9:32 AM -0600 4/6/02, joie wrote:
[someMatrix setCellClass:[OSButtonCell class]];
[someMatrix renewRows:16 columns: 16];
then some code that acts upon the newly created cells. The console
then proceeds to yell at me. It turns out they aren't OSButtonCells
at all as they don't recognize the selectors imageTag and
setImageTag: as all good little OSButtonCells do. Very strange.
Any ideas about this would be much appreciated.
I notice NSMatrix has a cell prototype as well as a cell class
attribute. Out of curiosity I would set a breakpoint just after your
-setCellClass: call and inspect the matrix's -cellClass and
-prototype.
Have you tried -setPrototype: instead of (or in addition to)
-setCellClass:? I have no idea if it should/will make any difference
-- it's just something to try.
--Andy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.