• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Screen Saver -> Web Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Screen Saver -> Web Application (From: Jon Wynacht <email@hidden>)
 >Re: Screen Saver -> Web Application (From: SA Dev <email@hidden>)
 >Re: Screen Saver -> Web Application (From: Jon Wynacht <email@hidden>)

  • Prev by Date: Re: Screen Saver -> Web Application
  • Next by Date: Re: Drawing over a view's subviews
  • Previous by thread: Re: Screen Saver -> Web Application
  • Next by thread: Edit Newly Inserted Row Via Bindings
  • Index(es):
    • Date
    • Thread