Posts relating to software development with Cocoa.
NSURLConnection's sendSynchronousRequest enforces minimum 30 second timeout? NSURLConnection's sendSynchronousRequest enforces minimum 30 second timeout?

Posted by smokris on 2007.07.10 @ 16:47

Filed under:

While writing the new Image Downloader (Blocking) QC patch for CoreMelt, I ran into what appears to be a bug in Mac OS X’s NSURLConnection framework — if you construct an NSURLRequest and specify a timeout of less than 30 seconds, it’s ignored when you perform a [NSURLConnection sendSynchronousRequest:returningResponse:error:]. The request takes at least 30 seconds to time out, contrary to what the documentation suggests..

Steps to Reproduce: [more...]

How to make Pop-Up Menus in Custom Quartz Composer Patches How to make Pop-Up Menus in Custom Quartz Composer Patches

Posted by smokris on 2007.07.05 @ 13:26

Filed under:

screenshot of a custom Quartz Composer patch's pop-up menuMaking pop-up menus in custom Quartz Composer patches is actually surprisingly easy.

This release is only compatible with Tiger (10.4).
Please see kineme.net for Leopard-specific informations.
  1. Set up a QCIndexPort input. QCIndexPorts provide values from 0 to whatever max you specify using - (void)setMaxIndexValue:(unsigned int)max;.
New Custom Quartz Composer Patch Xcode Template New Custom Quartz Composer Patch Xcode Template

Posted by smokris on 2007.06.29 @ 17:02

Filed under:

Create a new Xcode project with this templateHere’s a new version of the Xcode Template for Custom Quartz Composer Patches.

Changes:

  • Rebuilt from scratch — no longer depends on QCJP’s work — and, by extension, the Creative Commons “Attribution-NonCommercial-ShareAlike” license. My Xcode Template, as of version 0.2, is released into the Public Domain. You are free to use it for whatever — commercial or non-commercial.
  • QCJP’s headers were replaced with headers assembled directly from the QuartzComposer framework — now located in the QuartzComposer/ folder of the project. I’ve exported a few more headers than QCJP had constructed, so there’s some added functionality (namely, image input/output ports).
  • The project now automatically assigns an icon to the patch bundle, and installs it in /Library/Graphics/Patches/ for you each time you build, for faster edit-build-test workflow.
This release is out-of-date.
Please see the latest version.

Download the installer, version 0.2.

See the old version’s blogpost for some additional instructions and user comments.


Steve Mokris is a developer at Kosada, Inc.

Advanced custom Quartz Composer patch development documentation Advanced custom Quartz Composer patch development documentation

Posted by smokris on 2007.05.13 @ 12:03

Filed under:

In addition to writing the inspector panels for custom Quartz Composer patches tutorial, I spent this weekend writing up some advanced custom-patch-development documentation and posted it on QC Wiki:


Steve Mokris is a developer at Kosada, Inc.

How to make inspector panels for custom Quartz Composer patches How to make inspector panels for custom Quartz Composer patches

Posted by smokris on 2007.05.13 @ 11:52

Filed under:

…in thirteen easy steps or your money back.

This release is only compatible with Tiger (10.4).
Please see kineme.net for Leopard-specific informations.

 

 

 
[more...]

Xcode Template for Custom Quartz Composer Patches Xcode Template for Custom Quartz Composer Patches

Posted by smokris on 2007.05.08 @ 14:35

Filed under:

Create a new Xcode project with this templateOkay, so, now that the Game Research and Immersive Design Lab’s infamous first-responder project is finished, I’m getting back to work on Quartz Composer hackery.

Frustrated with the tedium of going through all the Xcode project files in a text editor and manually replacing all of the identifiers and filenames when creating a new Quartz Composer Patch, I decided to finally figure out how to create a new Xcode template. [more...]