<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>DidFinishLaunching is likely the best best for most users (we actually use that for most initialization) to read the main init file. If there are compelling reasons to do some other init work at WillFinishLaunching time perhaps there could be a less obvious and less used "will-finish-launch-init.lisp" file which by default did not exist?</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div>On Nov 1, 2012, at 7:58 AM, Paul Krueger wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Yep, I believe all that. It wasn't until I started to look at why my IDE init file was no longer doing what it did previously that I figured this out. It loaded fine when I manually did it immediately after starting the IDE, so I looked at where it was being loaded and then researched the #/applicationWillFinishLaunching: method. The latest documentation is explicit that it is called prior to initialization of the Application object and I don't remember reading that previously, so I'm guessing you're absolutely correct that the functionality changed somewhere along the line. If you're going to change this, you'll have to figure out whether you also want to move the other stuff that is done there now, but I'm betting you might. It should be a pretty easy change I expect.<br><br>If you think this change will be coming soon I'll wait for it, otherwise I'm tempted to just change "Will" to "Did" and recompile to make my stuff work again.<br><br>Thanks for the analysis.<br><br>On Oct 31, 2012, at 6:46 PM, Gary Byers <<a href="mailto:gb@clozure.com">gb@clozure.com</a>> wrote:<br><br><blockquote type="cite">As far as I can tell/remember, loading the IDE init file has always been done<br></blockquote><blockquote type="cite">in the application delegate's #/applicationWillFinishLaunching: method (instead<br></blockquote><blockquote type="cite">of in #/applicationDidFinishLaunching:).<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">IIRC, that was about the earliest point in time that it was practical to load that file: the NSApplication object was in fact (largely) initialized<br></blockquote><blockquote type="cite">and at least in theory loading the file then made it possible to customize<br></blockquote><blockquote type="cite">what happens between the points when those notifications are posted.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The code to load the IDE init file was added in early May of 2009; it's<br></blockquote><blockquote type="cite">certainly possible that the state of the NSApplication at the point of<br></blockquote><blockquote type="cite">the earlier notification isn't what it was ~3.5 years (and ~3 OS releases)<br></blockquote><blockquote type="cite">ago because of Cocoa changes.  If that's true, it seems to argue in favor<br></blockquote><blockquote type="cite">of loading the init file later (when we know that the application DID finish<br></blockquote><blockquote type="cite">launching and is fully initialized), since we can't really count on how<br></blockquote><blockquote type="cite">much initialization remains to be done when we're told that it WILL "finish<br></blockquote><blockquote type="cite">launching."<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Wed, 31 Oct 2012, Paul Krueger wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Just upgraded to version 1.9-dev-r15490M-trunk  (DarwinX8664) and discovered that loading the ccl-ide-init file has been put into the #/applicationWillFinishLaunching: method. I don't know when that happened because it's been a LONG time since I upgraded last. The problem with this is that the things that I have previously been doing in my ccl-ide-init require that the Application object already be initialized, which is not the case when this method is called. Is there some reason loading the ccl-ide-init file couldn't be put into a #/applicationDidFinishLaunching: method which is called after the Application object is initialized?<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Openmcl-devel mailing list<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="mailto:Openmcl-devel@clozure.com">Openmcl-devel@clozure.com</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://clozure.com/mailman/listinfo/openmcl-devel">http://clozure.com/mailman/listinfo/openmcl-devel</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><br>_______________________________________________<br>Openmcl-devel mailing list<br><a href="mailto:Openmcl-devel@clozure.com">Openmcl-devel@clozure.com</a><br>http://clozure.com/mailman/listinfo/openmcl-devel<br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Prof. Alexander Repenning</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><br class="khtml-block-placeholder"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px">University of Colorado</p><p style="margin: 0.0px 0.0px 0.0px 0.0px">Computer Science Department</p><p style="margin: 0.0px 0.0px 0.0px 0.0px">Boulder, CO 80309-430</p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><br class="khtml-block-placeholder"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">vCard: <a href="http://www.cs.colorado.edu/~ralex/AlexanderRepenning.vcf">http://www.cs.colorado.edu/~ralex/AlexanderRepenning.vcf</a></font></p><br class="Apple-interchange-newline"></span></span></span></span>
</div>
<br></body></html>