Re: NSTextView's MarkedText
Re: NSTextView's MarkedText
- Subject: Re: NSTextView's MarkedText
- From: Gordon Apple <email@hidden>
- Date: Wed, 24 Jul 2013 14:47:18 -0500
- Thread-topic: NSTextView's MarkedText
I have now added my own custom attribute, similar to markedText, and it
seems to work as intended. However, I have run into a new problem. I need
to know when selection if finished, but for some reason, my subclass of
NSTextView can not intercept mouseUp. The plan was at that point to change
my custom background attribute, deselect the text (actually, set insert
point to end of selection), and clear my custom highlighting. Why can¹t I
get a mouseUp?
- (void) mouseUp:(NSEvent*)theEvent {
If(someCondition)
doSomething;
[super mouseUp:theEvent];
}
On 7/24/13 12:22 PM, "Fritz Anderson" <email@hidden> wrote:
> On 24 Jul 2013, at 11:46 AM, Uli Kusterer <email@hidden>
> wrote:
>
>>>> >>> Marked text in Cocoa is mainly used by input methods. Primarily with
>>>> languages
>>>> >>> that have more glyphs than you would have on a keyboard and input is
>>>> done in a
>>>> >>> form that is analyzed and is provided a set of conversion options. a
>>>> range of
>>>> >>> input text that is not yet committed is highlighted and commonly sub
>>>> ranges
>>>> >>> can be selected and converted. When conversions are selected and
>>>> finalized
>>>> >>> text is unmarked and ready for committing.
>> >
>> >
>> > Is this the yellow background that one gets for accents? E.g. on a US
>> keyboard, when I type Option-`, I get the tick mark with a yellow background,
>> indicating I can now type an 'a' for instance to get 'à' ? Is that a good
>> example, or is that different again? (Just hoping I can provide an example
>> for US and other people and learn something on the way)
>
> That's the intended use, yes.
>
> F
>
_______________________________________________
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