On Apr 21, 2009, at 5:37 PM, John Yeh wrote:
The init function for each dialog looks like this:
@implementation SettingsController
- (id)init
{
[super init];
self = [super initWithWindowNibName:@"FLAirMainSettingsPanel"];
return self;
}
Why are you doubly-initing the object? You call
On 22/04/2009, at 8:37 AM, John Yeh wrote:
[NSApp runModalForWindow: [settingsController window]];
// Dialog is up here.
[NSApp endSheet: [settingsController window]];
I think endSheet: needs to balance one of the beginSheet: methods, and
conversely, runModalForWindow: needs to be balanced
In Carban, I can create a modal dialog over a modal dialog without any problem.
But in Cocoa, the second modal dialog is always displayed behind the first one,
and the event loop is still on the first dialog. In other words, the second
modal dialog is unclickable. Can you give me some informatio