-
-
Notifications
You must be signed in to change notification settings - Fork 198
Expand file tree
/
Copy pathETTransparentButton.m
More file actions
32 lines (27 loc) · 715 Bytes
/
ETTransparentButton.m
File metadata and controls
32 lines (27 loc) · 715 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
//
// ETTransparentButton based on
// BWTransparentButton.m
// BWToolkit
//
// Created by Brandon Walkin (www.brandonwalkin.com)
// All code is provided under the New BSD license.
//
#import "ETTransparentButton.h"
#import "ETTransparentButtonCell.h"
@implementation ETTransparentButton
- (id)initWithFrame:(NSRect)frameRect{
if ((self = [super initWithFrame:frameRect]))
{
ETTransparentButtonCell *newCell = [[ETTransparentButtonCell alloc] init];
[newCell setBezeled:YES];
[newCell setBezelStyle:NSRecessedBezelStyle];
[self setCell:newCell];
[newCell release];
}
return self;
}
+ (Class) cellClass
{
return [ETTransparentButtonCell class];
}
@end