Pasteboard question
Pasteboard question
- Subject: Pasteboard question
- From: Davide Scheriani <email@hidden>
- Date: Fri, 23 May 2008 22:36:38 +0200
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden