Is the behavior of NSTextView's insertNewline documented anywhere?
Is the behavior of NSTextView's insertNewline documented anywhere?
- Subject: Is the behavior of NSTextView's insertNewline documented anywhere?
- From: Peter Seibel <email@hidden>
- Date: Tue, 9 Jan 2007 15:13:02 -0800
It's doing somme stuff behind my back that I don't want it to do, but
I'm worried that my replacement, in my NSTextView subclass, is going
to leave out some other stuff it does that I *do* want.
-Peter
P.S. The thing I've discovered that it does, BTW, that I don't want
it doing is manipulating the textLists of the current
NSParagraphStyle for me and trying to delete the list marker when .
The last bit really baffles me--as far as I can tell even when I add
NSTextLists to the textLists of a paragraph style, I'm still
responsible for inserting any list markers I want into the actual
text. So why on earth does NSTextView take it upon itself to try to
delete anything? It appears that if you type two newlines at the end
of a list it tries to un-nest one list level, stripping the
NSTextList from the paragraph style and deleting back to the
beginning of the line. If anyone can explain that I'd be grateful.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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