| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi Jon,
Task that you intend to run is actually a separate process and NSTask class providesI'm writing an app that needs to run a fairly lengthy background process, but the process itself is an NSTask. Does the task itself run on its own thread anyway or am I better spawning a new thread from my main one? What would be any possible disadvantage? The docs say that a task runs in a separate memory space to the calling app, but I don't know if that's the same thing.
I do not have an idea why it fires -taskDidFinish notification twice. And the reason why
When I don't span a new thread I get NSLogs showing that two calls to my -taskDidFinish:(NSNotification *)note method and a crash.
When I spawn a thread, I get no calls to the -taskDidFinsh method, therefore I have a memory leak! Any ideas?
Regards Shripada
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (email@hidden) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden This email sent to email@hidden
| 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.