Re: clip cursor in NSView

2009-01-17 Thread Sean McBride
Gami Ravi (ravi.g...@einfochips.com) on 2009-01-17 12:37 AM said:

>NSTrackingArea class is only for Mac OS 10.5 and later.
>What if i want to achieve same functionality in Mac OS 10.4?
>Please suggest.

In addition to what Scott said, you can open Xcode, go to the Help menu,
choose Documentation, look up NSView, and see the section about
'Managing Cursor Tracking'.

Sean


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: clip cursor in NSView

2009-01-16 Thread Scott Anguish


On 17-Jan-09, at 12:37 AM, Gami Ravi wrote:


Hi Sean,
I am sorry for mistake.
Thanks for your valuable input. NSTrackingArea class is only for Mac  
OS 10.5 and later.

What if i want to achieve same functionality in Mac OS 10.4?


Have a look at the View Programming Guide for Cocoa documentation. it  
describes how to do this.

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/scott%40cocoadoc.com

This email sent to sc...@cocoadoc.com


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: clip cursor in NSView

2009-01-16 Thread Gami Ravi

Hi Sean,
I am sorry for mistake.
Thanks for your valuable input. 
NSTrackingArea class is only for Mac OS 10.5 and later.

What if i want to achieve same functionality in Mac OS 10.4?
Please suggest.

Thanks & Regards,
Ravi Gami.

- Original Message - 
From: "Sean McBride" 

To: "Gami Ravi" ; 
Sent: Saturday, January 17, 2009 10:33 AM
Subject: Re: clip cursor in NSView


Gami Ravi (ravi.g...@einfochips.com) on 2009-01-17 11:54 PM said:


I want to clip cursor in particular rectangle. Ultimately i am looking
for same function as ClipCursor on Windows OS.

How can i achieve same functionality in MAC?

Any help would be appreciated.


What does ClipCursor do?  (You can't expect list members to be Windows
experts...)

In any case, have you looked at the NSTrackingArea class?  And the
NSView class?

Also, it's spelt "Mac".

Sean




Email Scanned for Virus & Dangerous Content by : www.CleanMailGateway.com

--
_
Disclaimer: This e-mail message and all attachments transmitted with it
are intended solely for the use of the addressee and may contain legally
privileged and confidential information. If the reader of this message
is not the intended recipient, or an employee or agent responsible for
delivering this message to the intended recipient, you are hereby
notified that any dissemination, distribution, copying, or other use of
this message or its attachments is strictly prohibited. If you have
received this message in error, please notify the sender immediately by
replying to this message and please delete it from your computer. Any
views expressed in this message are those of the individual sender
unless otherwise stated.Company has taken enough precautions to prevent
the spread of viruses. However the company accepts no liability for any
damage caused by any virus transmitted by this email.
__

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: clip cursor in NSView

2009-01-16 Thread Rob Keniger


On 17/01/2009, at 2:54 PM, Gami Ravi wrote:

I want to clip cursor in particular rectangle. Ultimately i am  
looking for same function as ClipCursor on Windows OS.


How can i achieve same functionality in MAC?



Please don't try. This is what MS says about ClipCursor:

"The ClipCursor function confines the cursor to a rectangular area on  
the screen. If a subsequent cursor position (set by the  
SetCursorPosfunction or the mouse) lies outside the rectangle, the  
system automatically adjusts the position to keep the cursor inside  
the rectangular area."


Hijacking the mouse pointer like this is not normal behavior on the Mac.

Why do you want to do this?

--
Rob Keniger



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: clip cursor in NSView

2009-01-16 Thread Sean McBride
Gami Ravi (ravi.g...@einfochips.com) on 2009-01-17 11:54 PM said:

>I want to clip cursor in particular rectangle. Ultimately i am looking
>for same function as ClipCursor on Windows OS.
>
>How can i achieve same functionality in MAC?
>
>Any help would be appreciated.

What does ClipCursor do?  (You can't expect list members to be Windows
experts...)

In any case, have you looked at the NSTrackingArea class?  And the
NSView class?

Also, it's spelt "Mac".

Sean


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com