display arrows in priority segmented cell

This commit is contained in:
Mitchell Livingston 2008-01-11 22:05:40 +00:00
parent 4f9e28ca2c
commit afcadd4c30
1 changed files with 12 additions and 0 deletions

View File

@ -42,6 +42,18 @@
[self setLabel: @"" forSegment: i];
[self setWidth: 9.0 forSegment: i]; //9 is minimum size to get proper look
}
NSSize imageSize = NSMakeSize(7.0, 11.0);
NSImage * downArrow = [NSImage imageNamed: @"DownArrow.png"];
[downArrow setScalesWhenResized: YES];
[downArrow setSize: imageSize];
[self setImage: downArrow forSegment: 0];
NSImage * upArrow = [NSImage imageNamed: @"UpArrow.png"];
[upArrow setScalesWhenResized: YES];
[upArrow setSize: imageSize];
[self setImage: upArrow forSegment: 2];
}
return self;
}