• 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 examples?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dragging examples?


  • Subject: Dragging examples?
  • From: "Mark's Studio" <email@hidden>
  • Date: Tue, 16 Oct 2001 10:18:44 +0200

I want to be able to also make a file with the contents of the
makeDragString when i drag to the finder,
how do i do that, i could not find much information on dragging so an
example would be good.


- (BOOL)tableView:(NSTableView *)tv writeRows:(NSArray*)rows
toPasteboard:(NSPasteboard*)pboard
{

[pboard declareTypes:[NSArray
arrayWithObjects:NSFilenamesPboardType,NSStringPboardType, nil]
owner:self];

[pboard setData:[NSData data] forType:NSStringPboardType];

[pboard setPropertyList:[self makeDragString]
forType:NSStringPboardType];

return YES;
}
Thanks

Peter Mark

Mark's Recording Studio A/S
Faelledvej 19 b DK2200 N
Copenhagen Denmark
Tel: +45 35366078 Fax: +45 35366038
www.marks-studio.dk
email@hidden


  • Prev by Date: Tizzy over notifications
  • Next by Date: Unable to quit - alloc problem?
  • Previous by thread: Tizzy over notifications
  • Next by thread: Re: Dragging examples?
  • Index(es):
    • Date
    • Thread