• 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 Drag and Drop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView Drag and Drop


  • Subject: Re: NSOutlineView Drag and Drop
  • From: Chris Williams <email@hidden>
  • Date: Wed, 15 Sep 2010 00:29:50 -0400
  • Acceptlanguage: en-US
  • Thread-topic: NSOutlineView Drag and Drop

Or check the sample code.  There's a great sample that shows it all.


________________________________
From: Seth Willits <email@hidden>
Date: Tue, 14 Sep 2010 23:20:24 -0400
To: cocoa-dev list <email@hidden>
Subject: Re: NSOutlineView Drag and Drop

On Sep 14, 2010, at 7:36 PM, email@hidden wrote:

> Other than
>
> - (NSDragOperation)outlineView:(NSOutlineView *)outlineView validateDrop:(id <NSDraggingInfo>)info proposedItem:(id)item proposedChildIndex:(int)index
>
> and
>
> - (BOOL)outlineView:(NSOutlineView *)outlineView acceptDrop:(id <NSDraggingInfo>)info item:(id)item childIndex:(int)index
>
> what do i need to implement so I can drag item within an NSOutline View?


That's the drop methods. You also need to implement the drag methods. There's another protocol for that. Also, you need to use the NSView method to register for dragged types.


--
Seth Willits



_______________________________________________

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

_______________________________________________

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

References: 
 >Re: NSOutlineView Drag and Drop (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: Core Data Migration : Splitting an Entity : Source Fetch ?
  • Next by Date: NSImageViews, Block Animation and Frame by Frame Image Swapping
  • Previous by thread: Re: NSOutlineView Drag and Drop
  • Next by thread: Re: NSOutlineView Drag and Drop
  • Index(es):
    • Date
    • Thread