Re: Help needed
Re: Help needed
- Subject: Re: Help needed
- From: "I. Savant" <email@hidden>
- Date: Mon, 27 Feb 2006 12:00:17 -0500
Your borderless window will have a custom view in it that fills
with the tooltip color and contains the appropriate text. Dragging
the mouse should call a method to display the tooltip if it's not
currently displayed, then set its origin to somewhere near the mouse
pointer.
Really, this boils down to research. You'll want to read
(thoroughly) the documentation for NSWindow.
You can also learn about borderless windows here: http://
www.cocoadev.com/index.pl?BorderlessWindow
This wiki page also discusses the same approach I'm recommending:
http://www.cocoadev.com/index.pl?AnimatingDragImages
You may also want to learn about custom views and drawing here:
http://developer.apple.com/documentation/Cocoa/Conceptual/DrawViews/
index.html
Also, you'll get a better response from the community if you take
the time to thoroughly read the documentation and ask more specific
questions, rather than a general "help me with this" post. :-) This
helps you learn and minimizes what everyone else has to do to help
you (which makes them want to help you more).
--
I.S.
On Feb 27, 2006, at 11:09 AM, Imtiyaz wrote:
Thanks I. Savant,
I have been trying things, but nothing seems to be working out.
Can someone guide me ,how to achieve the desired behavior
in Sketch example and some related examples that can be
helpful in this.
Thanks in advance.
Regards,
Imtiyaz.
On 2/24/06 7:47 PM, "I. Savant" <email@hidden> wrote:
You will likely need to do this with a borderless, custom window
and custom drawing. You'll re-position the window with your mouse
event code to follow the pointer as you're drawing your line.
--
I.S.
On Feb 24, 2006, at 9:14 AM, Imtiyaz wrote:
Hi,
I need help in drawing a line with the tooltip.
Below is the brief explanation of the problem.
I am Trying my hands with Sketch example that is in the Example
Section of
Developer Tools (XCode 2.0).
I am selecting line tool for drawing a line in view. When I should
click in
View area (mouse down for drawing) and start drawing, updated
tooltip should
appear from the starting point to the end point of the line (mouse
released).
Can anyone guide me how to do this.
Regards,
Imtiyaz.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
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:
40gmail.com
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