Last change
on this file since 425 was 425, checked in by Nicholas Riley, 16 years ago |
English.lproj/APE Manager plugin.nib: Wording cleanups; the edit
button works now.
English.lproj/APEInfo.rtfd: Updated for 1.5b1.
English.lproj/Select services.nib: Removed reference to
non-highlighting outline view; use source list highlighting on
Leopard.
ICeCoffEE.xcodeproj: More decruftification.
ICeCoffEEInvertingTextFieldCell.[hm]: Non-colored text becomes white
(why doesn't Apple's implementation do this?).
ICeCoffEEServicePrefController.m: Service shown/hidden/mixed
selections slightly more abstracted, and now stored in tags rather
than represented object (which is already in use). Still no
localization support. Fix scroll bar non-appearance.
Installer components/ui/ui.plist: Replaced version info with empty
placeholders since it's now script-populated; require OS X 10.5 until
I've had a chance to test on an earlier version.
VERSION.xcconfig: Updated for 1.5b1.
|
File size:
914 bytes
|
Line | |
---|
1 | //
|
---|
2 | // ICeCoffEEInvertingTextFieldCell.m
|
---|
3 | // ICeCoffEE
|
---|
4 | //
|
---|
5 | // Created by Nicholas Riley on 2/29/08.
|
---|
6 | // Copyright 2008 Nicholas Riley. All rights reserved.
|
---|
7 | //
|
---|
8 |
|
---|
9 | #import "ICeCoffEEInvertingTextFieldCell.h"
|
---|
10 |
|
---|
11 |
|
---|
12 | @implementation ICeCoffEEInvertingTextFieldCell
|
---|
13 |
|
---|
14 | - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
|
---|
15 | {
|
---|
16 | if ([self isHighlighted]) {
|
---|
17 | NSMutableAttributedString *astr = [[self attributedStringValue] mutableCopy];
|
---|
18 | unsigned location = 0, length = [astr length];
|
---|
19 | NSRange range;
|
---|
20 | while (location < length) {
|
---|
21 | if ([astr attribute: NSForegroundColorAttributeName atIndex: location effectiveRange: &range] == nil) {
|
---|
22 | [astr addAttribute: NSForegroundColorAttributeName value: [NSColor whiteColor]
|
---|
23 | range: range];
|
---|
24 | }
|
---|
25 | location += range.length;
|
---|
26 | }
|
---|
27 | [self setAttributedStringValue: astr];
|
---|
28 | [astr release];
|
---|
29 | }
|
---|
30 | [super drawWithFrame: cellFrame inView: controlView];
|
---|
31 | }
|
---|
32 |
|
---|
33 | @end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.