Re: -beginSheet:modalForWindow:modalDelegate:didEndSelector
Re: -beginSheet:modalForWindow:modalDelegate:didEndSelector
- Subject: Re: -beginSheet:modalForWindow:modalDelegate:didEndSelector
- From: "Raglan T. Tiger" <email@hidden>
- Date: Fri, 20 Feb 2015 14:41:08 -0700
> On Feb 20, 2015, at 2:09 PM, Ken Thomases <email@hidden> wrote:
>
> Are you sure the app window (m_window) is the window you think it is? Log its title and its "visible" property.
NSWindow *appWindow = [NSApp mainWindow];
ETAboutWindowController *aboutWindowController = [[ETAboutWindowController alloc] initWithWindowNibName:@"ETAboutWindowController"];
NSWindow *aboutWindow = [aboutWindowController window];
NSLog(@"aboutWindowController %@",aboutWindowController);
NSLog(@" window %@",aboutWindow);
NSLog(@"appWindow from outlet %@",m_window);
NSLog(@" title %@",[m_window title]);
NSLog(@" visibility %i",[m_window isVisible]);
NSLog(@"appWindow from call %@",appWindow);
NSLog(@" title %@",[appWindow title]);
NSLog(@" visibility %i",[appWindow isVisible]);
[NSApp beginSheet:aboutWindow modalForWindow:m_window modalDelegate:nil didEndSelector:nil contextInfo:nil];
2015-02-20 14:39:15.134 [6232:204577] aboutWindowController <ETAboutWindowController: 0x6100000e3c00>
2015-02-20 14:39:15.134 [6232:204577] window <NSWindow: 0x6000001e3100>
2015-02-20 14:39:15.134 [6232:204577] appWindow from outlet <NSWindow: 0x6100001e2100>
2015-02-20 14:39:15.135 [6232:204577] title App Window Title
2015-02-20 14:39:15.135 [6232:204577] visibility 1
2015-02-20 14:39:15.135 [6232:204577] appWindow from call <NSWindow: 0x6100001e2100>
2015-02-20 14:39:15.135 [6232:204577] title App Window Title
2015-02-20 14:39:15.135 [6232:204577] visibility 1
-rags
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden