Ignore:
Timestamp:
02/13/04 21:01:06 (20 years ago)
Author:
Nicholas Riley
Message:

Integrates SCPatch and mach_inject; unfinished, buggy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/F-Script Anywhere/Source/NJRScrollView.m

    r7 r153  
    99#import "NJRScrollView.h"
    1010
     11#ifndef NSAppKitVersionNumber10_2
     12#define NSAppKitVersionNumber10_2 663
     13#endif
    1114
    1215@implementation NJRScrollView
     
    1417- (BOOL)needsDisplay;
    1518{
     19    // Mac OS X 10.3 and later have support for external focus rings
     20    if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_2)
     21        return [super needsDisplay];
    1622    NSResponder *resp = nil;
    1723    if ([[self window] isKeyWindow]) {
     
    3036- (void)drawRect:(NSRect)rect {
    3137    [super drawRect: rect];
     38    // Mac OS X 10.3 and later have support for external focus rings
     39    if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_2)
     40        return;
    3241    if (shouldDrawFocusRing) {
    3342        NSSetFocusRingStyle(NSFocusRingOnly);
Note: See TracChangeset for help on using the changeset viewer.