• 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: AppDelegate vs Custom View Controllers for Download Task...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >AppDelegate vs Custom View Controllers for Download Task... (From: "Peters, Brandon" <email@hidden>)
 >Re: AppDelegate vs Custom View Controllers for Download Task... (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: AppDelegate vs Custom View Controllers for Download Task...
  • Next by Date: Re: AppDelegate vs Custom View Controllers for Download Task...
  • Previous by thread: Re: AppDelegate vs Custom View Controllers for Download Task...
  • Next by thread: Re: AppDelegate vs Custom View Controllers for Download Task...
  • Index(es):
    • Date
    • Thread