lethain / mahou

A Cappuccino, Yahoo! BOSS, and Google App Engine based web search

This URL has Read+Write access

mahou / static / WLURLLabel.j
100644 22 lines (16 sloc) 0.284 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import <Foundation/CPObject.j>
import <AppKit/CPTextField.j>
 
@implementation WLURLLabel : CPTextField
{
  CPString url;
}
 
-(void)mouseDown:(CPEvent)anEvent {
  window.open([self url]);
}
 
-(void)setUrl: (CPString)aString {
  url = aString;
}
 
-(CPString)url {
  return url;
}
 
@end