Re: Monitoring NSTextView Attributes
Re: Monitoring NSTextView Attributes
- Subject: Re: Monitoring NSTextView Attributes
- From: Satoshi Matsumoto <email@hidden>
- Date: Wed, 12 Apr 2006 07:41:45 +0900
- Thread-topic: Monitoring NSTextView Attributes
It may be meaningless to show the text attribute when Japanese inline
conversion is being executed. Because many temporary attributes such as
underline or reversing are used for showing conversion modes.
You can know whether Japanese input conversion is going on or not with using
following methods of NSTextInput protocol.
hasMarkedText
Returns YES if the receiver has marked text, NO if it doesn’t.
- (BOOL)hasMarkedText
markedRange
Returns the range of the marked text.
- (NSRange)markedRange
Satoshi
-----------------------------------------------------
Satoshi Matsumoto <email@hidden>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden