Re: Bug/limitation in referencing controls in AS Studio
Re: Bug/limitation in referencing controls in AS Studio
- Subject: Re: Bug/limitation in referencing controls in AS Studio
- From: Kristofer Szymanski <email@hidden>
- Date: Sat, 3 May 2003 13:45:48 +0200
Hello,
I created two projects "Problem" and "Workaround" and two RTF docs to
better illustrate
this, but I still need help with the possible Workaround.
http://homepage.mac.com/szymanski/helpMe.dmg.hqx
This should not be any big problem for some of you to fix this, but a
great help for me.
Please help !
Regards,
Kristofer Szymanski
On Friday, May 2, 2003, at 22:50 Europe/Stockholm, John Timmer wrote:
I've been working with Kristofer on some of the Cocoa aspects of the
app
he's been putting together, and we seem to have run into a roadblock.
His
most recent post was asking about a workaround, but there appears to
be a
more fundamental problem that is forcing him to look for workarounds.
In AS Studio, you have to refer to controls through the complete
hierarchy:
the control of <insert View hierarchy > of Window name
The problem he's run into is that he's dynamically reassigning the view
hierarchy of a window in Cocoa, and this is causing AppleScript to
lose the
ability to reference the controls. So, if the app starts with a window
containing view1 which contains control1, we can reference the control
in
AppleScript. We then replace the window's view with another one (say,
view2), and find that we can't reference anything in view2. If we swap
view1 back into the window, you can no longer reference control1
properly.
We've also tried giving each view an AppleScript identifier, but can't
reference them that way, either.
So, what gives? Is there a way to get this to work? Have we missed
something obvious?
Cheers,
John
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.
_______________________________________________
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.