Re:How Google Chrome for Mac appears to launch so fast
by pygy on Tuesday July 28, 2009 @11:18AM
(#728057)
It makes sense for the author to use it, since he wants to emulate the behaviour of the "Recent Applications", etc. Dock folders. A bounce is unwelcome in this case, and the other benefits of the normal application startup (like being registered in the "Recent Apps" list) are useless for him.
Re:How Google Chrome for Mac appears to launch so fast
by tumult on Tuesday July 28, 2009 @11:24AM
(#728061)
It does make sense in his case. It's still a hack, and he's still ignoring his own advice :)
Re:How Google Chrome for Mac appears to launch so fast
by jodrellblank on Tuesday July 28, 2009 @11:15AM
(#728045)
It's important to point out that doing this is a bad idea
You've explained why it's done to get Cocoa components, but you haven't pointed out why it's a bad idea. It seems faster, which is good. Does it do any harm?
Re:How Google Chrome for Mac appears to launch so fast
by tumult on Tuesday July 28, 2009 @11:18AM
(#728056)
Its behavior for applications which use a GUI is unspecified by Apple (afaik) which means it could break at any time. Among other problems: Dock icon weirdness (no bouncing, status changes are strange) your app won't show up in the "Recent Applications" menu, your app won't be registered correctly in the process list, and likely some other stuff I can't name off the top of my head. Don't do it. You aren't an exception.
Re:How Google Chrome for Mac appears to launch so fast
by DrJokepu on Tuesday July 28, 2009 @01:50PM
(#728387)
Indeed. "Smart people" abusing undocumented behaviour of Windows releases is usually the cause of compatability problems when a newer Windows version is released. You can read a few articles on Raymond Chen's The Old New Thing to get some understandong on how far Microsoft had to go to make sure that old programs doing stupid things kept working in new Windowses.
You don't abuse undocumented features of your environment as a developer. It's always a bad idea, it will always inevitably come back and bite you (or even worse, your users) a few years later.
The author then goes on to ignore his own advice, and shows us demoing the trick in his own application.