Re: Screen Saver -> Web Application
Re: Screen Saver -> Web Application
- Subject: Re: Screen Saver -> Web Application
- From: SA Dev <email@hidden>
- Date: Wed, 15 Jun 2005 12:04:44 -0400
Well, no ... ;-) It's a WebView class, so 'id WebView' is
incorrect. Just drop the IBOutlet if you don't want it there.
As for returning webView as an instance variable, you *did* make
sure an actual WebView instance was created somewhere, right? Like in
init?
webView = [[WebView alloc] initWithFrame:someFrame frameName:@"Some
name or just nil" groupName:@"Some other name or just nil"];
If you want the web view to take up the whole screen saver area
(the YourSaverView.m frame), pass [self frame] for the web view's frame.
(The above is typed in mail, from memory - correct me if I'm wrong.)
On Jun 15, 2005, at 11:57 AM, Jon Wynacht wrote:
Hi,
Thanks for the info. I forgot to mention that I did see that and
was monkeying around with it some...looking for examples of doing a
web view with code and not IB. Any pointers?
I started out by doing this in my .h file:
IBOutlet WebView *webView;
and this in my .m file:
- (id)webView
{
return webView;
}
However, I'm thinking I need to change IBOutlet to id, correct?
OK, I'm still a newbie here...but an eager one.
Appreciate the help. Great list.
Thanks,
JOn
On Jun 15, 2005, at 3:47 AM, SA Dev wrote:
Jon:
No 'interface'? Sure there is! Using XCode 2.1, at least, the
screen saver template creates YourSaverView.h/m files (under
"Classes"). This is a subclass of NSView. You can add any subview
you like, including a web view. You just can't do it with IB; it's
all got to be done in code.
On Jun 14, 2005, at 11:37 PM, Jon Wynacht wrote:
Hi,
I have a question regarding screen savers and creating them
within Xcode using the Cocoa frameworks. Can I use Web Kit from
within a screen saver to display content from an HTTP connection?
There really isn't an "interface" with the screen saver and after
digging through the documentation and searching Google I wasn't
able to find much of anything on this topic.
Any ideas, thoughts or hazings?
Thanks,
Jon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40silentalcove.net
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden