Re: Opening text objects to AppleScript
Re: Opening text objects to AppleScript
- Subject: Re: Opening text objects to AppleScript
- From: "M. Uli Kusterer" <email@hidden>
- Date: Wed, 10 Sep 2003 22:33:49 +0200
At 13:17 Uhr -0600 10.09.2003, John Nairn wrote:
3. I would like to "tell" the document to work with both of the text
fields in the associated controllers window.
If I understand what you're doing correctly, you're trying to
AppleScript the View instead of the controller. Which is something
you're not supposed to do in AppleScript. There is a "GUI scripting"
extension to AppleScript these days, but it's intended for scripting
applications that aren't scriptable.
Try rethinking your design. The controller should have accessor
methods which are used by the text fields. Make those scriptable, not
the view.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.