applescript/objective-c OSX 응용 프로그램의 WebView에서 shouldStartLoadWithRequest 메시지를 받으려고합니다.delegate 연결로 Cocoa-Applescript에서 shouldStartLoadWithRequest를 수신 하시겠습니까?
AppleScript로 내가 가진 메시지를 받고 싶습니다 : 나는 내가 IntefaceBuilder에서 잘못된 위임 연결을 믿게하고
on webView_shouldStartLoadWithRequest_(request, navigation_type)
log "should start!"
return yes
end webView_shouldStartLoadWithRequest_
,하지만 난 아무 여전히 그럴듯하고 보이는 모든 것을 시도했다 운.
downloadDelegate --> MyApp App Delegate
frameLoadDelegate --> MyApp App Delegate
resourceLoadDelegate --> MyApp App Delegate
UIDelegate --> MyApp App Delegate
지금까지 행운이 없습니다. 그러나 올바르게 작동하는 다른 메시지가 있습니다 (예 : webView_didStartProvisionalLoadForFrame_
).
이 이벤트를 받으려면 무엇을 연결하거나 추가해야합니까? 나는 이런 타입의 프로그래밍에 대해 아주 새로운 것입니다.
감사합니다.