Okay here's the deal. I have a NSTextView. It colors the text accordingly by code... I am setting up the preferences to change the colors, but not have been successful with live updating of the text.
I have bound the NSColors to NSUserdefaults. It works, but doesn't update unless you edit the textview. I can get it to work by calling the function...
But this method is far to slow... (Coloring is done through textStorageDidProcessEditing
Anyone have any ideas? Something im missing?
Thanks
Chris
I have bound the NSColors to NSUserdefaults. It works, but doesn't update unless you edit the textview. I can get it to work by calling the function...
Code:
[self textStorageDidProcessEditing:[NSNotification notificationWithName:@"new" object:[myTextView textStorage]]];
But this method is far to slow... (Coloring is done through textStorageDidProcessEditing
Anyone have any ideas? Something im missing?
Thanks
Chris