Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help needed




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: http://lists.apple.com/mailman/options/cocoa-dev/idiotsavant2005% 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:
http://lists.apple.com/mailman/options/cocoa-dev/idiotsavant2005% 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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Help needed (From: Imtiyaz <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.