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

Dragging Methods for NSOutlineView


  • Subject: Dragging Methods for NSOutlineView
  • From: Craig Bakalian <email@hidden>
  • Date: Thu, 29 May 2003 11:29:24 -0400

Hi,
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
{
NSLog(@"hello");
questions = items;
[pboard declareTypes: [NSArray arrayWithObjects: MyDragType,
NSStringPboardType, nil] owner: self];
[pboard setData: [NSData data] forType: MyDragType];
[pboard setString: [questions description] forType:
NSStringPboardType];
return YES;
}

and this also:

-(void)awakeFromNib
{
[[self window] setFrameUsingName: @"Outline View"];
[[self window] setFrameAutosaveName: @"Outline View"];
[outlineView registerForDraggedTypes: [NSArray arrayWithObjects:
MyDragType, NSStringPboardType, nil]];
}

I never get a "hello".

Craig Bakalian
www.eThinkingCap.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.

  • Follow-Ups:
    • Re: Dragging Methods for NSOutlineView
      • From: Pete Yandell <email@hidden>
  • Prev by Date: Re: Switch efficiency for large case-sets
  • Next by Date: Drag and Drop and aliases
  • Previous by thread: Re: Sending AppleEvent from Carbon To Cocoa App
  • Next by thread: Re: Dragging Methods for NSOutlineView
  • Index(es):
    • Date
    • Thread