Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8448793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:31:31+00:00 2026-06-10T10:31:31+00:00

I have implemented drag-n-drop in a custom Calendar view in my application, which does

  • 0

I have implemented drag-n-drop in a custom Calendar view in my application, which does a good job of providing support for moving items around.

But, I would like to add visual support for copying items. I have already implemented this in the back-end (when the Option key is held down) but I would like to supplement the feature with a more context-sensitive icon.

I have an NSImage created from the event, as displayed in my Calendar. This makes it seem as though the actual item is being dragged. (Which is nice!):

NSImage *i = ...;

...

[self dragImage:i at:thePoint offset:NSZeroSize event:theEvent pasteboard:pboard source:nil slideBack:NO];

But, in a situation where the user is holding down the Option key, I’d like to superimpose the “plus” or “copy” green plus icon over the top of my NSImage so it is apparent that the drop will result in a copy.

Is there any easy way to accomplish this? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:31:33+00:00Added an answer on June 10, 2026 at 10:31 am

    You can implement draggingEntered: and/or draggingUpdated: in your view and return NSDragOperationCopy to get a green plus icon automatically.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have implemented drag and drop in my application, but am having some difficulty
I have implemented my custom drag&drop by deriving from COleDataSource and COleDropTarget. Everythings work
I have an application where I have one custom view which is derived from
I have a WPF 4 application where I have implemented Drag and Drop using
Our product team has requested custom cursors during drag/drop operations. They have provided me
I have simple drag and drop functions implemented in QmainWindow the reference taken from
I have a class derived from JTree with custom TreeCellRenderers. I have implemented drag
I'm new to jquery I have implemented drag and drop operation using Kinetic.js I
I'm writing a new web application that needs to support drag and drop operations
I'm new to jQuery. I have implemented a drag and drop scenario. My question

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.