mirror of
https://github.com/nickshanks/ResKnife.git
synced 2024-10-01 07:57:40 +00:00
55 lines
902 B
Mathematica
55 lines
902 B
Mathematica
|
//
|
||
|
// NuTemplateLSTEElement.m
|
||
|
// ResKnife (PB2)
|
||
|
//
|
||
|
// Created by Uli Kusterer on Tue Aug 05 2003.
|
||
|
// Copyright (c) 2003 M. Uli Kusterer. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "NuTemplateLSTEElement.h"
|
||
|
|
||
|
|
||
|
@implementation NuTemplateLSTEElement
|
||
|
|
||
|
|
||
|
-(void) readSubElementsFrom: (NuTemplateStream*)stream
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
-(void) readDataFrom: (NuTemplateStream*)stream containingArray: (NSMutableArray*)containing
|
||
|
{
|
||
|
NSEnumerator* enny = [subElements objectEnumerator];
|
||
|
NuTemplateElement* el;
|
||
|
|
||
|
while( el = [enny nextObject] )
|
||
|
{
|
||
|
[el readDataFrom: stream containingArray: subElements];
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
// Doesn't write any sub-elements because this is simply a placeholder to allow for empty lists:
|
||
|
-(unsigned int) sizeOnDisk
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
-(void) writeDataTo: (NuTemplateStream*)stream
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
-(int) subElementCount
|
||
|
{
|
||
|
return 0; // We don't want the user to be able to uncollapse us to see our sub-items.
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
@end
|