I have an existing project that has been managed under git. I recently had to do a ground-up rebuild of the computer (OS X Snow Leopard), and returning to the project, git can track the changes in the project, but I can't save anything to git. I get the error in the title when I try :
Dans-iMac-335:[app-name-obscured] apple$ git add app...
What's a good book for learning Quartz in Objective-C? I thought about buying this book: Quartz 2D however, a reviewer said it's written mainly in C (I only know ObjC). So does anyone have any recommendations?
...
I am developing a program on OSX 10.6.4 (Snow Leopard), and I want to be able to run the compiled product on other Intel Macs, some of whom may not have XCode isntalled.
To simplify things, I first wrote a Hello World program.
#include<stdio.h>
int main() {
printf("Hello world!\n");
return 0;
}
If I compile it as
gcc -static...
I am now profiling an application, who does a lot of disk I/O.
At this point, I want to know how much time is spent on disk I/O. So that, I could make a comparison between I/O and the whole execution time, in order to decide the next target of optimization.
In short, I am seeking tools or methods to:
Calculate and summary the total t...
I want to completely remove Python 2.7 from my Mac OS X 10.6.4. I managed to remove the entry from the PATH variable by reverting my .bash_profile. But I also want to remove all directories, files, symlinks, and entries that got installed by the Python 2.7 install package. I've got the install package from http://www.python.org/. What di...
For instance, this AudioUnit has to connect to a host through the network, and the hostname has to be configured in a Cocoa View, and has to be saved so that reloading the project restores the hostname.
How would you do that (interface + parameter saving, apart from the network thing of course)?
...
I would like to install Python 2.5.5 to use with Google apps but have been having a very hard time tracking down instructions on how to do so. I am thinking the following might work but was wondering if anyone had successfully built it?
./configure --prefix=/usr/local/python2.5.5 MACOSX_DEPLOYMENT_TARGET=10.6 --enable-framework --with-u...
I'm trying to use the Boost Libraries ... but to no avail. I attempted to follow the Getting Started tutorial on Boost's website (for Unix Variants), but having problems along the way.
I compiled the libraries into a directory in my Downloads folder:
/Users/myUsername/Downloads/boostCompiled
When I use the full path to the library .....
How can I call SDL functions from C++ in OS X without a main method? I'm building a dynamic library that does the initialization. The application that calls it depends only on the library.
I realize that I need to somehow create an autorelease pool in Objective-C, because SDL_Init() crashes as it's now, but I don't know how. SDLmain cre...
I'm looking for ways to reduce the wasted time spent to open all the applications needed, position windows, open urls/files/change directories/etc. before actual coding starts.
In the perfect world there would be 2 buttons marked 'SAVE STATE' and 'RESTORE STATE' per 'project'. The kind of feature you find in some games.
I'm on a mac an...
Hello, I am having trouble making this work and am looking for some help.
Currently i have a file dumped into my directory every day with the date as the file name (say "100928.zip") and I am trying to setup a cron job to unzip it but figured i'd test it first.
Using OSX Terminal.
This is what I am doing....
iDate='date +%y%m%d';
unz...
Note the capital S on sleep.
Note, Sleep with a capital S is a standard function that sleeps milliseconds on the PC.
On the mac, under OSX, there is no such symbol.
But the xcode+linking environment seems to find something to link it
to ...and I'm betting I won't like the answer.
...
I wrote a simple Mac OS X application to edit the notes of my Mac Address Book contacts. The program looks like this:
Single screen:
| ABPeoplePickerView on the left side || NSTextField on the right side |
I've hooked up notifications so that whenever the selection in the ABPeoplePickerView changes, the text field gets updated and s...
I get a slightly heisen error from eventmachine (0.12.10, on OSX 10.6.4):
terminate called after throwing an instance of 'std::runtime_error'
what(): no loop breaker
It only occurs in tests, and only when all tests are run together. Run individually they pass.
I spotted the only place in the eventmachine code that mentions the err...
Hi,
how can I activate an application and make it open the "standard" window as if I would have clicked on the dock icon with applescript?
E.g. I am in iTunes, close the window with command-w open another application and then I click on the iTunes dock icon and iTunes becomes the frontmost application and opens up it's "standard" iTune...
Here's the setup:
I have a NSView which is a CALayer-backed view, and contains many CALayers. I have a CALayer for the 'background' of the view, and many small CALayers which are sublayers. Sometimes this view can be very big (as large as 2560x1400), and when it does there is a very noticeable lag in the CALayers. My guess is that Core ...
I am planning to write an application (C/C++/Objective-C) that will
play media files in own (private) container format. The files will
contain: multiple video streams, encoded by a video codec (like
XVid or H264, it is supposed, that components capable of decoding
the viideo formats are present in the system); multiple audio
streams in s...
I've got a cocoa app that needs to do some work in a second process (because it might crash due to buggy libraries). I'd like to keep my project as simple as possible, so ideally I would use the same binary as the parent process and just control the child with command line parameters. It would also be nice if the parent could get handl...
I'm developing an application (download manager-type) on OS X that I would like to integrate with the major Mac browers (Safari, Firefox, Chrome, Opera, Camino) via the Mozilla plug-in API, NPAPI. I have a basic understanding of how to register my app on the Mac to handle specific URL's and file types (via the Launch Services API, the in...
I've created the simplest Automator Folder action.
1) Folder action receives files and folders added to TargetFolder
2) Copy Finder Items To: DestinationFolder, checked Replace existing files
I then verified that the folder action was assigned to the folder by viewing Services -> Folder actions setup...
The action worked once and then ...