Re: ScreenSaverView and subviews
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.