Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: NSButton Text Color?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSButton Text Color?




Check out NSFont's +controlContentFontOfSize: method ... you'll want to adjust your attributed string to use the same fonts/sizes the system uses.


--
I.S.


On Jan 31, 2007, at 7:54 PM, email@hidden wrote:

I just tried passing a NSMutableAttributedString to setTitle on a button, with the color set to red.

Works fine. The text size looked wrong, though, but that could be adjusted.

On Jan 28, 2007, at 2:40 PM, maximilian marcoll wrote:


hi!

i want to change the color of a NSButton in NSSwitchButton mode.
i assumed there would be an NSTextFieldCell associated with the button,
but i can't figure out how to get to it. maybe i'm wrong.


can anybody help?

thanks in advance

max
_____________________________________________

m a x i m i l i a n   m a r c o l l
http://www.maximilianmarcoll.de

d i s . p l a y c e
http://dis.playce.info




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSButton Text Color? (From: maximilian marcoll <email@hidden>)
 >Re: NSButton Text Color? (From: email@hidden)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.