Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

tr!pf!3

macrumors newbie
Original poster
May 18, 2012
14
0
Hello,

I've been working on a small application. I recently have had some troubles trying to get WebView to work with my application. I initialize it in my class, I attach reference outlet to it, however I'm still having troubles getting it to display anything. When I run the application, my programs show me that my application is communicating with the websites, however, I can't see anything on the display inside the application. It only appears as a blank white screen.

I've also tried things like,

Code:
NSSize MainWindowSize = [ [ MAIN contentView ] frame ].size;
    NSRect FRAME = NSMakeRect(0.0, 0.0, MainWindowSize.width, MainWindowSize.height);
    
    WEBSITE = [[WebView alloc] initWithFrame:FRAME];

to no avail.

Any ideas why I might be experiencing this issue?

** I should also add **

I was further experimenting with this issue, and I simply added an NSTextField and linked it with the webview. No code was added, except that the code for webview was left in. The function that was linked to NSTextField was "takeStringURLFrom:" Much to my surprise, pressing the enter button with a proper url address displayed a website for me. Strange I must say. Somewhere theres an issue with [WEBSITE mainFrame] and the function "loadRequest:". Possibly something I might have left out.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.