TimeIntervalFormatter.h
author Jens Alfke <jens@mooseyard.com>
Thu May 14 20:44:32 2009 -0700 (2009-05-14)
changeset 31 2068331949ee
parent 0 d84d25d6cdbb
permissions -rw-r--r--
* Optimized Olivier's MYDirectoryWatcher fix (by caching the watcher's standardized path)
* Added -[NSData my_UTF8ToString] to CollectionUtils.
     1 //
     2 //  TimeIntervalFormatter.h
     3 //  MYUtilities
     4 //
     5 //  Copyright 2008 Jens Alfke. All rights reserved.
     6 //
     7 
     8 #import <Cocoa/Cocoa.h>
     9 
    10 
    11 @interface TimeIntervalFormatter : NSFormatter
    12 {
    13     BOOL _showsMinutes, _showsFractionalSeconds;
    14 }
    15 
    16 - (void) setShowsMinutes: (BOOL)showsMinutes;
    17 - (void) setShowsFractionalSeconds: (BOOL)showsFractionalSeconds;
    18 
    19 + (NSString*) formatTimeInterval: (NSTimeInterval)interval;
    20 
    21 @end