mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
Add new init method
This commit is contained in:
parent
52459ae2aa
commit
69168d3661
2 changed files with 74 additions and 11 deletions
|
@ -200,6 +200,8 @@ typedef uint32_t OSType;
|
|||
#define OSTYPE_DECLARED
|
||||
#endif
|
||||
|
||||
DEFINE_BLOCK_TYPE(GSDirEnumErrorHandler, BOOL, NSURL*, NSError*);
|
||||
|
||||
enum _NSDirectoryEnumerationOptions
|
||||
{
|
||||
NSDirectoryEnumerationSkipsSubdirectoryDescendants = 1L << 0,
|
||||
|
@ -355,7 +357,6 @@ typedef NSUInteger NSDirectoryEnumerationOptions;
|
|||
/**
|
||||
* Enumerate over the contents of a directory.
|
||||
*/
|
||||
DEFINE_BLOCK_TYPE(GSDirEnumErrorHandler, BOOL, NSURL*, NSError*);
|
||||
- (NSDirectoryEnumerator *)enumeratorAtURL: (NSURL *)url
|
||||
includingPropertiesForKeys: (NSArray *)keys
|
||||
options: (NSDirectoryEnumerationOptions)mask
|
||||
|
@ -564,11 +565,13 @@ DEFINE_BLOCK_TYPE(GSDirEnumErrorHandler, BOOL, NSURL*, NSError*);
|
|||
NSString *_topPath;
|
||||
NSString *_currentFilePath;
|
||||
NSFileManager *_mgr;
|
||||
GSDirEnumErrorHandler _errorHandler;
|
||||
struct _NSDirectoryEnumeratorFlags // tag for objc++ w/gcc 4.6
|
||||
{
|
||||
BOOL isRecursive: 1;
|
||||
BOOL isFollowing: 1;
|
||||
BOOL justContents: 1;
|
||||
BOOL skipHidden: 1;
|
||||
} _flags;
|
||||
#endif
|
||||
#if GS_NONFRAGILE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue