• 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: Hello, List!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hello, List!


  • Subject: Re: Hello, List!
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 27 Nov 2007 12:14:04 -0500
  • Organization: Rogue Research

On 11/27/07 10:07 AM, ghe said:

>Is there a way to programmatically position the mouse cursor from a
>Cocoa class, or do I need to reach down to Quartz for this? And if I
>do, is there an easy way to translate between coordinate systems?

Pretty sure there is nothing in Cocoa.

>Is it better to launch things in the /Applications folder with an
>Applescript or to use the NSTask class (or is there a better way)?

Best way is to launch it using NSWorkspace's

launchAppWithBundleIdentifier:options
:additionalEventParamDescriptor:launchIdentifier:

That way you don't need to know where it is on disk, just it's bundle
identifier, which should never change.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Hello, List! (From: ghe <email@hidden>)

  • Prev by Date: Re: Problem building for 10.2.8 under Leopard
  • Next by Date: Re: strange compiler warnings - can't get rid of them?
  • Previous by thread: Hello, List!
  • Next by thread: Re: Hello, List!
  • Index(es):
    • Date
    • Thread