WebView problem.
WebView problem.
- Subject: WebView problem.
- From: "Eugen Belyakov" <email@hidden>
- Date: Sat, 23 Jun 2007 10:39:33 +0300
I got NSView using jawt from java application and want to add WebView to it,
to play flash content.
I tried to do this with the next code:
NSView* view = getJavaView(env, obj);
WebView* w_view = [[WebView alloc] initWithFrame:rect];
[view addSubview:w_view];
NSString* path = @"/L2a.swf";
NSData *flash = [NSData dataWithContentsOfFile:path];
[[w_view frame] loadData:flash
MIMEType:@"application/x-shockwave-flash"
textEncodingName:@"utf-8"
baseURL:nil];
but everything I get, is blank white rectangle in the java window.
In native cocoa application everything works just fine.
What is the problem can it be?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden