• 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: enabling drag and drop in nsoutlineview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: enabling drag and drop in nsoutlineview


  • Subject: Re: enabling drag and drop in nsoutlineview
  • From: Stephane Huaulme <email@hidden>
  • Date: Fri, 11 Apr 2008 15:12:52 -0500

note that i did register my drap and drop type in awakeFromNib, and that code does get executed:
[outlineView registerForDraggedTypes:[NSArray arrayWithObject:myAgendaNodeType]];


however, the following proc:
- (BOOL)outlineView:(NSOutlineView *)outlineView writeItems:(NSArray *)items toPasteboard:(NSPasteboard *)pboard {
never gets called, which is why i suspect something is not set properly in the nib.




On Apr 11, 2008, at 2:11 PM, Stephane Huaulme wrote:

i used the abstracttree sample project step by step instructions, and i get it to work as expected except when it comes to drap and drop.
comparing the nib files between my implementation and the one that comes in the sample code, i can't see anything different.


i do expect the drap and drop to require something setup properly in the nib file for the outline view, but i just can't find it.
note that i did implement:
- (BOOL)outlineView:(NSOutlineView *)outlineView writeItems:(NSArray *)items toPasteboard:(NSPasteboard *)pboard {
- (BOOL)outlineView:(NSOutlineView *)outlineView acceptDrop:(id <NSDraggingInfo>)info item:(id)item childIndex:(NSInteger)index {
- (NSDragOperation)outlineView:(NSOutlineView *)outlineView validateDrop:(id <NSDraggingInfo>)info proposedItem:(id)item proposedChildIndex:(NSInteger)index {



what am i missing?


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: enabling drag and drop in nsoutlineview
      • From: Stephane Huaulme <email@hidden>
References: 
 >enabling drag and drop in nsoutlineview (From: Stephane Huaulme <email@hidden>)

  • Prev by Date: Re: Building a custom Data Detector
  • Next by Date: Re: Efficient object wrappers and GC
  • Previous by thread: Re: enabling drag and drop in nsoutlineview
  • Next by thread: Re: enabling drag and drop in nsoutlineview
  • Index(es):
    • Date
    • Thread