Re: AppDelegate vs Custom View Controllers for Download Task...
Re: AppDelegate vs Custom View Controllers for Download Task...
- Subject: Re: AppDelegate vs Custom View Controllers for Download Task...
- From: "Peters, Brandon" <email@hidden>
- Date: Tue, 16 Jun 2015 22:53:36 +0000
- Thread-topic: AppDelegate vs Custom View Controllers for Download Task...
Jens,
I will try that. I did find an example of what I described on GitHub, but again your solution sounds clean. Thanks.
On Jun 16, 2015, at 6:43 PM, Jens Alfke <email@hidden<mailto:email@hidden>> wrote:
On Jun 16, 2015, at 3:37 PM, Peters, Brandon <email@hidden<mailto:email@hidden>> wrote:
Is there any “known” danger in making the AppDelegate a NSURL session delegate?
No, but it doesn’t sound like a good design. The app delegate is for starting up the app and responding to some events from outside.
It would be cleaner to create a new class for managing the download, and make that the delegate. Then the app delegate can just make a one-line call to that.
—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