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

Re: NSOutlineView as dragging destination for promised files


  • Subject: Re: NSOutlineView as dragging destination for promised files
  • From: Patrick Gleichmann <email@hidden>
  • Date: Tue, 15 Nov 2005 19:21:30 +0100


On 14.11.2005, at 23:43, Wain wrote:

Look at the documentation for <NSDraggingInfo> protocol.

"- (NSArray *)namesOfPromisedFilesDroppedAtDestination:(NSURL *) dropDestination" is intended to be called from the operations defined within < NSDraggingDestination> protocol which (almost) all contain an "(id <NSDraggingInfo>) sender", messages should be sent to this object.

Hope this helps.


Thanks, but nope :-/

In the destination outlineview I have the following code:

- (BOOL)outlineView:(NSOutlineView*)ov acceptDrop:(id<NSDraggingInfo>) info
item:(id)item childIndex:(int)index {


  NSLog(@"> %@", info);
  [[info draggingSource] namesOfPromisedFilesDroppedAtDestination:
      [NSURL fileURLWithPath:@"/Users/patrick/Test"]]);

The NSLog gives "NSFilePromiseDragSource" as type - an undocumented class ?! Why isn't this my dragging source that I specified with "source:self"?
So of course the "namesOfPromised..." fails with:


*** -[NSFilePromiseDragSource namesOfPromisedFilesDroppedAtDestination:]: selector not recognized [self = 0x5304bf0]

Help me 8-)
Thanks, 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: Corbin Dunn <email@hidden>
References: 
 >NSOutlineView as dragging destination for promised files (From: Patrick Gleichmann <email@hidden>)
 >Re: NSOutlineView as dragging destination for promised files (From: Wain <email@hidden>)

  • Prev by Date: Re: [CoreData] Undo of insert - how to close the removed object's window?
  • Next by Date: Re: porting old app to OS X
  • Previous by thread: Re: NSOutlineView as dragging destination for promised files
  • Next by thread: Re: NSOutlineView as dragging destination for promised files
  • Index(es):
    • Date
    • Thread