• 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: ATSUI in NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ATSUI in NSView


  • Subject: Re: ATSUI in NSView
  • From: Ryan Stevens <email@hidden>
  • Date: Fri, 29 Aug 2003 22:24:26 -0700

On Friday, August 29, 2003, at 04:16 PM, Tae-Won Ha wrote:

Hi.

First of all I'm very new to ATSUI... I'm playing with ATSUI in NSView's drawRect method. The view is not flipped and I draw a word at (10,10). I now want to highlight this word. So I call ATSUHighlightText(myLayout, Long2Fix(10), Lont2Fix(10), fromBeginning, toEnd). Well, this does not work. Instead of the word the portion of my whole display at (10,10) is highlighted, i.e. a rect at left-bottom side of my whole screen. What's wrong?

Thanks in advance!


I've never toyed w/ ATSUI but it sounds like it wants screen coordinates.

Check the "Converting coordinates" section of the NSView doc...?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: NSDraggingInfo - > DragRef?
  • Next by Date: Re: URL and Applescript
  • Previous by thread: ATSUI in NSView
  • Next by thread: URL and Applescript
  • Index(es):
    • Date
    • Thread