forked from glebd/bwtoolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBWHyperlinkButtonCell.m
More file actions
42 lines (31 loc) · 863 Bytes
/
BWHyperlinkButtonCell.m
File metadata and controls
42 lines (31 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// BWHyperlinkButtonCell.m
// BWToolkit
//
// Created by Brandon Walkin (www.brandonwalkin.com)
// All code is provided under the New BSD license.
//
#import "BWHyperlinkButtonCell.h"
@interface NSCell (BWPrivate)
- (NSDictionary *)_textAttributes;
@end
@implementation BWHyperlinkButtonCell
- (NSDictionary *)_textAttributes
{
NSMutableDictionary *attributes = [[[NSMutableDictionary alloc] init] autorelease];
[attributes addEntriesFromDictionary:[super _textAttributes]];
[attributes setObject:[NSColor blueColor] forKey:NSForegroundColorAttributeName];
[attributes setObject:[NSNumber numberWithInt:NSSingleUnderlineStyle] forKey:NSUnderlineStyleAttributeName];
return attributes;
}
- (void)drawBezelWithFrame:(NSRect)frame inView:(NSView *)controlView
{
}
- (void)setBordered:(BOOL)flag
{
}
- (BOOL)isBordered
{
return YES;
}
@end