on 02-03-26 5:19 PM, Robert McNally at <ironwolf...> wrote:
> I'm curious why NSWindow's fieldEditor:forObject: method returns an NSText*,
> when it always actually returns a NSTextView*. Is it unsafe to downcast the
> returned NSText* to an NSTextView* so I can access its methods?
I've been casting it to NSTextView* without untoward consequences. I have
the vague impression that this oddity is a survivor from ancient times.
--
Bill Cheeseman - <wjcheeseman...>
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