• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sheet is "stopping" my thread...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Sheet is "stopping" my thread...
  • Next by Date: Re: why does the method popup sometimes not appear in PB ?
  • Previous by thread: Re: Sheet is "stopping" my thread...
  • Next by thread: How to obtain the creator code of a file with Cocoa ?
  • Index(es):
    • Date
    • Thread