Re: Apple's Code Level Support
Re: Apple's Code Level Support
- Subject: Re: Apple's Code Level Support
- From: Max Seelemann <email@hidden>
- Date: Mon, 28 Mar 2005 21:02:19 +0200
I've customized this textview and added a custom TextStorage and a custom LayoutManager. The TextStorage *should* work as a normal one, but in fact, it adds some counting functionality and does some customization to the attributesAtIndex: function of NSTextStorage. (But I don't think that this should be the problem). I call - (void)edited:(unsigned)editedMask range:(NSRange)range changeInLength:(int)delta; every time I do a change and everything works fine except of this drawing issue.
We can assume you're calling beginEditing and endEditing as well as (or in place of) edited:range:changeInLength:, right?
Why should I be doing so? These methodes just deal with interface update but my internal storage textStorage has no interface to update. So this would be some kind of waste of computing power. I'm just doing the necessary calls described in Apple's "How to override a NSTextStorage" documentation. This should be enough, shouldn't it?
Max
--
Max Seelemann
email@hidden
--
chairman, executive director
The Blue Technologies Group
http://www.blue-tec.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden