How to know if a tool is installed as part of a specific System package ?

I need to be sure the tool I want to use from my app is available to any potential end-user… and if not what do they have to install…
More...

How to get core dumps ?

I have turned on crash reporting but I still don't get my cores ! What's missing ?

More...

How can I set a breakpoint on a variable?

Ever had some code where a pointer was overwritten, causing a horrible crash? Here's how you can set a watchpoint in the debugger to find it.

More...

How do I override system APIs?

Do you need to detect some special occurence for which the Mac OS doesn't send a notification? Do you have old code that used to employ "trap patching" that you need to port to Mac OS X? Have you checked all existing Cocoa, Carbon and Unix APIs, and none of them provides the solution? Here's a URL to an article that might help.

More...

How to use .dylib's ?

Where is dlopen ?More...

How can I create a file next to my Application?

You have a file that is auto-generated by your application, and you want to put it next to your application, on the user's "Desktop" folder, into the "Documents" folder or some similar place?

Here are four reasons why you shouldn't do this, and four suggestions for solutions.
More...

Is it possible to boot in Console only mode apart of the single user boot mode?

Can we boot OS X in terminal-only mode ?

More...

How do I find all those new APIs in the newest MacOS release?

Just got your hands on that juicy pre-release of MacOS X, and wondering how to find all those new methods and functions and classes when all you have are the framework header files?

More...

Project Builder complains about precompiled headers?!

If you get an error like "warning: could not use precompiled header '/System/Library/Frameworks/Carbon.framework/Headers/Carbon.p', because:
warning: 'OpenScripting/OpenScripting.h' has different date than in precomp", then very likely your precompiled headers are out of sync with the actual headers and the installed software. This can happen since some of Apple's installers only update the software, but neglect precompiled headers.

But fear not, the fix is easy. Just head to your friendly neighborhood Terminal.app and enter "sudo fixPrecomps -force" and MacOS X will try to update all precompiled headers.

More...

Why are Project Builder Applications so huge?

Is your application significantly larger than it used to be when it was still a CFM/FreeBSD/whatever application? Even when you're building using the "Deployment" build style?

More...

Why does my app crash in fwrite()?

I have random crashes when calling fwrite()…

More...

Where do I find the Finder Icon for ???-files?

I want to create a cool icon for my application, where can I find the icons the Finder uses for use as a template?
More...

How do I give my bundle an icon?

Is it possible to have a special icon for my bundles and frameworks ?

More...

How do I hide my app's dock icon?

I don't want an icon in the dock for my application…

More...

How open a System Preferences pane?

This works analogous to how such things were done on System 7: First, use one of the FindFolder() APIs to get an FSRef to the "Preference Panes" folder. In this folder, every preference pane has a corresponding file, which you can open by simply handing it to LSOpenFSRef().

More...