Re: Help with pasteboard
Re: Help with pasteboard
- Subject: Re: Help with pasteboard
- From: "Mark's Studio" <email@hidden>
- Date: Thu, 18 Oct 2001 21:32:21 +0200
On torsdag, oktober 18, 2001, at 09:03 , Brian Webster wrote:
>
OK, it appears that the Finder "prefers" to take the string rather than
>
the file if both are offered. It appears to really be an issue with
>
the Finder, not with your code specifically. When you drop your data
>
onto the Finder, does it correctly create a text clipping file? Have
>
you tried only offering the file contents type? Does it create a plain
>
text file then?
If i only put a string on the pboard and drag it to the finder it will
create a clipping file.
if i only put the filewrapper on the pboard nothing happens when i drag
to the finder?
if i don't put anything on the pasteboard and drag to the finder it does
not request the filecontents?
>
If you want to set an HFS type code, use setFileAttributes and pass in
>
a dictionary with a key/value pair of NSFileHFSTypeCode for the key and
>
the value an NSNumber containing a long with the 32-bit type code. You
>
could do the same for a creator code, but this sounds like a situation
>
where it would be preferable not to do so. You may also want to set
>
the NSFileExtensionHidden attribute, too.
>
>
--
>
Brian Webster
>
email@hidden
>
http://homepage.mac.com/bwebster
>
>
>
Peter Mark
Mark's Recording Studio A/S
Faelledvej 19 b DK2200 N
Copenhagen Denmark
Tel: +45 35366078 Fax: +45 35366038
www.marks-studio.dk
email@hidden