MYURLFormatter.h
author Jens Alfke <jens@mooseyard.com>
Sun May 03 10:13:31 2009 -0700 (2009-05-03)
changeset 27 256370e8935a
permissions -rw-r--r--
* MYTask: Added -commandLine, overhauled logging.
* MYDirectoryWatcher: Overhauled logging.
* MYErrorUtils: Disabled use of Security API (so it'll build without linking against Security.framework.)
     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