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: Jens Alfke <email@hidden>
- Date: Tue, 16 Jun 2015 15:43:48 -0700
> On Jun 16, 2015, at 3:37 PM, Peters, Brandon <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