• 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
question on NSMatrix' renewRows:columns:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Toplevel Objects in NIB files
  • Next by Date: Re: Making Array Pointers Global
  • Previous by thread: Re: Double click time
  • Next by thread: Using colorWithCalibratedWhite with NSScrollView
  • Index(es):
    • Date
    • Thread