Re: Beachballing 2
Re: Beachballing 2
- Subject: Re: Beachballing 2
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Wed, 05 Dec 2012 01:58:35 +0700
On 5 Dec 2012, at 01:33, Jens Alfke <email@hidden> wrote:
>
> On Dec 4, 2012, at 9:54 AM, Gerriet M. Denkmann <email@hidden> wrote:
>
>> My app creates lots of MyOperations (subclass of NSOperation) and puts them into an NSOperationQueue.
>> These operations do not do any I/O - they just use the Cpu.
>
> But in your earlier thread you showed a code snippet that included a comment implying that the operation code updates the UI. Does it? (Maybe it doesn’t do it directly, but does it make a synchronous method call to other code that does?)
When an operation has finished, it sends a message to the app delegate. Every 20th time, the app delegate then does: self.aValue = ...some number ...
@property (assign) NSUInteger aValue; // aValue is bound to some NSTextField.
But when I comment this out there is no impact on speed at all.
Kind regards,
Gerriet.
_______________________________________________
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