Re: App Delegate Methods
On Fri, Jul 8, 2011 at 12:34 AM, Andy Lee wrote: > On Jul 7, 2011, at 5:59 PM, koko wrote: >> So, is there really an NSApplicationWillFinishLaunchingNotification or is >> Apple just pulling my leg? > > Works for me. You should be able to confirm too by creating a new project. Yeah it also has always worked for me. I cannot explain the behavior you are seeing. -Shawn ___ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: App Delegate Methods
On Jul 7, 2011, at 5:59 PM, koko wrote: > So, is there really an NSApplicationWillFinishLaunchingNotification or is > Apple just pulling my leg? Works for me. You should be able to confirm too by creating a new project. --Andy ___ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: App Delegate Methods
On Jul 7, 2011, at 4:10 PM, Greg Guerin wrote: > What do you hope to accomplish with this event that you can't accomplish with > applicationDidFinishLaunching: ? The only time I’ve ever had to use it was when I had to install some custom AppleEvent handlers before the app processed the on-launch AppleEvents (which happens before appDidFinishLaunching). Ordinarily I can’t think of reasons it’d be needed. —Jens___ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: App Delegate Methods
koko wrote: So, is there really an NSApplicationWillFinishLaunchingNotification or is Apple just pulling my leg? From the reference doc for the NSApplicationDelegate protocol: applicationWillFinishLaunching: Sent by the default notification center immediately ***before the application object is initialized***. (*'s added for emphasis) What do you hope to accomplish with this event that you can't accomplish with applicationDidFinishLaunching: ? -- GG ___ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: App Delegate Methods
Spelling seems correct: (copied from mm file): // application delegate methods /* applicationWillFinishLaunching */ - (void)applicationWillFinishLaunching:(NSNotification *)aNotification { NSLog(@"applicationWillFinishLaunching"); } and the delegate is hooked up in IB. So, is there really an NSApplicationWillFinishLaunchingNotification or is Apple just pulling my leg? -koko On Jul 7, 2011, at 2:05 PM, Shawn Erickson wrote: > On Thu, Jul 7, 2011 at 12:57 PM, koko wrote: >> Let me clarify: >> >> in my app delegate the method >> >> applicationDidFinishLaunching: >> >> is called while the method >> >> applicationWillFinishLaunching: >> >> How can this be? > > Most likely a typo in your source code in the method name or some late > setting of your delegate with the NSApp instance (not sure how you > would have that but...). > > -Shawn > ___ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: App Delegate Methods
On Thu, Jul 7, 2011 at 12:57 PM, koko wrote: > Let me clarify: > > in my app delegate the method > > applicationDidFinishLaunching: > > is called while the method > > applicationWillFinishLaunching: > > How can this be? Most likely a typo in your source code in the method name or some late setting of your delegate with the NSApp instance (not sure how you would have that but...). -Shawn ___ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: App Delegate Methods
Let me clarify: in my app delegate the method applicationDidFinishLaunching: is called while the method applicationWillFinishLaunching: How can this be? -koko On Jul 7, 2011, at 1:50 PM, Shawn Erickson wrote: > On Thu, Jul 7, 2011 at 12:14 PM, koko wrote: >> In my app delegate applicationDidFinishLaunching is called but >> applicationWillFinishLaunching is not. >> >> Can anyone shed some light on this apparent anomaly? > > As currently typed in your mail above neither of those are the methods > sent by NSApplication. > > The following are what you need to implement > applicationDidFinishLaunching: and applicationWillFinishLaunching:. > > -Shawn > ___ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: App Delegate Methods
On Thu, Jul 7, 2011 at 12:14 PM, koko wrote: > In my app delegate applicationDidFinishLaunching is called but > applicationWillFinishLaunching is not. > > Can anyone shed some light on this apparent anomaly? As currently typed in your mail above neither of those are the methods sent by NSApplication. The following are what you need to implement applicationDidFinishLaunching: and applicationWillFinishLaunching:. -Shawn ___ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
App Delegate Methods
In my app delegate applicationDidFinishLaunching is called but applicationWillFinishLaunching is not. Can anyone shed some light on this apparent anomaly? -koko___ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com