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 03:24:01 +0200
Sure I can!
I actually just wrote half a page describing the process to you, when I
thought of a better solution: pointing you to an URL:
http://www.cocoadevcentral.com/tutorials/showpage.php?show=00000014.php
That should get you started! Feel free to mail back if anything seems
odd.
/ david
Yep, that's what I did.
Okay, so the issue is that NSLog gets whacked because of the runloop
<whacks head> okay, well that makes sense.
Yeah, I looked at NSApplication, but my brain grew weary... Okay, since
I am an obvious newbie, could you give me an example (or point me to
one?). Would much appreciate it...
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