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

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


  • Follow-Ups:
    • Re: Pasteboard question
      • From: Graham Cox <email@hidden>
    • Re: Pasteboard question
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: Re: NSTableView
  • Next by Date: Re: How to change Tool modes programmatically for a Image View?
  • Previous by thread: Re: How to change Tool modes programmatically for a Image View?
  • Next by thread: Re: Pasteboard question
  • Index(es):
    • Date
    • Thread