code editor

marksibly

Registered
Hi,

I am trying to write a little code editor in cocoa with interface builder and xtools.

It appears I have to implement an NSTextStorage delegate to do syntax highlighting and so on, but I can't work out how to set the delegate using interface builder.

I can set the delegate OK for the actual NSTextView, but not the NSTextStorage contained within the NSTextView.

Any hints would be much appreciated.

Bye!
Mark
 
You can't get at the NSTextStorage from IB. You'll have to do it in code, preferably in your controller object's -awakeFromNib
 
Back
Top