1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Displaying new Window??

Discussion in 'Mac Programming' started by trey5498, Jun 20, 2008.

  1. macrumors regular

    I admit that I am a noob when it comes to Mac programming, however I have the generals down, just not the exact syntax. I have one window that will call another window via an application controller and a next button action. It is linked up correctly and the Action works. This is the code below:

    @interface AppController : NSOject {
        NSWindow *prnOverview;
        NSWindow *prnSelector;
    - (IBAction)NextButton:(id)sender;
    @interface AppController 
    - (IBAction)NextButton:(id)sender
        NSLog(@"The User Clicked");
        [prnSelector performClose:self];
        [prnOverview makeKeyAndOrderFront:nil];
    The " NSLog(@"The User Clicked"); " Shows that the Action is activated and working, because it shows in the log currectly. I can not seem to get the syntax to work correctly to close the current window and show the next. What did I do wrong??

    And will this work for checking and adding the checkbox value to an array?

    if([checkboxname isEqualToString:@"Printer1"]  == YES) {
      printerarray[i] = Printer1;
    } else if{
    the other 17 checkboxes
  2. macrumors regular

  3. macrumors regular

    Never mind figured it out.

Share This Page