add -Wall to CFLAGS.
add foldedTextAt:length: and setFoldedText:range: methods.