bwalkin / BWToolkit (http://brandonwalkin.com/bwtoolkit/)

BWToolkit is an Interface Builder plugin that contains commonly used UI elements and other objects designed to simplify development for the Mac.

Clone this repository (size: 1.5 MB): HTTPS / SSH
$ hg clone http://bitbucket.org/bwalkin/bwtoolkit/
commit 94: 4ce78c9b9c43
parent 93: c7213622d2af
branch: default
Textured Slider - Fixed issue where the knob wouldn't draw a focus ring
Brandon Walkin
7 months ago

Changed (Δ233 bytes):

raw changeset »

BWTexturedSlider.m (14 lines added, 0 lines removed)

Up to file-list BWTexturedSlider.m:

@@ -207,6 +207,20 @@ static float imageInset = 25;
207
207
 	[self sendAction:[self action] to:[self target]];
208
208
}
209
209
210
- (BOOL)becomeFirstResponder
211
{
212
	[[self cell] setShowsFirstResponder:YES];
213
	
214
	return [super becomeFirstResponder];
215
}
216
217
- (BOOL)resignFirstResponder
218
{
219
	[[self cell] setShowsFirstResponder:NO];
220
	
221
	return [super resignFirstResponder];
222
}
223
210
224
- (void)dealloc
211
225
{
212
226
	[minButton release];