FROM : The Karl Adam
DATE : Mon Apr 11 03:59:21 2005
Actually, the Finder will create whatever file you want, as long as
you give it the right instructions in the right order. In this case
the drag your a trying to perform is an HFS Promise Drag in which you
drag nonexistant data to the finder and to have it create a file there
as promised. You can search the archives for HFS Promise Drag and
plenty of relevant info should come up.
-Karl
On Apr 10, 2005 6:49 PM, Serge Meynard <<email_removed>> wrote:
> On Apr 10, 2005, at 14:46, Lorenzo wrote:
> > I would like to drag an object from my app to the Finder and create my
> > own
> > file with my own fileName.
> > I can quite succeed when I declared the type NSTIFFPboardType in the
> > pasterboard, but when I declare my own type it doesn't work. I cannot
> > get
> > any file in the Finder. How to do that?
> >
> > myTypes = [NSArray arrayWithObjects:MyPboardType, nil];
> > [pboard declareTypes:myTypes owner:self];
> > [pboard setData:someData forType:MyPboardType];
> >
> >
> > Best Regards
> > --
> > Lorenzo
> > email: <email_removed>
>
> I'm no expert on Finder behavior, but I'm guessing that the Finder
> isn't set up to arbitrarily create files from unknown pasteboard
> content types. If you create a TIFF pasteboard, that's something the
> Finder recognizes and it happily complies.
>
> Serge
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/karl.<email_removed>
>
> This email sent to karl.<email_removed>
>
DATE : Mon Apr 11 03:59:21 2005
Actually, the Finder will create whatever file you want, as long as
you give it the right instructions in the right order. In this case
the drag your a trying to perform is an HFS Promise Drag in which you
drag nonexistant data to the finder and to have it create a file there
as promised. You can search the archives for HFS Promise Drag and
plenty of relevant info should come up.
-Karl
On Apr 10, 2005 6:49 PM, Serge Meynard <<email_removed>> wrote:
> On Apr 10, 2005, at 14:46, Lorenzo wrote:
> > I would like to drag an object from my app to the Finder and create my
> > own
> > file with my own fileName.
> > I can quite succeed when I declared the type NSTIFFPboardType in the
> > pasterboard, but when I declare my own type it doesn't work. I cannot
> > get
> > any file in the Finder. How to do that?
> >
> > myTypes = [NSArray arrayWithObjects:MyPboardType, nil];
> > [pboard declareTypes:myTypes owner:self];
> > [pboard setData:someData forType:MyPboardType];
> >
> >
> > Best Regards
> > --
> > Lorenzo
> > email: <email_removed>
>
> I'm no expert on Finder behavior, but I'm guessing that the Finder
> isn't set up to arbitrarily create files from unknown pasteboard
> content types. If you create a TIFF pasteboard, that's something the
> Finder recognizes and it happily complies.
>
> Serge
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/karl.<email_removed>
>
> This email sent to karl.<email_removed>
>
| Related mails | Author | Date |
|---|---|---|
| Lorenzo | Apr 10, 20:46 | |
| Serge Meynard | Apr 11, 00:49 | |
| The Karl Adam | Apr 11, 03:59 | |
| Lorenzo | Apr 11, 14:29 | |
| Tim Hewett | Apr 11, 17:24 | |
| Lorenzo | Apr 11, 18:43 | |
| The Karl Adam | Apr 11, 19:24 | |
| Serge Meynard | Apr 11, 19:27 |






Cocoa mail archive

