PDA

View Full Version : Code Folding in Cocoa - Anyone know how to?




xyzeugene
Feb 13, 2009, 02:40 PM
Hello Mac Peeps,

Does anyone know how to program or have the cocoa source code to do code folding on an Intel Mac? An example would be nice. I want to include this in a data analysis program I am writing.

Thanks

Eugene



autorelease
Feb 13, 2009, 04:21 PM
Code folding in Cocoa? Do you mean that you're creating a text editor, and want to add code folding to it? Or do you want to know how to use code folding in Xcode?

xyzeugene
Feb 13, 2009, 04:35 PM
Code folding in Cocoa? Do you mean that you're creating a text editor, and want to add code folding to it? Or do you want to know how to use code folding in Xcode?

Nope, I know XCode can fold source code-this is a programming question for a folding component to the framework NSTextView or similar. I need a component or source code that will fold regions of text. I will add an embedded text editor in my program I am designing.

Eugene