Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > Handle click of...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 1592 of 1610
Post > Topic >>

Handle click of NSButton in NSTabView on NSWindow

by Florian <fidel@[EMAIL PROTECTED] > Apr 2, 2008 at 08:57 AM

Hello,

i have:

* window called "myWindow" (NSWindow)
on that window:
* tabview called "myTabView" (NsTabview)
with 2 tabs (tab1 and tab2)
each tab has for testing issues:
* a button (NSbutton) which is called (1 for tab1 and 2 for tab2)

In my applescript Code i have a:
>> on clicked theObject
>> end clicked
section

While i can handle buttons directly placed on that window using this
code structure:
>> if name of the theObject is "WHATEVERHERE" then
>> end if

But how do i access the buttons on those tabs (part of my NSTabView) ?

my idea was:
>> if name of the theObject is "1" then
>> end if

which was wrong and ended with this error:
>> No result was returned from some part of this expression. (-2763)

any idea how to handle this subcategories of Window -> TabView -> Tab -
> Button
I guess it has to end with something like:
>> if name of the object of window "myWindow" of tab group "myTab" of tab
view "tab1" is "1" then
>> end if

but ended with no working result.

any idea is appreciated.
Best regards
florian




 2 Posts in Topic:
Handle click of NSButton in NSTabView on NSWindow
Florian <fidel@[EMAIL   2008-04-02 08:57:31 
Re: Handle click of NSButton in NSTabView on NSWindow
Florian <fidel@[EMAIL   2008-04-02 10:01:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon May 12 5:17:42 CDT 2008.