• 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
NSOutlineView as dragging destination for promised files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOutlineView as dragging destination for promised files


  • Subject: NSOutlineView as dragging destination for promised files
  • From: Patrick Gleichmann <email@hidden>
  • Date: Mon, 14 Nov 2005 21:04:59 +0100

My dragging source contains the following code:

[self dragPromisedFilesOfTypes:[NSArray arrayWithObject:@"jpg"]
fromRect:dragLoc source:self slideBack:TRUE event:ev];
and
- (NSArray*)namesOfPromisedFilesDroppedAtDestination:(NSURL*) dropDestination {
// NSLog(@"namesOf.. %@", dropDestination);
return [NSArray arrayWithObject:@"test.jpg"];
}


Now I have a delegate for a NSOutlineView - dragging destination - that contains

- (NSDragOperation)outlineView:(NSOutlineView*)outlineView validateDrop:(id<NSDraggingInfo>)info
// The usual checks..
return NSDragOperationCopy;


The "outlineView:validateDrop:" method is called, but where and how am I supposed to call the "namesOfPromisedFilesDroppedAtDestination:" of the dragging source?

Thanks alot,
Patrick
_______________________________________________
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
  • Follow-Ups:
    • Re: NSOutlineView as dragging destination for promised files
      • From: Wain <email@hidden>
  • Prev by Date: AppleScript record returned from command
  • Next by Date: Re: Are these the same and correct?
  • Previous by thread: AppleScript record returned from command
  • Next by thread: Re: NSOutlineView as dragging destination for promised files
  • Index(es):
    • Date
    • Thread