How do you properly install the open source version of Intel Thread Building Blocks (TBB) on OS X 10.6? The open source version doesn't seem to have a proper install script.
http://www.threadingbuildingblocks.org/ver.php?fid=154
...
Hey guys,
I have a view that receives new data from a secondary thread. Every time it does, it should redraw itself. However, it doesn't play nice with the run loop, and after some time (it's non-deterministic), I end up getting <Error>: kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region messages in the console.
I'm not s...
I have cocoa application running on OS X. I have used NSLog for debugging purpose. Now I want to redirect the log statements to file instead of console.
I have used this method but it results logging in Console as well as in file.
- (BOOL)redirectNSLog
{
// Create log file
[@"" writeToFile:@"/NSLog.txt" atomically:YES encoding:...
I've made a screensaver which displays tables of statistics across a number of "screens" which it fades between. I've used only CALayers and implicit animation, but even so the animation is jerky at best; rather than a smooth transition there are 3 "jumps" between screens, one at ~5%, one at ~30%, then 100%.
Running top in a terminal fr...
Morning SO.
I would like to compile openCV to make it work on a webcam capture using Qt 4.7. For that purpose, OpenCV must be compiled for a 64bit system.
So, I've tried 3 compilations :
Compiling from the source with cmake :
sudo cmake -G "Unix Makefiles" .
it works, but I can't dump a video into a file using cvCreateVideoWriter ...
I am writing a MacFuse plugin, and would like finder to use the appropriate icons & launch the appropriate app when a file is opened.
It is not possible for me to add an extension to the file, so my only other option in Snow Leopard is the NSFileHFSTypeCode. I have reviewed all of the codes registered on my machine using http://www.rub...
Business as usual: I've logged into my Linux machine from my MacBook Pro using NX, opened a terminal, and ... key bindings with M- (Meta-) do not work. (Talking about bash, of course.) Wait for it. I'm using a PC keyboard hooked up to my Mac (I cannot work on a cramped laptop keyboard). So I decided to investigate: used xev to capture ev...
I recently switched to a macbook. I miss the right control key and my little finger started to ache and thus I mapped my Cmd to Ctrl inside emacs alone and I've mapped Caps to Ctrl and Ctrl to Caps system-wide.
Does anyone have a better config before I get used to this ? What is yours? I'm particularly interested in the keyboard mapping...
Hi,
I normally program on Windows, but I got a macbook pro from my school, so I'm trying to make an OpenGL app for OSX. I downloaded and installed XCode, but I have no clue how to get a simple OpenGL app going. I would prefer not to use Objective-C, but I definitely don't want to use GLUT. Can someone point me in the right direction?
...
I've got a super simple little OS X app with a minimal embedded webkit view that needs client-side SQL database support enabled. I've put the test app up on github but just can't get the client-side storage working.
I'm using Xcode v3.2.3 with the WebKit framework it provides, but have also tried using the webkit nightly without luck.
...
Novice programmer asking first question on stack-overflow. I am writing an app for mac osx that monitors for text selection ie when a user does a double click on some text. The text can come from a browser or text editor, etc. The goal is to capture the text and do some processing on the text.
I been reading about the mouse and curso...
Hi,
Is it possible to gzip a folder with 50 files and extract it in iPhone ?
...
I have a product for which I invoke "strip" upon the executable at the very last step of build. The executable is linked statically with several static libraries (not third-party, all written by our team).
When the product is crashed, the function names from some static libraries still appear in the crash logs, while the names from some...
How can I execute a command when user press a key in a command-line C application? Is it possible when window isn't focused
...
I need some function to atomically get int value. Something called OSAtomicGet(). Analog of g_atomic_int_get().
...
Maybe you know any analogs of g_quark_from_string() and g_quark_to_string() in CoreFoundation or other frameworks?
...
Hi,
I have started with Ruby app development and I see that there are many Ruby Gems which don't work on 64bit (which I have installed right now). Their moderators have suggested to use 32bit build for Snow Leopard(10.6).
I went to Ruby's website, but didn't find a separate installer for Ruby 1.9.2 for 32bit 10.6
So, how do I fix it? ...
I want to address the following annoyance with iTunes: After I have searched for a track (by pressing cmd+opt+f to move to the search field) I want to be able to play the first track in the songs list. Ideally I would like cmd+enter to start playing the first track in the song list and also move the focus to the song list. For example ...
I was just wondering where the /File/System/Location/ of a users current wallpaper is stored in OS X 10.5. Something like how the default login windows wallpaper is stored at /System/Library/CoreServices/DefaultDesktop.jpg
...
I am trying to write an iTunes script that takes the selected tracks, moves the files to a different folder on my hard drive, and then update their location in iTunes.
The overall flow will be something like this:
Get selection
Determine path to selection
Move items to destination
Update referenced path in iTunes
I used the suggesti...