• 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: "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.

  • Follow-Ups:
    • Re: problem with NSMatrix
      • From: joie <email@hidden>
References: 
 >problem with NSMatrix (From: joie <email@hidden>)

  • Prev by Date: Re: Protocols/Distributed Notifications and Compatibility
  • Next by Date: Re: Global Arrays: consider 'autorelease' feature
  • Previous by thread: Re: problem with NSMatrix
  • Next by thread: Re: problem with NSMatrix
  • Index(es):
    • Date
    • Thread