TimeIntervalFormatter.h
author Olivier Scherler <oscherler@femto-byte.com>
Tue May 12 14:38:30 2009 +0200 (2009-05-12)
changeset 30 2befbe36c746
parent 0 d84d25d6cdbb
permissions -rw-r--r--
Changed -[MYDirectoryEvent relativePath] to work on standardised paths, in case symlinks are used. Fixes issue #28 in Murky.
jens@0
     1
//
jens@0
     2
//  TimeIntervalFormatter.h
jens@0
     3
//  MYUtilities
jens@0
     4
//
jens@0
     5
//  Copyright 2008 Jens Alfke. All rights reserved.
jens@0
     6
//
jens@0
     7
jens@0
     8
#import <Cocoa/Cocoa.h>
jens@0
     9
jens@0
    10
jens@0
    11
@interface TimeIntervalFormatter : NSFormatter
jens@0
    12
{
jens@0
    13
    BOOL _showsMinutes, _showsFractionalSeconds;
jens@0
    14
}
jens@0
    15
jens@0
    16
- (void) setShowsMinutes: (BOOL)showsMinutes;
jens@0
    17
- (void) setShowsFractionalSeconds: (BOOL)showsFractionalSeconds;
jens@0
    18
jens@1
    19
+ (NSString*) formatTimeInterval: (NSTimeInterval)interval;
jens@1
    20
jens@0
    21
@end