Permalink
Browse files

Refactored TUITextField to use NSImage

  • Loading branch information...
1 parent db1b0d1 commit 1613a6abca6b4d49cfed6489a0b42438d4e8f083 @jspahrsummers jspahrsummers committed Jul 25, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/UIKit/TUITextField.m
View
@@ -16,7 +16,6 @@
#import "TUITextField.h"
#import "TUIButton.h"
-#import "TUIImage.h"
#import "TUITextViewEditor.h"
@interface TUITextFieldEditor : TUITextViewEditor
@@ -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;
}

0 comments on commit 1613a6a

Please sign in to comment.