• 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
Re: problem with NSMatrix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >problem with NSMatrix (From: joie <email@hidden>)

  • Prev by Date: Re: Dynamic Languages [was: Re: why Obj-C]
  • Next by Date: Re: problem with NSMatrix
  • Previous by thread: problem with NSMatrix
  • Next by thread: Re: problem with NSMatrix
  • Index(es):
    • Date
    • Thread