MYURLFormatter.h
changeset 27 256370e8935a
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/MYURLFormatter.h	Sun May 03 10:13:31 2009 -0700
     1.3 @@ -0,0 +1,23 @@
     1.4 +//
     1.5 +//  URLFormatter.h
     1.6 +//  Murky
     1.7 +//
     1.8 +//  Copyright 2008 Jens Alfke. All rights reserved.
     1.9 +//
    1.10 +
    1.11 +#import <Cocoa/Cocoa.h>
    1.12 +
    1.13 +
    1.14 +/** An NSURLFormatter for text fields that let the user enter URLs.
    1.15 +    The associated text field's objectValue will be an NSURL object. */
    1.16 +@interface MYURLFormatter : NSFormatter
    1.17 +{
    1.18 +    NSArray *_allowedSchemes;
    1.19 +}
    1.20 +
    1.21 +@property (copy,nonatomic) NSArray *allowedSchemes;
    1.22 +
    1.23 ++ (void) beginFilePickerFor: (NSTextField*)field;
    1.24 ++ (void) beginNewFilePickerFor: (NSTextField*)field;
    1.25 +
    1.26 +@end