Re: Application windows are expected to have a root view controller at the end of application launch

2015-03-02 Thread Rick Mann

 On Mar 2, 2015, at 08:51 , David Duncan david.dun...@apple.com wrote:
 
 
 On Mar 1, 2015, at 10:36 PM, Rick Mann rm...@latencyzero.com wrote:
 
 I'm adding background downloading on remote notification, so I removed all 
 my UI code from appDidFinishLaunching. Now I get this error: Application 
 windows are expected to have a root view controller at the end of 
 application launch
 
 So, I have to create UI even though I won't be displaying it?
 
 
 You should only get this if you have created a window and made it visible.

Hmm. I didn't believe that I did, because I don't makeKeyAndVisible until 
later, but...it's a pre-storyboard app, and maybe it's being created when the 
main NIB is loaded.

-- 
Rick Mann
rm...@latencyzero.com



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Application windows are expected to have a root view controller at the end of application launch

2015-03-02 Thread David Duncan

 On Mar 1, 2015, at 10:36 PM, Rick Mann rm...@latencyzero.com wrote:
 
 I'm adding background downloading on remote notification, so I removed all my 
 UI code from appDidFinishLaunching. Now I get this error: Application 
 windows are expected to have a root view controller at the end of application 
 launch
 
 So, I have to create UI even though I won't be displaying it?


You should only get this if you have created a window and made it visible.
--
David Duncan


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Application windows are expected to have a root view controller at the end of application launch

2015-03-01 Thread Rick Mann
I guess that's the way it's supposed to be. Seems wasteful.

 On Mar 1, 2015, at 22:36 , Rick Mann rm...@latencyzero.com wrote:
 
 I'm adding background downloading on remote notification, so I removed all my 
 UI code from appDidFinishLaunching. Now I get this error: Application 
 windows are expected to have a root view controller at the end of application 
 launch
 
 So, I have to create UI even though I won't be displaying it?
 
 -- 
 Rick Mann
 rm...@latencyzero.com
 
 
 
 ___
 
 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
 
 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:
 https://lists.apple.com/mailman/options/cocoa-dev/rmann%40latencyzero.com
 
 This email sent to rm...@latencyzero.com


-- 
Rick Mann
rm...@latencyzero.com



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com