• 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
From pasterboard to file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From pasterboard to file


  • Subject: From pasterboard to file
  • From: Lorenzo <email@hidden>
  • Date: Sat, 09 Apr 2005 20:33:13 +0200

Hi,
when I drag an object to the Finder I declare and fill the NSTIFFPboardType
in the pasterboard so at the end of the drag I get a file in the Finder
properly, with an arbitrary fileName "Picture clipping". Well
But if I declare and fill my own type MyPboardType with some data

    myTypes = [NSArray arrayWithObjects:MyPboardType, nil];
    [pboard declareTypes:myTypes owner:self];
    [pboard setData:someData forType:MyPboardType];

I cannot get any file in the Finder.
How to do that, and how to name the resulting file?
Thanks.


Best Regards
--
Lorenzo
email: email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Creating Menu Bar Extras?
  • Next by Date: Re: Creating Menu Bar Extras?
  • Previous by thread: Re: resources (. rsrc )in xcode / cocoa
  • Next by thread: Trouble opening a nib
  • Index(es):
    • Date
    • Thread