NSOperation Issues
NSOperation Issues
- Subject: NSOperation Issues
- From: Varun Chandramohan <email@hidden>
- Date: Thu, 03 Apr 2014 23:11:43 +0000
- Thread-topic: NSOperation Issues
Hi All,
I have some basic decryption I do with common crypto that works very well when I use in my app, some sample code below.
QCCAESPadCryptor * op;
NSString *licenseKey = nil;
NSOperationQueue *queue;
op = [[QCCAESPadCryptor alloc] initToDecryptInputData:[NSData dataWithBytes:cyphertext_dat length:sizeof(cyphertext_dat)]
keyData:[NSData dataWithBytes:key_dat length:sizeof(key_dat)]
];
op.ivData = [NSData dataWithBytes:iv_dat length:sizeof(iv_dat)];
queue = [[NSOperationQueue alloc] init];
[queue addOperation:op];
[queue waitUntilAllOperationsAreFinished];
However, when I port the same code to be used as a user daemon, I noticed that NSOperationQueue fails. I suspect that NSOperationQueue cannot be used as daemon running as root user?
If so are there any other alternates?
Regards,
Varun
_______________________________________________
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:
This email sent to email@hidden