• 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: Scattered NSProgress use
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scattered NSProgress use


  • Subject: Re: Scattered NSProgress use
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 13 Apr 2015 09:33:51 -0700

> On Apr 11, 2015, at 12:49 PM, Daryle Walker <email@hidden> wrote:
>
> We have to make sure that the automatic parent/nesting aspect doesn’t make sibling & cousin progress objects, whose actions will be interlaced, interfere with each other.

It’s only automatic while an NSProgress is made the currentProgress, and currentProgress is a per-thread state. So you’re in control of what code runs, and what other NSProgresses are created, while one is current. If you’d rather, you can make everything explicit by _never_ making an NSProgress current, and instead passing it in as the parent when you create new child instances.

—Jens
_______________________________________________

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: Scattered NSProgress use
      • From: Daryle Walker <email@hidden>
References: 
 >Scattered NSProgress use (From: Daryle Walker <email@hidden>)

  • Prev by Date: Re: Crash when move open document based app file to trash
  • Next by Date: Re: Crash when move open document based app file to trash
  • Previous by thread: Scattered NSProgress use
  • Next by thread: Re: Scattered NSProgress use
  • Index(es):
    • Date
    • Thread