Le 16 nov. 11 à 17:02, Christian Schmitz a écrit:

> Am 16.11.2011 um 17:00 schrieb Arnaud Nicolet:
>
>> (example taken from your documentation)
>> but I'm getting the error -1 after the first call
>> (g.Thumbnail32BitData=p). Again, this error -1 is said to mean the
>> function is unavailable on the machine. Is IconFamilyMBS also not
>> available on Cocoa? If yes, how do I replace that?
>
> Well, another item to be updated. I'll put it on the list.

Thanks.

> Are you trying to set an icon to a file?
> NSWorkSpaceMBS.SetIcon can do that.

Thanks, I'll try.
In fact, I want to draw the trash icon, possibly selected or offline  
(so I need the IconMBS for the effect). But since no folder has this  
icon (specialfolder.trashfolder has just a regular folder icon), my  
goal is to open as picture this file:
CoreServicesFolderMBS 
(-32767 
).Child 
("Dock 
.app").Child("Contents").Child("Resources").Child("trashempty.png")
which is the trash icon, create a temporary file, and set its icon to  
the picture loaded previously. Only then I can draw the trash with  
effects. Of course, I'd be happy if you prove me to be wrong.
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to