FROM : Davide Scheriani
DATE : Fri May 23 22:36:38 2008
helo guys.
I wanted to use the PasteBoard to use for may drag'n drop table view,
and I wish to save a mutable array i the pastboard.
I wrote this but I get "null" back:
================= CODE =================
[pboard declareTypes:[NSArray arrayWithObject:NSGeneralPboard]
owner:self];
NSMutableArray *rowCopies = [NSMutableArray arrayWithCapacity:
[rowIndexes count]];
unsigned int currentIndex = [rowIndexes firstIndex];
while (currentIndex != NSNotFound){
[rowCopies addObject:[[self arrangedObjects]
objectAtIndex:currentIndex]];
currentIndex = [rowIndexes indexGreaterThanIndex: currentIndex];
}
[pboard setPropertyList:rowCopies forType:NSGeneralPboard];
NSMutableArray *fly = [pboard propertyListForType:NSGeneralPboard];
NSLog(@"%@",fly);
================= CODE =================
any idea where I made a mistake?
and how can I make my "kind" of datas?
ive read a few tutorials without understand how exactly.
thanks,bye
DATE : Fri May 23 22:36:38 2008
helo guys.
I wanted to use the PasteBoard to use for may drag'n drop table view,
and I wish to save a mutable array i the pastboard.
I wrote this but I get "null" back:
================= CODE =================
[pboard declareTypes:[NSArray arrayWithObject:NSGeneralPboard]
owner:self];
NSMutableArray *rowCopies = [NSMutableArray arrayWithCapacity:
[rowIndexes count]];
unsigned int currentIndex = [rowIndexes firstIndex];
while (currentIndex != NSNotFound){
[rowCopies addObject:[[self arrangedObjects]
objectAtIndex:currentIndex]];
currentIndex = [rowIndexes indexGreaterThanIndex: currentIndex];
}
[pboard setPropertyList:rowCopies forType:NSGeneralPboard];
NSMutableArray *fly = [pboard propertyListForType:NSGeneralPboard];
NSLog(@"%@",fly);
================= CODE =================
any idea where I made a mistake?
and how can I make my "kind" of datas?
ive read a few tutorials without understand how exactly.
thanks,bye
| Related mails | Author | Date |
|---|---|---|
| Davide Scheriani | May 23, 22:36 | |
| Shawn Erickson | May 23, 22:50 | |
| Graham Cox | May 24, 06:14 |






Cocoa mail archive

