Hi, Todd,

Set a breakpoint and see which thread it stops on.

(It is probably not the main thread. But you will find out for certain with the 
breakpoint.)

Bob

Sent from my iPhone

On Feb 4, 2013, at 22:44, Todd Heberlein <[email protected]> wrote:

> I have an NSInvocationOperation, anOp, and register to observe when its 
> isFinished variable is set
> 
> [anOp addObserver:self forKeyPath:@"isFinished" 
> options:NSKeyValueObservingOptionNew context:NULL];
> 
> When my operation is done, isFinished is set, and thus my method 
> -observeValueForKeyPath:ofObject:change:context: is called, which thread is 
> it being called on? The main thread, or the thread created to process the 
> NSInvocationOperation?
> 
> Thanks,
> 
> Todd
> 
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/bob%40gluetools.com
> 
> This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to