Re: NSTextView - text wrapping
Re: NSTextView - text wrapping
- Subject: Re: NSTextView - text wrapping
- From: Ian was here <email@hidden>
- Date: Thu, 5 May 2005 11:49:46 -0700 (PDT)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
OK, I looked in the NSATSTypeSetter class and found
-
(BOOL)shouldBreakLineByWordBeforeCharacterAtIndex:(unsigned)charIndex:
I subclassed NSATSTypeSetter and inserted a tab into
my text view's string each time it was envoked
(according to the documentation, it's envoked each
time a word wrap takes place). The problem I'm having
is that it is being called several times between line
wraps. Is this a bug?
Thanks.
--- Johnny Deadman <email@hidden> wrote:
> On 4-May-05, at 4:07 PM, Ian was here wrote:
>
> > Does anyone know how to detect text wrapping in an
> > NSTextView? NSResponder has many actions for
> detecting
> > key stroke commands, but nothing for text reaching
> the
> > far right of the text field and starting a new
> line.
>
> The specific decision about where to break a line is
> made by the
> particular subclass of NSTypesetter that is in
> action, under the
> control of NSLayoutManager. Check the docs for
> NSTypesetter and
> NSATSTypesetter.
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.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