Re: NSTextFields and undo
Re: NSTextFields and undo
- Subject: Re: NSTextFields and undo
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 28 Jan 2002 05:36:05 -0500
on 02-01-27 9:21 PM, Steve Gehrman at email@hidden wrote:
>
I'm kind of confused. Shouldn't it be easy to add undo to
>
NSTextFields? It seems to be off by default, which is strange. Isn't
>
this kind of basic?
It isn't easy. If you just "turn it on," it doesn't work right. Text undo
support is designed for a text view, not a text field.
I've written a section for Recipe 6 of Vermont Recipes that shows you how to
do it, but it's a little bit hackish. It should be up on the site sometime
during February.
Apple does have a bug report on this: "text fields don't support undo," or
something like that. I have no idea when or whether they'll actually fill
this hole, but I have corresponded with one of Apple's engineers about it.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont