Re: Screen saver with a configure sheet?
Re: Screen saver with a configure sheet?
- Subject: Re: Screen saver with a configure sheet?
- From: David Wilson <email@hidden>
- Date: Tue, 10 Jan 2006 20:31:30 +1300
Hi Patrick...
My Screen Saver (see http://www.versiontracker.com/dyn/moreinfo/
macosx/26020 ) has the code implemented as below.
It's a big configure sheet for a screen saver...
Hope this helps. Feel free to contact me and I'll try to be of more
assistance.
- David
- (BOOL)hasConfigureSheet
{
return YES;
}
- (NSWindow*)configureSheet
{
if (configureSheet == nil)
[NSBundle loadNibNamed:@"ConfigureSheet.nib" owner:self];
configW = configureSheet;
return configW;
}
- (IBAction)closeSheetOK:(id)sender
{
//text deleted. Add code here if you need special handling after the
sheet closes
// close sheet
[NSApp endSheet:configureSheet];
return;
}
On 10/01/2006, at 11:44 AM, patrick wrote:
I'm making a screen saver with a configure sheet, and I'm having
trouble understanding how I can create a connection between the sheet
and my screen saver class.
In my screen saver's header file, I have:
IBOutlet id *configureSheet;
I've created a NIB with the panel, but since the ScreenSaverEngine
creates the instance of my screen saver view, it doesn't seem like I
would create an instance of the screen saver view in my NIB.
The only tutorial I could find about making a screen saver with a
configure sheet didn't explain this part, and just provided a NIB that
somehow already has the connection in it.
Any pointers would be greatly appreciated.
Thanks,
Patrick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40paradise.net.nz
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