Re: Tracking Rect problem.
Re: Tracking Rect problem.
- Subject: Re: Tracking Rect problem.
- From: Eric Morand <email@hidden>
- Date: Fri, 9 Sep 2005 10:39:59 +0200
Could you send us your custom NSButton implementation source code ?
I'm not sure that having the trancking rect being added in the
drawRect method is a good idea.
Le 9 sept. 05 à 05:55, ARATHI A a écrit :
Its not working...
I change the resolution before run my application.
In more detail.
My application size is 1024 x 768.
I create the nib with this resolution.
When the resolution change less than 1024 x 768 , i provide a
scroll bar so
that,
the user can view the entire application using vertical and horizondal
scroll bar.
Providing scroll bars to my application , the mouseEntered and
mouseExited
event do not
working properly.I add tracking rect for mouse entered and mouse
exited
event in the
drawRect also. But the mouseEntered and exited working not in a
manner i
want.
-----Original Message-----
From: Ryan Stevens
To: ARATHI A
Cc: 'email@hidden'
Sent: 09/08/2005 8:09 PM
Subject: Re: Tracking Rect problem.
Maybe you should listen for
NSApplicationDidChangeScreenParametersNotification and reset the
tracking rect.
On Sep 7, 2005, at 9:33 PM, ARATHI A wrote:
Hi all,
I am new XCode user.I have a serious problem related to
tracking
rect for mouse entered and exited event.In my application I use custom
NSButton.This button has three states.Normal , Normal focused and
active
state.I first sub class NSButton and add mouseDown , mouseEntered and
mouseExited.In mouseDown I load active state image to the button, in
mouseEntered I load i load normal focused state image and
mouseExited I
load
normal state image to the NSButton.
1: Normal - normal state.
2:Normal Focused - Mouse over the button.
3:Active state - Mouse over the button as well as the functionality is
executed.
I add tracking rectangle in awakeFromNib .In the display resolution
1024 x
768 and above my button work fine.But I reduce the resolution like
800x600 ,
the mouseEntered event occurs irregularly.When i move the mouse
over the
button the normal focused image donot load.It will load when i move
the
mouse cursor below the area of my NSButton placed.I think the
problem is
due
to adding the tracking rect for mouse entered and mouseExited event.
Anybody who knows about this problem please share your experience and
knowledge with me.
Thanks in advance
Arathi A
----------------------------------------------------------------------
--
---
"This e-mail and any files transmitted with it are for the sole
use
of the intended recipient(s) and may contain confidential and
privileged
information. If you are not the intended recipient, please contact the
sender by reply e-mail and destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination,
forwarding,
printing or copying of this email or any action taken upon this e-mail
is
strictly prohibited and may be unlawful."
----------------------------------------------------------------------
--
---
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list ( email@hidden
<mailto:email@hidden> )
Help/Unsubscribe/Update your Subscription:
40mac.com>
This email sent to email@hidden <mailto:email@hidden>
----------------------------------------------------------------------
-----
"This e-mail and any files transmitted with it are for the
sole use
of the intended recipient(s) and may contain confidential and
privileged
information. If you are not the intended recipient, please contact the
sender by reply e-mail and destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination,
forwarding,
printing or copying of this email or any action taken upon this e-
mail is
strictly prohibited and may be unlawful."
----------------------------------------------------------------------
-----
_______________________________________________
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
_______________________________________________
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