iOS App Architecture with NSOperations

前端 未结 3 1331
天命终不由人
天命终不由人 2021-02-03 11:07

Two month ago I started to write a new iPhone Application and for this reason I created a generic RESTFul web service, which allows me to have a lot of these necessary features

3条回答
  •  孤街浪徒
    2021-02-03 11:35

    For "sub operations": what about putting them on your queue, with the parent operation being a dependency (cf. -[ NSOperation addDependency: ]) of each of its child operations? The NSOperationQueue can sequence your whole pile of operations for you. I think this is simple and natural to work with.

提交回复
热议问题