• 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: ScreenSaverView and subviews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ScreenSaverView and subviews


  • Subject: Re: ScreenSaverView and subviews
  • From: Stéphane Sudre <email@hidden>
  • Date: Sun, 6 Jul 2003 22:45:45 +0200

On samedi, juillet 5, 2003, at 10:48 PM, Jesus De Meyer wrote:

I'm doing a little test screensaver which uses a custom view from a nib
file. Now the view gets loaded and get show in the screensaver, but it
the subview doesn't fit the screen. I have tried setting the frame from
the subview but when I do so, I just get a white screen.

Here's my code in the initWithFrame method:

[self setAnimationTimeInterval:10];
wv = [[wo webView] retain];
//resizing wv doesn't work
[self addSubview:wv];
[self setNeedsDisplay:YES];

What does it gives with something like this in your screensaver view?

- (void) setFrame:(NSRect) aFrame
{
NSRect tFrame=aFrame;

[super setFrame:aFrame];

tFrame.origin=NSZeroPoint;

[wv setFrame:tFrame];
}

My $0.02
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Setting the origin of a GC
      • From: Jim Crafton <email@hidden>
References: 
 >ScreenSaverView and subviews (From: Jesus De Meyer <email@hidden>)

  • Prev by Date: Re: Project Builder and scripting
  • Next by Date: Re: Drawing Arcs
  • Previous by thread: ScreenSaverView and subviews
  • Next by thread: Setting the origin of a GC
  • Index(es):
    • Date
    • Thread