Re: Widgets turning white and never unturning white?
Re: Widgets turning white and never unturning white?
- Subject: Re: Widgets turning white and never unturning white?
- From: j o a r <email@hidden>
- Date: Thu, 14 Jul 2005 10:31:11 +0200
On 14 jul 2005, at 10.23, Theodore H. Smith wrote:
[sheet beginSheetForDirectory:nil
file:name
modalForWindow:window
modalDelegate:self
didEndSelector:@selector
(savePanelDidEnd:returnCode:contextInfo:)
contextInfo:cfd
];
assert( true ); // just set a breakpoint here.
The open dialog fires, and then the breakpoint is trapped
immediately, even before I closed the dialog!
Yes of course - that's how it's supposed to work! Sheets are not
supposed to be blocking!
However, if I do this code:
[sheet beginSheetForDirectory:nil
file:name
modalForWindow:window
modalDelegate:self
didEndSelector:@selector
(savePanelDidEnd:returnCode:contextInfo:)
contextInfo:cfd
];
[NSApp runModalForWindow:sheet];
assert( true ); // just set a breakpoint here.
The breakpoint only files when the dialog closes.
This code is broken and should not be used.
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden