#Programming

  1. 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]
  2. 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]
  3. getrlimit and randomness

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

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

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