Re: problem with NSMatrix
Re: problem with NSMatrix
- Subject: Re: problem with NSMatrix
- From: "Erik M. Buck" <email@hidden>
- Date: Sat, 6 Apr 2002 10:10:17 -0600
- Organization: EMB & Assocites Inc.
----- Original Message -----
From: "joie" <email@hidden>
>
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.
>
>
Or does renewRows:columns: only make NSButtonCells?
>
-renewRows:columns: probably reuses any already created cell instances. You
probably want to set the cell class early before the matrix has allocated
any of the cells. You may also be able to renewRows:0 columns:0 and then
later renewRows:16 columns:16 to get the matrix to allocate new cell
instances.
You can also set a custom cell class in IB and possibly avoid all of these
problems.
_______________________________________________
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.