• 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: How to get cursor text from a Mac window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get cursor text from a Mac window


  • Subject: Re: How to get cursor text from a Mac window
  • From: Uli Kusterer <email@hidden>
  • Date: Sat, 19 Jul 2008 15:30:05 +0200

On 19.07.2008, at 14:00, Gang Chen wrote:
I am new to Cocoa and Mac dev, and I want to make a simple dictionary program with Cocoa on MacOSX. Can anybody help and tell me how to get any words on screen where cursor points in Cocoa?


Jean-Daniel Dupas replied:
Could you not simply use the built-in dictionary application ?

That said, to put anything on screen on OS X, you need a window and a view. However, both of these can be almost or completely transparent/ borderless to give the illusion of the text being next to the cursor. You can also create a menu bar-less application (See NSUIElement and LSBGOnly) to present these windows.


Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

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: 
 >How to get cursor text from a Mac window (From: Gang Chen <email@hidden>)

  • Prev by Date: Re: substitute class at runtime?
  • Next by Date: Re: Dot Syntax docs missing?
  • Previous by thread: Re: How to get cursor text from a Mac window
  • Next by thread: Re: How to get cursor text from a Mac window
  • Index(es):
    • Date
    • Thread