• 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
Finder window - coordinates and screen?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finder window - coordinates and screen?


  • Subject: Finder window - coordinates and screen?
  • From: b UND d <email@hidden>
  • Date: Sun, 24 Jun 2007 08:16:38 +0200

Dear all,

I need to find out the coordinates of the first Finder window for further processing in my app.

Two questions ...

- is there a better/other way than using an NSAppleScript like this?

NSAppleScript *fmostWindow = [[NSAppleScript alloc] initWithSource:@"tell application \"Finder\" to get bounds of window 1"];


- if not: how do I convert the resulting AppleScript coordinates in cocoa coordinates and an info on which screen the Finder window origin is?




probably it's simple but I am too stupid to see it ;-) ...
Many thanks in advance,


Dominik



_______________________________________________

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


  • Follow-Ups:
    • Re: Finder window - coordinates and screen?
      • From: "Finlay Dobbie" <email@hidden>
  • Prev by Date: int to NSString?
  • Next by Date: AppleScript not sending my Cocoa app proper floats on Intel
  • Previous by thread: Re: int to NSString?
  • Next by thread: Re: Finder window - coordinates and screen?
  • Index(es):
    • Date
    • Thread