On 29 Jul 2009, at 21:24, I. Savant wrote:
On Jul 29, 2009, at 4:16 PM, Alexander Bokovikov wrote:
The question is, how could I assign icons location for dropped
items? I believe, though didn't yet tested it, that similar problem
will be with Finder window, when it is in icons mode. The only
point where I could get such information (as I believe) could be
tableView::namesOfPromisedFilesDroppedAtDestination: method, but it
doesn't contain any information about icons location.
I don't believe there is a (public API) way to set (or get) the
location of an icon.
The supported way is to use AppleScript (or to send equivalent Apple
Events using some other method, e.g. the scripting bridge or AESend()
et al.); Finder items have a position property that you can get/set.
You used to be able to control this via the Finder information (using
FSSetCatalogInfo()), but the Finder on OS X prefers its .DS_Store
files. It is *claimed* that the OS X Finder will look at the Finder
information if it doesn't know where something should go yet, but I
never managed to get that to work in practice.
Kind regards,
Alastair.
--
http://alastairs-place.net
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com