PDA

View Full Version : Objective-C Sheet Windows




RevK
Sep 3, 2008, 07:30 PM
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.



kainjow
Sep 4, 2008, 09:58 PM
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?