/ Published in: Objective C

A Modular method to set new text with color of an NSButton. Thanks go to the owner of this code - RayNewbie - in the Apple discussion forum.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
[style setAlignment:NSCenterTextAlignment]; color, NSForegroundColorAttributeName, style, NSParagraphStyleAttributeName, nil]; initWithString:title attributes:attrsDictionary]; [button setAttributedTitle:attrString]; [style release]; [attrString release]; }
URL: https://discussions.apple.com/message/9334854#9334854
Comments
