Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with TextView drawing



Hi there.

I have a problem with my textview. It's hard to describe, so please have a look at this movie:

<http://www.blue-tec.com/private/stuff/snapshot.mov>

The text in the lower part isn't redrawn (correctly ?) when I do a edit. Sometimes it happens that a line is drawn twice and one can't read anything. I must add that this behaviour doesn't appear all the time and that it somehow becomes heavier the longe you edited the text...

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. The customization I did to the LayoutManager just affect the drawing procedures (I added hidden character drawing) and shouldn't have any effect on glyph layout.

Please, is anyone having an idea out there?
thanks,

Max

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.