I thought to have the same problem some time ago.
But looking i little bit closer I found that it was my "bug", since I
added some actions to interface items I did not later. An example: I
got a button and a check button, where I decided to apply "on
clicked", I worked on the button action and for got about the check
button - I found out that the button was needless and did the same
thing you described (though forgot the check button, I never worked
on). The result was the same you got: the "on clicked theObject"
always appeared "automagically".
So try to check your IB items and the actions or scripts applied and
it should work.
It would be a real nice enhancement of IB to some kind of database
included which shows all items and the things applied to them as vice
versa, so for example clicking on a Action -> Clicked entry will list
all objects which are connected to this action.
Regards
Andreas
On 14.06.2006, at 04:05, John Goodchild wrote:
Hi all,
I have been dealing with an annoying Interface Builder bug for a
number of years now across many versions of AppleScript Studio/
Xcode and many different computer systems and I would finally like
to know if there is a work around - or perhaps something I am missing.
Here is the bug:
When I play with interface elements, for example, adding a pop up
menu to the window, I link it to my script by choosing an event
handler. The new handler is placed in my Xcode script ready to use.
Groovy. Now, here's the problem. If I decide later to alter my
interface and take out the pop up button, I first unlink the event
handler, delete the pop up, remove the handler from my code and
save everything. The next time I make a change to the interface and
save, the empty event handler reappears in my code. This is not
limited to my example. It seems to happen for any kind of handler
that is generated automatically by Interface Builder. So far I have
been unable to find any method of clearing out these associations -
other than recreating the entire nib file from scratch.
Is this a known issue? I have not seen anything about it before.
Any words of wisdom would be appreciated.
Best,
John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-studio/
email@hidden