Skip to content

Commit

Permalink
Refactored TUITextField to use NSImage
Browse files Browse the repository at this point in the history
  • Loading branch information
jspahrsummers committed Jul 25, 2012
1 parent db1b0d1 commit 1613a6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/UIKit/TUITextField.m
Expand Up @@ -16,7 +16,6 @@

#import "TUITextField.h"
#import "TUIButton.h"
#import "TUIImage.h"
#import "TUITextViewEditor.h"

@interface TUITextFieldEditor : TUITextViewEditor
Expand Down Expand Up @@ -79,7 +78,7 @@ - (void)clear:(id)sender
- (TUIButton *)clearButton
{
TUIButton *b = [TUIButton button];
[b setImage:[TUIImage imageNamed:@"clear-button.png" cache:YES] forState:TUIControlStateNormal];
[b setImage:[NSImage imageNamed:@"clear-button.png"] forState:TUIControlStateNormal];
[b addTarget:self action:@selector(clear:) forControlEvents:TUIControlEventTouchUpInside];
return b;
}
Expand Down

0 comments on commit 1613a6a

Please sign in to comment.