• 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 with a configure sheet?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Screen saver with a configure sheet?


  • Subject: Re: Screen saver with a configure sheet?
  • From: patrick <email@hidden>
  • Date: Tue, 10 Jan 2006 18:14:33 -0800

Hi David, thanks for the response.

I have similar code, but did you not have to make some sort of
connection in Interface Builder? I just don't see how Cocoa knows that
the line:

[NSBundle loadNibNamed:@"ConfigureSheet.nib" owner:self]

assigns an instance of the sheet to the variable to "configureSheet".

(I tried downloading your screen saver, but VersionTracker's download
server seems to be down.)

Patrick

On 1/9/06, David Wilson <email@hidden> wrote:
> 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:
>
> 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 with a configure sheet? (From: patrick <email@hidden>)
 >Re: Screen saver with a configure sheet? (From: David Wilson <email@hidden>)

  • Prev by Date: Re: HTML Designer
  • Next by Date: Re: Why do all subcell buttons highlite for custom cell in NSTableView?
  • Previous by thread: Re: Screen saver with a configure sheet?
  • Next by thread: Checkbox, Dictionary, Bindings
  • Index(es):
    • Date
    • Thread