• 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: Dragging Methods for NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dragging Methods for NSOutlineView


  • Subject: Re: Dragging Methods for NSOutlineView
  • From: Pete Yandell <email@hidden>
  • Date: Fri, 30 May 2003 10:58:50 +1000

On Friday, May 30, 2003, at 01:29 AM, Craig Bakalian wrote:

What would stop a dragging method from firing in a NSOutlineView or
what am I not doing to cause it to fire? This is in my data source:

-(BOOL)outlineView: (NSOutlineView *)olv writeItems: (NSArray *)items
toPasteBoard: (NSPasteboard *)pboard

That should be toPasteboard:, not toPasteBoard:

It that's not the issue, then there are a couple of other possibilities:

By default you have to begin a drag by dragging horizontally; a vertical drag will cause multiple selection. The setVerticalMotionCanBeginDrag: changes this behaviour.

You can only drag from the column that's marked with setOutlineTableColumn: which is the first column by default.

Pete Yandell
http://pete.yandell.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Dragging Methods for NSOutlineView (From: Craig Bakalian <email@hidden>)

  • Prev by Date: Unicode - Converting memory to match NSCell -stringvalue?
  • Next by Date: Re: Getting Application Path
  • Previous by thread: Dragging Methods for NSOutlineView
  • Next by thread: Drag and Drop and aliases
  • Index(es):
    • Date
    • Thread