I've been trying to write a shell script to travel a directory tree and play every mp3 file it finds. afplay is my utility of choice, given that I am on a mac. However, afplay only takes one argument at a time, so you have to call it over and over again if you want it to keep playing. It seems like the simplest solution would be as follo...
In the recent hype over iPhone App programming, I got my hands on a MacBook. I have an idea for a program. Can I just write it in Objective-C and distribute it, or must I register with Apple Developer Connection?
Does the OS X development / distribution process require Apple censorship like the iPhone does?
...
I have a brand-new off-the-cd OSX 10.6 installation.
I'd now like to compile the following trivial C program as a 64bit binary:
#include <stdio.h>
int main()
{
printf("hello world");
return 0;
}
I invoke gcc as follows:
gcc -m64 hello.c
However, this fails with the following error:
Undefined symbols:
"___gxx_perso...
I've looked through the site to make sure this isn't a duplicate. Apologies if I've missed something.
I've been doing iPhone development for about a year now, and I'm comfortable with Objective-C, Xcode and Cocoa (at least what's used on the iPhone), but programming for OS X seems much more involved.
What are some good free resources f...
The boost::asio package contains classes for doing asynchronous file io in Windows using IO completion ports. To my understanding, there is no support for asynchronous file io for other platforms included in the asio package.
I am wondering what would need to be done in order to extend asio with asynchronous file io support for at least...
I'm trying to create a network packet inspector.
I know you can do this with libpcap, but it's not a sniffer, i need to forge network packet, before it was sent on network. (sending via socks server)
I found 2 ways to do this :
Using an NKE. (Network Kernel Extension)
Using a DYLD_INSERT_LIBRARIES to insert a library to hook network...
My application uses SDL library.
For enter to fullscreen mode I use SDL_SetVideoMode and appropriate flag - SDL_FULLSCREEN.
Problem:
When application is in fullscreen mode, I can't call "force quit" dialog and switching between other applications.
After Cmd+Option+ESQ clicking my application is quit instead of "force quit" dialog is app...
(This is not a question about KVC/KVO and key-value bindings.)
I'm writing an application with a "tools" panel. Every tool can be selected using one-letter key (like "M" - "Move tool"). Tool can be selected even when there is no main window and the tools panel is not selected (not being "key").
Docs say that raw key events are not prop...
The following code:
gb = self.request.form['groupby']
typ = self.request.form['type']
tbl = self.request.form['table']
primary = self.request.form.get('primary', None)
if primary is not None:
create = False
else:
create = True
mdb = tempfile.NamedTemporaryFile()
mdb.write(self.request.form['mdb'].read())
mdb.seek(0)
csv = tempfi...
I keep getting this error any time i call any page that has a call that uses RMagick, but i can't figure out what library i'm missing, or what i need to install to get rid of this error. Does anyone have debugging suggestions?
Processing SimpleCaptchaController#simple_captcha (for 127.0.0.1 at 2010-01-14 14:24:24) [GET]
Parameters...
I have been trying to setup the OpenGL and GLUT libraries in Eclipse, with CDT, on OS X with not very much success. I cannot seem to get eclipse to actually realize where GLUT is. It is currently giving me the error that I have an unresolved inclusion GL/glut.h. Looking around online I found that I should be using the -framework GLUT fla...
Hi,
i was looking for a virtual machine players that i can run in mac osx. I looked vmware website and virtualbox and they dont have binaries to mac osx. I have to do kernel based development and i dont want to develop in my own machine.
...
Good morning
I've got Windows Vista and Windows 7 here.
I intend to create an IPhone application which connects to my website in order to read and show some database records.
I cannot afford a Mac Mini or buying expensive hardware and software.
I was wandering if it's legal and possible to create IPhone applications, running Mac OS ...
I am currently debugging a crashlog. The crash occurs because the vtable pointer of a (c++-) object is 0x1, while the rest of the object seems to be ok as far as I can tell from the crashlog.
The program crashes when it tries to call a virtual method.
My question: Under what circumstances can a vtable pointer become null? Does operator...
After upgrading to Snow Leopard, I found that installing some gems no longer worked, including webrat, mechanize etc. Each time I get this error:
checking for xmlParseDoc() in -lxml2... no
libxml2 is missing. try 'port install libxml2' or 'yum install libxml2'
*** extconf.rb failed ***
Could not create Makefile due to some reason, pro...
I'm building a simple Cocoa app and I want to direct the audio output to a specific device, instead of the system selected one. I know some apps, like Skype, let you select where to send the output to. How do they do this?
I tried the MTCoreAudio framework but I can't even compile my app (or their AudioMonitor demo) with it included and...
i am currently starting to learn Xcode and objective-c and i am reading three different books on that topic currently. All of these books refer to a file called "AppDelegate" (My_First_ProjectAppDelegate.m, My_First_ProjectAppDelegate.h) which are said to be "created with the Project" (i am creating a "Cocoa Application"). These files ar...
i was wondering what the best practice is for creating a contextual menu item that would work in both leopard and snow leopard and works with a selection of files and/or folders, sending them to a shellscript.
i know that the contextual menu items have been deprecated in SL - but does that mean there is no way to create a solution that...
I want to distribute a Rails application within a .app package, so it can run from 10.4 to 10.6; is there any howto or hint on how to do that? Especially the following things make me twist my head:
I want to repackage the app with Ruby 1.8.6, so it would run even if there is an older version of Ruby installed on the system (such as 1.8...
I wanted to setup SVN repository on a network machine running Mac OSX 10.4. I downloaded and installed subversion from HERE.
I installed the package, and in order to call the Subversion commands from every directory, i followed the following instructions:
Open Terminal.
Enter following command.
$ pico .bash_profile
Add the followin...