#Programming

  1. ‘Open in 32-bit mode’ – ‘Open using Rosetta’

    As you know, it is possible to force an Universal Binary (ppc, i386, x86_64) to run in 32-bit mode (i386) even if the machine could run x86_64 binaries.
    [Read More]
  2. PICT support in 64-bit app

    QuickDraw is the legacy 2D drawing engine for Macintosh computers and was deprecated in Tiger (10.4) but is still available for 32-bit applications on 10.4, 10.5 and 10.6. 64-bit applications can’t use QuickDraw yet and Apple recommends to switch to other technologies like Quartz 2D.
    [Read More]
  3. Automatic Backtraces

    Here are different solutions to display automatically a backtrace when entering a specific function in your application. As an example we will take the following program. It’s a really simple program: the main function calls the function function1 which prints a string.
    [Read More]
  4. getrlimit and randomness

    To determine the maximum number of files your application can open, there is a function getrlimit() available.
    [Read More]
  5. ‘newMovieDontInteractWithUser’ flag

    Some QuickTime functions take a ‘short flags’ as parameter, for example NewMovieFromHandle or NewMovieFromDataRef:
    [Read More]
  6. Major issue in SimplePing

    The SimplePing sample from Apple can fail to perform a ping request (ICMP).
    [Read More]