Re: hyperlinktext cursor is not changing untill focus on textview
Re: hyperlinktext cursor is not changing untill focus on textview
- Subject: Re: hyperlinktext cursor is not changing untill focus on textview
- From: Pintoo M <email@hidden>
- Date: Tue, 30 Aug 2005 12:20:28 +0530
Hi
when i looked at the nib file of mail app ie messageEditor.nib i have found
that its default behaviour is also the same as of my app...that if i current
focus is in some other view (textfield) and if user moves his mouse to the
hyperlink(in a textview) the cursor not chages to hand cursor...
but when we run mail app this is not the behaviour... they have inherit the
nstextviewclass to make messagetextview....and i think they have overrided
some of the methods...(but which to achieve this, don't know???)
since nsview inherits frm nsrespoder so i can trap various mouse events...
but how can i know that currently the mouse is over my hyperlink text... so
that i can change the cursor or add some tooltip for the hyperlink text.
Any suggestions how to achieve this behaviour.
Regards
Pintoo
On 8/29/05, Pintoo M <email@hidden> wrote:
>
> Hi
>
> i have a NSTextfield and a NSTextview(non editable but selectable) .
>
> when current focus is in NSTextfield (i m writing something in
> nstextfield) if i move my mouse to nstextview my hyperlink text is not
> showing me the hand cursor instead showing the beam cursor. but once i
> clicked in my NSTextView then my hyperlink text gets the handcursor.
>
> I have seen the mail app it is showing the correct behaviour(even when
> u are writing in subject and if there is a hyperlink in the body,
> cursor gets change when u move mouse over it).
>
> Can some one suggest me how can i achieve this behaviour.
>
> Cheers,
> Pintoo
>
_______________________________________________
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