Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

RevK

macrumors member
Original poster
Apr 26, 2004
65
0
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:

Code:
    [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.
 
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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.