Add ability to change color of hyperlink button
Reported by Mike Chambers | January 5th, 2010 @ 11:49 PM
It does not appear to be possible to set the Text Color for BlackBWHyperlinkButton via interface builder.
All other font properties, such as font family, size and bold can be set, but the font color appears to be hardcoded in BlackBWHyperlinkButtonCell (and ignored in Interface Builder).
The only way to set it appears to be to subclass BlackBWHyperlinkButton, and then override _textAttributes. This works, but is a hassle as it requires code, and results in some compiler warnings (but it compiles fine):
-
(NSDictionary )_textAttributes { NSMutableDictionary attributes = [super _textAttributes]; [attributes setObject:[NSColor blackColor] forKey:NSForegroundColorAttributeName];
return attributes; }
Comments and changes to this ticket
-
Brandon Walkin February 13th, 2010 @ 05:41 PM
- State changed from new to bluesky
- Title changed from Add ability to set BlackBWHyperlinkButton text color to Add ability to change color of hyperlink button
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
BWToolkit is an Interface Builder plugin that contains commonly used UI elements and other objects designed to simplify Mac development.