• 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: Rudi Sherry <email@hidden>
  • Date: Tue, 22 Feb 2005 08:26:31 -0800

For more control over the fonts and sizes you could use setAttributedTitle: instead of setTitle: -- see the documentation on NSAttributedString.

On Feb 20, 2005, at 12:34 AM, daniel wrote:

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

_______________________________________________ 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
References: 
 >nsmatrix (newbie) (From: Daniel Child <email@hidden>)
 >Re: nsmatrix (newbie) (From: daniel <email@hidden>)

  • Prev by Date: Re-saving a JPEG without increasing file size or causing artefacts?
  • Next by Date: Re: Works on 10.3, not 10.2
  • Previous by thread: Re: nsmatrix examples? (newbie)
  • Next by thread: Lining up NSViews in NSScrollView
  • Index(es):
    • Date
    • Thread