Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sveinbjornt/stpathtextfield
Subclass of NSTextField that supports shell and browser-style path autocompletion
https://github.com/sveinbjornt/stpathtextfield
autocomplete-styles autocompletion expansion macos nstextfield objective-c osx path
Last synced: about 2 months ago
JSON representation
Subclass of NSTextField that supports shell and browser-style path autocompletion
- Host: GitHub
- URL: https://github.com/sveinbjornt/stpathtextfield
- Owner: sveinbjornt
- License: other
- Created: 2013-07-07T16:32:22.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-03-05T16:01:57.000Z (almost 8 years ago)
- Last Synced: 2024-12-14T08:50:26.895Z (about 2 months ago)
- Topics: autocomplete-styles, autocompletion, expansion, macos, nstextfield, objective-c, osx, path
- Language: Objective-C
- Homepage:
- Size: 74.2 KB
- Stars: 21
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# STPathTextField - Objective C class
STPathTextField is a subclass of NSTextField for receiving and displaying a file system path. It supports path validation and autocompletion. Autocompletion can use "web browser" style - i.e. expansion and selection, or shell autocompletion style - i.e. tab-expansion.
To use STPathTextField, just add a text field to a window in a nib file, and set its class to STPathTextField.
Default properties of an STPathTextField are the following:
```objective-c
autocompleteStyle = STNoAutocomplete;
colorInvalidPath = YES;
foldersAreValid = NO;
expandTildeInPath = YES;
```There are three autocomplete styles:
```objective-c
typedef enum
{
STNoAutocomplete = 0,
STShellAutocomplete = 1,
STBrowserAutocomplete = 2
}
STPathTextFieldAutocompleteStyle;```
## Screenshot of example app