Thanks for the pointer; I wouldn't have known to look for "typing attributes." 
Unfortunately, while NSTextView has a - setTypingAttributes: method, the 
documentation for NSTextField, NSTextFieldCell, and NSText doesn't even mention 
"typing attributes," so I'm still stuck.

On Feb 8, 2010, at 12:11 PM, Andreas Mayer wrote:

> Am 08.02.2010 um 17:22 Uhr schrieb Alexander Heinz:
> 
>> My question is this: let's say my user has already typed some text in black 
>> (or whatever color) and now wants to change the "active color" of the text 
>> at the insertion point, such that any text he or she types appears in the 
>> new color.
> 
> I think you will have to change the typing attributes fo the corresponding 
> field editor.
> 
> See:
> 
> http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/TextArchitecture/Concepts/TextFieldsAndViews.html
> 
> http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/TextUILayer/Tasks/SetTextAttributes.html
> 
> 
> Andreas

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to