• 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
Re: Drag&Drop to desktop - file icons layout problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drag&Drop to desktop - file icons layout problem


  • Subject: Re: Drag&Drop to desktop - file icons layout problem
  • From: Alastair Houghton <email@hidden>
  • Date: Wed, 29 Jul 2009 22:51:13 +0100

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 (email@hidden)

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:
This email sent to email@hidden


References: 
 >Drag&Drop to desktop - file icons layout problem (From: Alexander Bokovikov <email@hidden>)
 >Re: Drag&Drop to desktop - file icons layout problem (From: "I. Savant" <email@hidden>)

  • Prev by Date: How to drag file promises from IKImageBrowserView?
  • Next by Date: Re: UITextView not updating
  • Previous by thread: Re: Drag&Drop to desktop - file icons layout problem
  • Next by thread: Little "mind explanation" for changing views in iPhone
  • Index(es):
    • Date
    • Thread