Re: URL formatting in NSAttributedString
Re: URL formatting in NSAttributedString
- Subject: Re: URL formatting in NSAttributedString
- From: Rachel Blackman <email@hidden>
- Date: Sat, 26 Jun 2004 19:37:04 -0700
>
NSTextView should handle changing the cursor to the one specified with
>
the NSCursorAttributeName key automatically.
Doesn't seem to be. :(
>
One caveat that I have run into is that the text in the NSTextView
>
must be selectable in order for the cursor attributes of text to work
>
at all. If it would work better if your NSTextView is unselectable,
>
you can fake "un-selectability" in a NSTextView that allows selection
>
by changing the attributes used for selected text and using one of the
>
NSTextView delegate methods.
That shouldn't be a problem; the NSTextView is selectable but not
editable. I /am/ using a subclass of NSTextView which I wrote, but I
only overrode awakeFromNib, really; the rest are functions to tie it
together with everything else. I /do/ accept mouse events, and use it
to throw up tooltips with a timestamp for a few things, but I pulled
all that code out to replace with addToolTipRect (now only awakeFromNib
being overridden by my subclass), and I still don't see cursors.
I pulled tooltipping code out /entirely/, overriding absolutely no
stock method, and I still don't see the cursors. :(
>
If you already have the NSTextView set as selectable, then there must
>
be some other problem. If you post a few more details about what you
>
are trying to do (or code), it would help to narrow down the possible
>
causes.
One potential issue (I suppose?) might be that it's not the TextView
which is setting up the attributes. Things come in and are translated
to an attributed string (with colors, links, and suchnot), which is
then sorted out for which of my RDTextViews should get it, and appended
to the TextStorage (which is not subclassed). Still, all the colors
and everything else show up fine, so I don't think that's the problem.
Any further help much appreciated... :(
--
Rachel 'Sparks' Blackman -- sysadmin, developer, mad scientist
"If it is not broken, give me five minutes to redesign it!"
[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.