MYURLFormatter.h
author snej@snej-mbp.mtv.corp.google.com
Wed Apr 08 16:31:19 2009 -0700 (2009-04-08)
changeset 24 629c7605ab2a
permissions -rw-r--r--
Changes to config-file structure.
jens@20
     1
//
jens@20
     2
//  URLFormatter.h
jens@20
     3
//  Murky
jens@20
     4
//
jens@20
     5
//  Copyright 2008 Jens Alfke. All rights reserved.
jens@20
     6
//
jens@20
     7
jens@20
     8
#import <Cocoa/Cocoa.h>
jens@20
     9
jens@20
    10
jens@20
    11
/** An NSURLFormatter for text fields that let the user enter URLs.
jens@20
    12
    The associated text field's objectValue will be an NSURL object. */
jens@20
    13
@interface MYURLFormatter : NSFormatter
jens@20
    14
{
jens@20
    15
    NSArray *_allowedSchemes;
jens@20
    16
}
jens@20
    17
jens@20
    18
@property (copy,nonatomic) NSArray *allowedSchemes;
jens@20
    19
jens@20
    20
+ (void) beginFilePickerFor: (NSTextField*)field;
jens@20
    21
+ (void) beginNewFilePickerFor: (NSTextField*)field;
jens@20
    22
jens@20
    23
@end