Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7029025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:29:01+00:00 2026-05-28T00:29:01+00:00

It Keeps throwing error: Receiver type webFrame for instance message is a forward declaration

  • 0

It Keeps throwing error: Receiver type webFrame for instance message is a forward declaration on the line “[[webView mainFrame ] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlStr]]];”

my .h file

@interface AttendanceWizardAppDelegate : NSObject <NSApplicationDelegate> 
{
@private WebView *webView;

} 
@property (weak) IBOutlet WebView *webView;
@property (assign) IBOutlet NSWindow *window;

@end

My .m file

#import "AttendanceWizardAppDelegate.h"

@implementation AttendanceWizardAppDelegate


@synthesize Username = _Username;
@synthesize Password = _Password;
@synthesize webView = _webView;
@synthesize webber = _webber;
@synthesize window = _window;

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
NSString *urlStr = @"www.google.com";
[[webView mainFrame ] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlStr]]];
}

@end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:29:02+00:00Added an answer on May 28, 2026 at 12:29 am

    You simply need to add the import of WebKit headers in your header file:

    #import <WebKit/WebKit.h>
    

    Your code can also be simplified, by not defining a instance variable for the properties you declare:

    Header file (.h):

    #import <Cocoa/Cocoa.h>
    #import <WebKit/WebKit.h>
    
    @interface AttendanceWizardAppDelegate : NSObject <NSApplicationDelegate> 
    // No need for a iVar declaration
    
    @property (weak) IBOutlet WebView *webView;
    @property (assign) IBOutlet NSWindow *window;
    
    @end
    

    Implementation file (.m):

    #import "AttendanceWizardAppDelegate.h"
    
    @implementation AttendanceWizardAppDelegate
    
    // Simplified synthesize declarations (no reference to the iVar)
    @synthesize Username; // I suggest you change the name of this variable ; the convention is to start the name of your property with a lower case letter, to not confuse it with a class name
    @synthesize Password;
    @synthesize webView;
    @synthesize webber;
    @synthesize window;
    
    - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
    {
        NSString *urlString = @"www.google.com";
    
        [[self.webView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlString]]]; // Note the use of self.webView, to use the getter you created by declaring the property
    }
    
    @end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

having an issue getting this to work. MySQL keeps throwing the following: ERROR 1064
For some reason valgrind keeps throwing the following error: ==6263== Invalid read of size
Some python code that keeps throwing up an invalid syntax error: stat.sort(lambda x1, y1:
I've got a simple SQL query that keeps throwing an SQL syntax error. It
Have no idea whats going wrong here. Keeps throwing... Fatal error: Call to a
My designer keeps throwing out the term liquid layout. What does this mean? Thanks
I am absolute clueless why the following code keeps throwing NullpointerExceptions. I was not
I'm try to parse this xml, but c# keeps throwing an exception saying it
I'm trying to: ((Request.Params[crmid] != null)) in a web page. But it keeps throwing
I'm using CodeLite on Ubuntu and for some bizzare reason GCC keeps throwing this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.