| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.