Re: Sheet is "stopping" my thread...
Re: Sheet is "stopping" my thread...
- Subject: Re: Sheet is "stopping" my thread...
- From: David Remahl <email@hidden>
- Date: Sun, 29 Jul 2001 02:24:06 +0200
Are you by any chance using the deprecated [NSApp
runModalForWindow:relativeToWindow:]? You should use the asynch
beginSheet:(NSWindow *)sheet modalForWindow:(NSWindow *)docWindow
modalDelegate:(id)modalDelegate didEndSelector:(SEL)didEndSelector
contextInfo:(void *)contextInfo; in conjunction with the
sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode
contextInfo:(void *)contextInfo selector instead in order not to hinder
the run of the run loop.
All this stuff is documented along with NSApplication.
/ david
Okay, this is very weird. I added a sheet yesterday evening (last thing
of the day, of course) and when I went to look at it again today I
discovered that although the sheet was appearing correctly, a
background task that normally runs and spits out NSLog messages appears
to stop (yes, I know, use the debugger, but I need to do some logging
of a device).
So, is the problem that NSLog doesn't do anything while the sheet is
up, or is there an issue with the sheet and threads? I thought I
remembered seeing something about this in the list messages, but I
haven't seen it/missed finding it. Any assistance would be appreciated!
Cheers,
Lloyd
--------
Canna Software Development
"This email was created using 100% recycled electrons"
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev