Skip to content
Newer
Older
100644 21 lines (16 sloc) 563 Bytes
5fb4dd9 @lethain Added MWDragARrayController.py
authored
1 #
2 # MWDragArrayController.py
3 # MetaWindow
4 #
5 # Created by Will Larson on 8/26/08.
6 # Copyright (c) 2008 Will Larson. All rights reserved.
7 #
8
9 from AppKit import NSStringPboardType
10 from Foundation import *
11
12
13 class MWDragArrayController(NSArrayController):
14 def tableView_writeRows_toPasteboard_(self,tv,rows,pb):
15 arranged = self.arrangedObjects()
16 data = ",".join([ arranged[x]['name'] for x in rows ])
17 pb.declareTypes_owner_([NSStringPboardType],self)
18 pb.setString_forType_(data,NSStringPboardType)
19 return True
20
Something went wrong with that request. Please try again.