SourceView/ChildNode.m
/* |
Copyright (C) 2018 Apple Inc. All Rights Reserved. |
See LICENSE.txt for this sample’s licensing information |
Abstract: |
Generic child node object used with NSOutlineView and NSTreeController. |
*/ |
#import "ChildNode.h" |
@implementation ChildNode |
// ------------------------------------------------------------------------------- |
// init |
// ------------------------------------------------------------------------------- |
- (instancetype)init |
{ |
self = [super init]; |
if (self != nil) |
{ |
self.nodeTitle = @""; |
} |
return self; |
} |
// ------------------------------------------------------------------------------- |
// description |
// ------------------------------------------------------------------------------- |
+ (NSString *)description |
{ |
return @"ChildNode"; |
} |
// ------------------------------------------------------------------------------- |
// mutableKeys |
// |
// Maintain support for archiving and copying. |
// ------------------------------------------------------------------------------- |
- (NSArray *)mutableKeys |
{ |
return [super.mutableKeys arrayByAddingObjectsFromArray:@[@"description"]]; |
} |
@end |
Copyright © 2018 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2018-02-15