Re: NSDragOperation for operationNotAllowedCursor !!

2011-06-16 Thread Kyle Sluder
On Thu, Jun 16, 2011 at 9:29 AM, Raleigh Ledet  wrote:
> In the meantime, you can create your own cursor with your own cursor image 
> and set it manually. You'll be fighting the system a bit, but if you time it 
> right, you should be ok.

Yea, this is what you're gonna have to do. NSDragOperationNone results
in an unbadged cursor.

I've been wishing for a while for a simple NSDraggingInfo method
called -setCursor: that would make it possible for custom cursors to
work for both in-app and cross-app drags. You can fake it yourself
using -pushCursor, but the logic is kind of subtle, and I'm iffy on
whether it breaks when the user drags out of your view and into
another app.

--Kyle Sluder
___

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: NSDragOperation for operationNotAllowedCursor !!

2011-06-16 Thread Raleigh Ledet
File a radar asking for a new NSDragOperation, NSDragOperationNotAllowed.

In the meantime, you can create your own cursor with your own cursor image and 
set it manually. You'll be fighting the system a bit, but if you time it right, 
you should be ok.

-raleigh

On Jun 15, 2011, at 7:47 AM, Naresh Kongara wrote:

> Hi,
> 
> I'm working on a cocoa application, which is like a file browser similar to 
> finder.  In this application we implemented drag and drop of files/folder. we 
> succeeded in displaying copy and link cursors for respective drag operations. 
> As in finder how can we display a OperationNotAllwedCursor when user tries to 
> drag a folder onto itself.  I mean which drag operation displays such kind of 
> cursor.  I tried returning all NSDragOperations from validateDrop: methods, 
> but none of the operation displays such kind of cursor.  Do we need to 
> implement any thing special for this . Pls do let me know if you have any 
> idea.
> 
> 
> Thanks,
> nkongara___
> 
> 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/ledet%40apple.com
> 
> This email sent to le...@apple.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: NSDragOperation for operationNotAllowedCursor !!

2011-06-15 Thread Tony Romano
Return this NSDragOperationNone is validateDrop:

Tony Romano











On 6/15/11 7:48 AM, "Naresh Kongara"  wrote:

>Hi,
>
>I'm working on a cocoa application, which is like a file browser similar
>to finder.  In this application we implemented drag and drop of
>files/folder. we succeeded in displaying copy and link cursors for
>respective drag operations. As in finder how can we display a
>OperationNotAllwedCursor when user tries to drag a folder onto itself.  I
>mean which drag operation displays such kind of cursor.  I tried
>returning all NSDragOperations from validateDrop: methods, but none of
>the operation displays such kind of cursor.  Do we need to implement any
>thing special for this . Pls do let me know if you have any idea.
>
>
>Thanks,
>nkongara___
>
>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/tonyrom%40hotmail.com
>
>This email sent to tony...@hotmail.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


NSDragOperation for operationNotAllowedCursor !!

2011-06-15 Thread Naresh Kongara
Hi,

I'm working on a cocoa application, which is like a file browser similar to 
finder.  In this application we implemented drag and drop of files/folder. we 
succeeded in displaying copy and link cursors for respective drag operations. 
As in finder how can we display a OperationNotAllwedCursor when user tries to 
drag a folder onto itself.  I mean which drag operation displays such kind of 
cursor.  I tried returning all NSDragOperations from validateDrop: methods, but 
none of the operation displays such kind of cursor.  Do we need to implement 
any thing special for this . Pls do let me know if you have any idea.


Thanks,
nkongara___

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


NSDragOperation for operationNotAllowedCursor !!

2011-06-15 Thread Naresh Kongara
Hi,

I'm working on a cocoa application, which is like a file browser similar to 
finder.  In this application we implemented drag and drop of files/folder. we 
succeeded in displaying copy and link cursors for respective drag operations. 
As in finder how can we display a OperationNotAllwedCursor when user tries to 
drag a folder onto itself.  I mean which drag operation displays such kind of 
cursor.  I tried returning all NSDragOperations from validateDrop: methods, but 
none of the operation displays such kind of cursor.  Do we need to implement 
any thing special for this . Pls do let me know if you have any idea.


Thanks,
nkongara___

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