Changeset 125 for trunk/Cocoa/Pester
- Timestamp:
- 03/16/03 17:19:40 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/OACalendarView.m
r102 r125 202 202 // 203 203 204 - (BOOL)needsPanelToBecomeKey; 205 { 206 return YES; 207 } 208 204 209 - (BOOL)isFlipped; 205 210 { … … 242 247 [[NSColor gridColor] set]; 243 248 NSFrameRect(gridHeaderAndBodyRect); 249 244 250 } 245 251 … … 638 644 int index, row, column; 639 645 NSSize cellSize; 646 BOOL isFirstResponder = ([[self window] firstResponder] == self); 640 647 641 648 // the cell is actually one pixel shorter than the row height, because the row height includes the bottom grid line (or the top grid line, depending on which way you prefer to think of it) … … 688 695 689 696 if (shouldHighlightThisDay) { 690 [ [NSColor selectedControlColor]set];697 [(isFirstResponder ? [NSColor selectedControlColor] : [NSColor secondarySelectedControlColor]) set]; 691 698 NSRectFill(cellFrame); 692 699 }
Note:
See TracChangeset
for help on using the changeset viewer.