MouseDown event in a SC control

External developers... This forum's for you!

MouseDown event in a SC control

Postby sctell » Sat Aug 27, 2011 12:05 am

I have an external in development and I currently have the SC window registered to receive mouseDown events.

How do I identify that the mouseDown is in a control (button) as in this case I want to ignore the event.

All the best

Posts: 1130
Joined: Sun Jul 06, 2008 10:41 am

Re: MouseDown event in a SC control

Postby Dan_Kelleher » Sat Aug 27, 2011 9:57 am

Hi Terry,
You known I'm no externals-maker but these ideas come to mind.

The SC target variable will hold the (supertalk) object reference you ask for.

To ignore an event (in supertalk) one just handles it and does nothing;
on mouseDown
end mouseDown

Could you utilize the supertalk mouseDown handler in the control to call the external, sending it the object reference ?
Or does one need to think of these calls as separate threads ?
Or is the real issue for you that, while it appears that you know how to reference the SC window using objective-C (?), how to reference any SC object within the window using objective-C (?) is unclear ?

UTH (unlikely to help),
SC4.7.3 OSX 10.7.2 Mac Pro
User avatar
Posts: 438
Joined: Sun Jul 06, 2008 2:45 pm
Location: Worcester (wouster as in would) Massachusetts USA

Return to Xcode and the Internals Toolbox

Who is online

Users browsing this forum: No registered users and 1 guest