Library loading policy on Mac OS X with Cocoa
Library loading policy on Mac OS X with Cocoa
- Subject: Library loading policy on Mac OS X with Cocoa
- From: Stéphane Sudre <email@hidden>
- Date: Tue, 26 Jun 2001 13:12:04 +0200
I have another stupid question.
I'm running Project Builder under gdb because I need to track a bug
which makes it crash.
I just saw something surprising but not too much.
I added a ) without its counterpart and Project Builder beeped to warm
me.
From gdb I can see that to generate the Beep, a shared library got
loaded. This may explain why it's so slow to get the first beep on any
Cocoa application. But why does Cocoa need to load a whole library at
runtime just for NSBeep();
Couldn't it be done once for all at the System Launch, or the
Application Launch ?