How would I get this cursor without having to save an image of it and putting it inside my app bundle?
Thanks in advance
Thanks in advance
It's not directly available in Cocoa. You can get it to appear in Cocoa apps if you accept a drag with certain masks but that's because the Finder is setting it.
As you can see here it can be set via a Carbon call but not a Cocoa one. Just call the Carbon method.
- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender
{
return NSDragOperationCopy;
}
No need to go with Carbon. Just setup your NSView like this:
Code:- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender { return NSDragOperationCopy; }
That was what I was alluding to when I said "if you accept a drag with certain masks". I assumed the OP was wanting to make this appear in other conditions via a NSCursor set call, which cannot be done, but can via Carbon.
[[NSCursor _copyDragCursor] set];
No need to go with Carbon. Just setup your NSView like this:
Code:- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender { return NSDragOperationCopy; }