• 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: nsmatrix (newbie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nsmatrix (newbie)


  • Subject: Re: nsmatrix (newbie)
  • From: daniel <email@hidden>
  • Date: Sun, 20 Feb 2005 00:34:38 -0800

Can you just iterate through the cells (cellAtRow:column:) and call setTitle: on the (presumably) NSButtonCell objects contained in the matrix?

On Feb 19, 2005, at 8:24 PM, Daniel Child wrote:

Hi All,

I have set up a matrix of round buttons in a drawer and would like to populate the titles (and font and sizes) for the round buttons programmatically (they would be unicode characters). Is there a way to do this?

I looked at the matrix documentation, but there are no tutorials, so I am a little lost on what the setup should be. Should I create a new controller to handle just this feature (all the buttons in the matrix), or is there some simple solution I am missing.

Obviously, I could type into the title for each button, but the key is to be able to change what the title is, and to do that programmatically.

Thanks in advance!

Daniel

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: nsmatrix (newbie)
      • From: Rudi Sherry <email@hidden>
    • Re: nsmatrix examples? (newbie)
      • From: Daniel Child <email@hidden>
References: 
 >nsmatrix (newbie) (From: Daniel Child <email@hidden>)

  • Prev by Date: Re: hosed IBOutlets
  • Next by Date: Re: Lining up NSViews in NSScrollView
  • Previous by thread: nsmatrix (newbie)
  • Next by thread: Re: nsmatrix examples? (newbie)
  • Index(es):
    • Date
    • Thread