MYURLFormatter.h
author Jens Alfke <jens@mooseyard.com>
Thu May 14 20:44:32 2009 -0700 (2009-05-14)
changeset 31 2068331949ee
permissions -rw-r--r--
* Optimized Olivier's MYDirectoryWatcher fix (by caching the watcher's standardized path)
* Added -[NSData my_UTF8ToString] to CollectionUtils.
     1 //
     2 //  URLFormatter.h
     3 //  Murky
     4 //
     5 //  Copyright 2008 Jens Alfke. All rights reserved.
     6 //
     7 
     8 #import <Cocoa/Cocoa.h>
     9 
    10 
    11 /** An NSURLFormatter for text fields that let the user enter URLs.
    12     The associated text field's objectValue will be an NSURL object. */
    13 @interface MYURLFormatter : NSFormatter
    14 {
    15     NSArray *_allowedSchemes;
    16 }
    17 
    18 @property (copy,nonatomic) NSArray *allowedSchemes;
    19 
    20 + (void) beginFilePickerFor: (NSTextField*)field;
    21 + (void) beginNewFilePickerFor: (NSTextField*)field;
    22 
    23 @end