SimpleBrowser/FileSystemNode.h
/* |
Copyright (C) 2016 Apple Inc. All Rights Reserved. |
See LICENSE.txt for this sample’s licensing information |
Abstract: |
An abstract wrapper node around the file system. |
*/ |
@import Cocoa; |
// This is a simple wrapper around the file system. Its main purpose is to cache children. |
@interface FileSystemNode : NSObject <NSToolbarDelegate> |
// The designated initializer |
- (id)initWithURL:(NSURL *)url NS_DESIGNATED_INITIALIZER; |
@property(readonly) NSURL *URL; |
@property(readonly, copy) NSString *displayName; |
@property(readonly, strong) NSImage *icon; |
@property(readonly, strong) NSArray *children; |
@property(readonly) BOOL isDirectory; |
@property(readonly) BOOL isPackage; |
@property(readonly, strong) NSColor *labelColor; |
- (void)invalidateChildren; |
@end |
Copyright © 2016 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2016-04-29