question on NSMatrix' renewRows:columns:
question on NSMatrix' renewRows:columns:
- Subject: question on NSMatrix' renewRows:columns:
- From: "j.oie" <email@hidden>
- Date: Thu, 4 Apr 2002 20:54:47 -0600
ok, so I call the following code:
[someMatrix setCellClass:[OSButtonCell class]];
[someMatrix renewRows:16 columns: 16];
then some code that acts upon the newly created cells, in which is an
NSLog that prints the class of the currently acted-upon buttonCell to
the console. here's where it gets weird...
2002-04-04 20:47:20.096 Open Sword GroundLayer[3836] OSButtonCell
2002-04-04 20:47:20.096 Open Sword GroundLayer[3836] OSButtonCell
... a bunch more of these
2002-04-04 20:47:20.096 Open Sword GroundLayer[3836] OSButtonCell
2002-04-04 20:47:20.096 Open Sword GroundLayer[3836] NSButtonCell
So, ok, all's well except that last one, right? But then when I try to
act on the new OSButtonCells, 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.
-joie
_______________________________________________
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.