• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problem with TextView drawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with TextView drawing


  • Subject: Problem with TextView drawing
  • From: Max Seelemann <email@hidden>
  • Date: Thu, 21 Oct 2004 22:19:21 +0200

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:

This email sent to email@hidden
  • Prev by Date: Re: Copy and release
  • Next by Date: NSStatusItem with custom view
  • Previous by thread: Re: How do you create a NSTabViewItem containing NSImageView programmatically? I almost got it...
  • Next by thread: NSStatusItem with custom view
  • Index(es):
    • Date
    • Thread