• 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: Mac OS X - AppDelegate applicationDidFinishLaunching
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac OS X - AppDelegate applicationDidFinishLaunching


  • Subject: Re: Mac OS X - AppDelegate applicationDidFinishLaunching
  • From: Dave <email@hidden>
  • Date: Tue, 03 Mar 2015 17:13:22 +0000

Hi,

Ahhhh, ok, I was trying to avoid mentioning the Window Controller specifically in the App Delegate, but I think this is warped and I will change it so that it creates it there instead of referencing it in the NIB.

Actually, awakeFromNIB is getting called twice for some reason, but I’m sure the above will fix it.

Cheers
Dave

> On 3 Mar 2015, at 16:58, Kyle Sluder <email@hidden> wrote:
>
> On Tue, Mar 3, 2015, at 10:41 AM, Dave wrote:
>> Hi,
>>
>> I’ve got a very simple test application with just one window and a few
>> controls. I’ve for some initialisation code in the AppDelegate
>> applicationDidFinishLaunching method.
>>
>> While tracking down a problem I’ve noticed that my WindowController class
>> awakeFromNib method is getting called before
>> applicationDidFinishLaunching. Is this normal?
>
> Does your window controller live in MainMenu.nib? If so, then yes.
>
>> If so, then where is the
>> best place to do one-off initialisation when the App is first launched?
>
> Do it in -applicationDidFinishLaunching:. Usually you create your app's
> main window controller here.
>
> --Kyle Sluder
>
> _______________________________________________
>
> 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


_______________________________________________

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


  • Follow-Ups:
    • Re: Mac OS X - AppDelegate applicationDidFinishLaunching
      • From: Lee Ann Rucker <email@hidden>
    • Re: Mac OS X - AppDelegate applicationDidFinishLaunching
      • From: Kyle Sluder <email@hidden>
References: 
 >Mac OS X - AppDelegate applicationDidFinishLaunching (From: Dave <email@hidden>)
 >Re: Mac OS X - AppDelegate applicationDidFinishLaunching (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSTextField highlight
  • Next by Date: Re: Create a NSURL as a way to validate urls - not working
  • Previous by thread: Re: Mac OS X - AppDelegate applicationDidFinishLaunching
  • Next by thread: Re: Mac OS X - AppDelegate applicationDidFinishLaunching
  • Index(es):
    • Date
    • Thread