So I'm going nuts trying to figure this one out. Here's my basic setup:
I'm compiling a shared library with a bunch of core functionality that uses a lot of boost stuff. We'll call this library libpf_core.so. It's linked with the boost static libraries, specifically the python, system, filesystem, thread, and program_options librarie...
itunes asked me to upgrade my iphone's OS to 3.1.3, so I complied naively.
then xcode told me that the latest iphone OS version it could support was 3.1.2. So I went to download a new version from https://developer.apple.com/iphone/index.action#downloads, xcode 3.2.2 with iphone SDK.
but when i went to install that, i was told I neede...
OpenGL is acting very strangely for some reason. In my subclass of NSOpenGLView, I have the following code in the -prepareOpenGL method:
- (void)prepareOpenGL {
GLfloat lightAmbient[] = { 0.5f, 0.5f, 0.5f, 1.0f };
GLfloat lightDiffuse[] = { 1.0f, 1.0f, 1.0f, 1.0f };
GLfloat lightPosition[] = { 0.0f, 0.0f, 2.0f };
quality = 0;
zCoo...
I have an image with tiles that I am splitting up and creating individual tiles with.
However, these images typically contain completely blank areas (tiles in this case) that I wish to exclude. These areas are completely transparent.
Now, how do I go about detecting them? Could read the tile pixel by pixel, by way of NSBitmapImageRep...
I'm working on a library which implements the actor model on top of Grand Central Dispatch (specifically the C level API libdispatch). Basically a brief overview of my system is as such:
Communication happens between actors using messages
Multicast communication only (one actor to many actors)
Senders and receivers are decoupled from o...
Is there any benefit to developing on a case sensitive file system?
I recently heard that Adobe products do not run on case sensitive file systems. Is developing on a case-sensitive file system the simplest way to avoid such problems?
...
I'm trying to change the install path of a dylib after it has been build. I use "otool -L" to check what the current path is. And then I do:
$ install_name_tool -change /my/current/path/libmine.dylib /my/new/path/libmine.dylib libmine.dylib
I don't get an error, but nothing changes. If I check the path again the old one is still there....
I get this error when I try to import ssrc.spread:
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ssrc/_spread.so, 2): Symbol not found: __ZN17ssrcspread_v1_0_67Mailbox11ZeroTimeoutE
The file in question (_spread.so) includes the symbol:
$ nm _spread.so | grep _ZN17ssrcspread_v1_0_67M...
I'm receiving drag'n'dropped files in my WxWidgets application via the common wxFileDropTarget manner.
In windows, a file can be dropped anywhere on my window, however in OS X only if I drop the file over a blank area of the window does it work.
I'm doing the SetDropTarget to my main window and would like to avoid having to do this to ev...
I'm trying to whip up a simple little Status Bar Application in Obj-C/Cocoa.
So I have done it pragmatically - declaring an NSStatusItem, adding it to the NSStatusBar and then giving it a NSMenu object. A bit like this...
NSStatusBar *bar = [NSStatusBar systemStatusBar];
theItem = [bar statusItemWithLength:NSVariableStatusItemLength]...
Hello, I'm having problems with macOSX and virtualenv. It seems to ignore --no-site-package.
Using exactly the same commands with linux (archlinux) it works. It it macOSX 10.5 with python 2.5
curl -o virtualenv.py 'http://bitbucket.org/ianb/virtualenv/raw/tip/virtualenv.py
Create a new environment
python virtualenv.py --no-site-packa...
I'm using Xcode 3.2.2 and the built in OCUnit test stuff. One problem I'm running into is that every time I do a build my unit tests are run, even if the build failed. Let's say I make a syntax error in one of my tests. The test fails to compile and the last successful compilation of the unit tests are run. The same thing happens if ...
I'm developing an application for the Mac, and I'm wicked new at this - what would be the best way to distribute the Qt Framework so that I'm not impacting an already existing framework, and so that my App.app picks up the libraries. I'm also using boost, so I'm curious how a simple bundle works with libraries.
...
I have a java application which has a tray icon in the top menu bar of
OSX. When I minimize the application I would like it to disappear from
the dock and the command-tab application switcher and only be in the
tray. I've seen other OSX applications do this, so I do believe it is
possible, but as a newbie to OSX I have no idea how to ach...
Just to make one thing clear, it's not completely a programming question but a programmer might know what's wrong:
Messed up my gem installation. If I execute "gem list" or any other gem command, I get
/Library/Ruby/Site/1.8/rubygems.rb:956:in `use_paths': undefined method `join' for #<String:0x101786480> (NoMethodError)
from /Librar...
I'm relatively new to OSX programming (i.e. really new) and I find
myself in need of creating a Contextual Menu that ties into Finder.
From what I've read here as well as online, this is only possible
through the use of Services in Snow Leopard. I found the Apple
Developer guide at
Apple Services Implementation Guide
But it's not suffi...
I have created an application that is capable of playing audio files. This in itself works fine, and so does drag&drop from finder to my application.
What I would like as well, is that people can use my application from Finder using the Open With menu (or even allow them to set my application as default for a certain file type)
After a...
Hi - this is quite a basic OSX/cocoa question.
I come from an iPhone OS development background. I'm now trying to write apps for OSX, but I don't understand where cocoa on OSX decides where the program gets control.
I can see the main function, but where does program control go from there? Say for example I want to programatically cr...
I'm not sure if this is the best way to do this... but... I need to get the date/time since:
Midnight at the start of today
Midnight at the start of the current week (Sunday)
Midnight at the start of the current month
Midnight at the start of the current year
I use the NSDateFormatter:
[df setDateFormat:@"yyyy-MM-dd 00:00:00"]; strDa...
Does the QTKit Capture API support screen recording- i.e., can I specify the current screen output as the input source to record? If so, how?
Quicktime Player X supports screen recording, yet the QTKit Capture API Documentation only mentions capturing from external cameras.
...