Posted by smokris on 2007.07.10 @ 16:47
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...]
Posted by smokris on 2007.07.05 @ 13:26
Making pop-up menus in custom Quartz Composer patches is actually surprisingly easy.
Please see kineme.net for Leopard-specific informations.
- Set up a QCIndexPort input. QCIndexPorts provide values from 0 to whatever max you specify using
- (void)setMaxIndexValue:(unsigned int)max;.
Posted by smokris on 2007.06.29 @ 17:02
Here’s a new version of the Xcode Template for Custom Quartz Composer Patches.
- 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.
Please see the latest version.
See the old version’s blogpost for some additional instructions and user comments.
Posted by smokris on 2007.05.20 @ 12:08
Posted by smokris on 2007.05.16 @ 22:18
Posted by smokris on 2007.05.16 @ 17:51
I took Martin Kahr’s Apple Remote Controller Wrapper Class and built a Quartz Composer patch around it.
Leopard (10.5) includes a built-in Apple Remote patch.
Please see also kineme.net for Leopard-compatible patches.
- The events received from the Apple Remote are fairly strange to begin with.. You don’t simply get “key down” / “key up” events as I would have assumed, but instead get cooked events — for many of the buttons, holding the button down generates a different event than tapping it.
- My patch queues events, to ensure that each keypress is visible for at least one frame.
Posted by smokris on 2007.05.13 @ 12:03
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:
Posted by smokris on 2007.05.13 @ 11:52
Posted by smokris on 2007.05.12 @ 01:12
I use PINE as my email client.
“Why are you living in the late 1970s?” you ask.
But I’ll refrain from answering that question for now. And I’ll even refrain from correcting you in that PINE wasn’t available until 1989.
And, so, in fighting the ongoing war against email, I tend to spend a lot of my day interacting with Mac OS X’s
Terminal.app. I SSH into one of our Fedora Core Linux servers and run PINE there.
The default keybindings used by
Terminal.app leave a bit to be desired, however [more...]