Re: ATSUI in NSView
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.