Objective-C Sheet Windows

Discussion in 'Mac Programming' started by RevK, Sep 3, 2008.

  1. macrumors member

    Apr 26, 2004
    Hello everyone...

    I have been trying many times to get an Objective-C sheet window to work, but have not had any luck. This is the code that won't work for me:

        [NSApp beginSheet:configureSheet modalForWindow:mainWindow
            modalDelegate:self didEndSelector:NULL contextInfo:nil];
    I've connected configureSheet and mainWindow to their respective windows in Interface Builder. Any ideas?

    Thanks in advance.
  2. Moderator emeritus


    Jun 15, 2000
    Use the debugger. Just because you connected them in IB doesn't mean they've been initialized correctly at the point of use. Do you get any errors?

Share This Page