Accessors to children

Keith Hodges keith_hodges at yahoo.co.uk
Sun Sep 24 02:59:40 MEST 2006


Lukas,

When PRChildren is empty, I am getting uneccessary database accesses at 
every leaf node. I am sure that there are several ways of solving this 
but for now I am experimenting in my image with...

PRStructure>>#childrenDecoration removed

and an access interface defined for children...

#addChild:
#childAt:
#childAt:ifAbsent:
#childAt:ifPresent:
#childrenIncludes:
#removeChild:

Such that if there are no children then no PRChildren decoration is 
added into the structure's decorations.

would this change be acceptable?

Keith




	
	
		
___________________________________________________________ 
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine 
http://uk.docs.yahoo.com/nowyoucan.html


More information about the SmallWiki mailing list