MYURLFormatter.h
author Jens Alfke <jens@mooseyard.com>
Wed Sep 02 08:41:25 2009 -0700 (2009-09-02)
changeset 35 5cab3034d3a1
permissions -rw-r--r--
10.6 compatibility: Fix some new compiler warnings, and work around apparent regressions in NSTask and -stringByStandardizingPath.
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