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

Re: NSOperation Issues


  • Subject: Re: NSOperation Issues
  • From: Ken Thomases <email@hidden>
  • Date: Mon, 21 Apr 2014 18:10:57 -0500

On Apr 21, 2014, at 5:47 PM, Varun Chandramohan wrote:

>    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];

> After [queue waitUntilAllOperationsAreFinished];

> op.outputData is nil. This was not the case before. I don’t know how to
> debug this.

It sounds like the operation's internal code failed or, possibly, that the operation was cancelled.

Check the value of [op isCancelled] and [op isFinished].  If it's finished and not cancelled, then it ran to completion and the problem has nothing to do with the operation queue.  I don't have any idea why it might have failed.  That would be a matter of the implementation of QCCAESPadCryptor and/or the specific cypher text, key, and input data you're passing it.

Regards,
Ken


_______________________________________________

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: Varun Chandramohan <email@hidden>
References: 
 >NSOperation Issues (From: Varun Chandramohan <email@hidden>)
 >Re: NSOperation Issues (From: Jerry Krinock <email@hidden>)
 >Re: NSOperation Issues (From: Varun Chandramohan <email@hidden>)
 >Re: NSOperation Issues (From: Ken Thomases <email@hidden>)
 >Re: NSOperation Issues (From: Varun Chandramohan <email@hidden>)

  • Prev by Date: Re: Strange toolbar/view/resize cursor interaction
  • Next by Date: Re: ARC Retain Cycles
  • Previous by thread: Re: NSOperation Issues
  • Next by thread: Re: NSOperation Issues
  • Index(es):
    • Date
    • Thread