Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Monitoring NSTextView Attributes (From: Scott Thompson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.