MYURLFormatter.h
author snej@snej-mbp.mtv.corp.google.com
Tue Apr 07 11:13:25 2009 -0700 (2009-04-07)
changeset 23 a910102a1c9d
permissions -rw-r--r--
* Added MYReturnError.
* Better iPhone support in ExceptionUtils.
* Make sure "All Tests Passed/Failed" message is always logged.
     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