Re: NSTextView, style, and weird Core Data issue
Re: NSTextView, style, and weird Core Data issue
- Subject: Re: NSTextView, style, and weird Core Data issue
- From: Martin Wierschin <email@hidden>
- Date: Thu, 27 Jul 2006 00:27:43 -0700
The docs say: "Typing attributes are reset automatically whenever the
selection changes." Well, the selection *is* changing. But the typing
attributes are not being reset (at least, I would not describe this
behaviour using the word "reset" - I would describe it as
"remaining the
same as before").
It says "reset", but probably "recalculated" is a more appropriate
word. Also, I do not think the preservation of the typing attributes
when you clear the NSTextView's content is a bug. Consider the
following case:
1. User enters some text.
2. Selects all and applies bold.
3. Changes their mind and deletes all the text.
4. Starts typing.
In step 4 they most likely prefer that the new text be bold. This is
normally convenient, but you'll have to work around it, as a zero
length NSAttributedString has no attributes to apply to the NSTextView.
~Martin
_______________________________________________
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