Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Loading a Webkit bundle



Hi,

I've adapted the MiniBrowser WebKit example application so as to contain its history mechanism in a popup in the document window and created a second bundle target. The theory being that in order to get around the crashing problems when using a WebView in a Studio application, I could just invoke the self contained window by loading a webkit based bundle. The webkit bundle is added to the resources folder of a studio project. However, I'm having trouble getting it to display it's window. Specifically, an 'on clicked' button handler does:

set bpath to (resource path of main bundle) & "/BasicWebWindow.bundle"
set wbundle to call method "bundleWithPath:" of class "NSBundle" with parameter bpath
-- OK, get a valid reference
tell wbundle
set bbnib to resource path & "/English.lproj/BasicBrowser"
log bbnib -- OK, looks like a valid path
set res to (load nib bbnib)
log res -- no joy, it logs "false"
end tell

Any ideas on what I can do to make this happen?

Thanks,

Philip Aker
http://www.aker.ca
_______________________________________________
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.

References: 
 >Webkit and applescript handlers (From: Romain Brestac <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.