[Biococoa-dev] Re: Weird bug with selection in Textview with custom textcontainer [solved]
ddavidso at apple.com
Tue Apr 18 14:16:43 EDT 2006
On Apr 18, 2006, at 11:12 AM, Alexander Griekspoor wrote:
> Many thanks for the advice, I've got it to work!
> Below is the implementation of a custom layoutmanager class that
> fixes the problem. The nice thing is that it will get self-
> deactivated when you've fixed the problem ;-) I know if I have
> correctly implemented the fractionOfDistanceThroughGlyph part of
> the method, I'm not well known with c pointers, but that's anyway
> not really needed anyway for me.
> Once again, thanks for the help!
That should work. The lines that say "partialFraction = &fraction;"
should instead read "if (partialFraction) *partialFraction =
fraction;" but overall it seems reasonable.
More information about the Biococoa-dev