• 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: Varun Chandramohan <email@hidden>
  • Date: Mon, 21 Apr 2014 23:41:40 +0000
  • Thread-topic: NSOperation Issues

Hi Ken,

You are right this is not NSOp issues as it seems to have finished.

[queue waitUntilAllOperationsAreFinished];
[op isCancelled] replied with NO

[op isFinished] with YES

So this has to be some QCCAESPadCryptor internal error. Ill investigate
this further. Thank you.

Regards,
Varun




On 22/04/2014 9:10 am, "Ken Thomases" <email@hidden> wrote:

>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


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

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