• 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
NSOperation Issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSOperation Issues
      • From: Jens Alfke <email@hidden>
    • Re: NSOperation Issues
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: what do I need the NSArrayController for?
  • Next by Date: Re: NSOperation Issues
  • Previous by thread: Re: Did 7.1 increase available memory?
  • Next by thread: Re: NSOperation Issues
  • Index(es):
    • Date
    • Thread