• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Drag & Drop problem solved.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drag & Drop problem solved.


  • Subject: Drag & Drop problem solved.
  • From: klee04 <email@hidden>
  • Date: Mon, 22 Nov 2004 17:17:42 +0900

Hi,

 

I had that weird problem of not receiving dragging mouse event when drag and drop started.  When I used following code, it solved the problem.

 

 [pboard declareTypes:[NSArray arrayWithObjects: DragDropSimplePboardType, NSStringPboardType, nil] owner:self];

 [pboard setData:[NSData data] forType:DragDropSimplePboardType];    

 

I put these lines when I started dragging, and it worked even though I do not know why this call is necessary.  Doesn’t this work on copy, cut and paste?

 

Kanghoon Lee.

 

 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Smooth Scrolling / Animation with Cocoa
  • Next by Date: mouse location across multiple monitors
  • Previous by thread: Re: Using bindings to set the value of an NSTextView
  • Next by thread: mouse location across multiple monitors
  • Index(es):
    • Date
    • Thread