Page 1 of 1

Programming Help

Posted: Sun Jul 27, 2008 8:57 pm
by Slapzy
so i'm making my own web browser, with a little help from some tuts and such, and i'm trying to allow javascript window requests...

is what im sposed to do
Image

is what i have
Image

can anyone tell me where to put that highlighted prototype method?

(forgive me, i is a total noob at programming, first app ever semi successful in making so far...)

Posted: Sun Jul 27, 2008 11:33 pm
by Mota-Lev
You should get REALbasic. Very easy to learn. I am still in the learning part though. But yeah you can make a very basic web browser in 1 line of code.

Posted: Mon Jul 28, 2008 5:47 am
by nil

Code: Select all

- (id)webView;
This goes in "MyDocument.h", where method declaration/prototypes belong.

Code: Select all

- (id)webView
{
    return webView;
}
This goes in "MyDocument.m", where implementation of methods belong in.

You should realize though, that this probably isn't the best resource for asking for programming help.
Mota-Lev wrote: But yeah you can make a very basic web browser in 1 line of code.
Yeah, you can do what with webkit too, but uh, if you want to get past the 'very basic' 1 line of code probably won't suffice...

Posted: Mon Jul 28, 2008 10:47 am
by Slapzy
Thanks, and yeah i know its not the best resource, but i knew that it wouldn't be too hard to answer for a few people here, as long as they got a chance to read it. and I figured it would get answered at some point.

Thanks tho.

*Edits, it worked*