As my iPhone app can run on both OS 3 and 4, I need a way to safely test for iOS 4 SDK features.
I like to avoid checking the [UIDevice ... systemVersion] string (I wonder why Apple failed to provide a numeric value here for easy testing, as it's available on OS X).
Anyway. The usual clean way to test for SDK features is to check if a ...
Is there an easy way to make an iPhone application communicate with a Mac app? By communicate, I mean able to control certain things within the mac application, like control a character on the monitor
...
Looking for a solution to quickly navigate to long paths in a shell (particularly Max OS X Terminal.app).
Say my path is ~/This/Is/A/Really/Long/Path/That/I/Would/Rather/Not/Type/Frequently
Instead of cd ~/This/Is/A/....
I would like to be able to store favorites/bookmark directories so I could do "cd myPath"
Are there any binaries o...
Hey! I have my Mac application set up to launch on myApp:// protocol is called in a browser, like Safari, but I cannot seem to be able to do an action when the application is called by that protocol. The delegate method would have to be something like:
- (void)applicationDidBecomeActiveByURL:(NSURL *)protocol;
I don't know this beca...
Hi
Anybody can help me with compiling mp4v2 on Mac OS X? I've tried configuring and compiling as per the instructions but I got a lot of errors originating from the C++ headers. The configure command was ./configure --enable-ub followed by plain make at the Terminal.
From the looks of the error messages, it seems that a number of hea...
How do I get the following process to work.
I create a blank new XCode project with a Console target.
If I build and debug it now, it prints "Hello World".
I add a new target to my project - I want a dynamic library. Add a .c file that contains at least some function so that building the dylib project produces an output file.
I right c...
Hello everybody,
I created an OSGi project in which one I've 2 projects :
- one plugin project : that contains my source files, my product configuration that uses my feature project and the feature org.eclipse.equinox.p2.ui.user. It means that my program is able to install new software or to update the program.
- one feature project tha...
I'm wondering if there is a diff API in Cocoa, I've attempted to google it but its not bring back any results that are useful.
If there isn't an API for this would it be better to call diff from /usr/bin/ or to write my own diff.
All I need it for is text-files with a possibility of branching out into binaries and folders later.
Thank...
I was reading the concept of OSX Services and it seemed very cool to me to have utilities like Dictionary, highlight-text-and-open-in-browser and a million other services that provide functionality based on what the user is currently doing.
I have heard it mention that this mechanism is more similar to how pipes work in *nix, rather tha...
Hi,
I have been trying to install tomcat-6.0.26 on my Mac OS 10.6. I followed these instructions:
1)Get the latest binary from here
2) Extract it to /usr/local
3) sudo vi /etc/profile and add the following settings
export JAVA_HOME=/Library/Java/Home
export CATALINA_HOME=/usr/local/tomcat
4)sudo chown -R nobody:nobody /usr/local/t...
There is a lot of talk about how to exclude, ignore, or delete .DS_Store files on macs. It seems these small files contain data about folders that is used by Finder:
http://en.wikipedia.org/wiki/.DS_Store
https://wiki.mozilla.org/DS_Store_File_Format
Has this information ever been put to use by a third party program?
...
I'm trying to make a simple HTTP sniffer (like HTTPFox) development testing purpose.
HTTPFox is good enough, but I should automate some kind of test. (No detail yet)
But I have no idea how to do this.
What kind of API or libs do I should use to do this on Mac?
Cocoa will be great but any lower level ways are welcome.
...
I've just been pulling my hair out trying to make Instruments cough up my deliberately constructed memory leaks. My test example looks like this:
class Leaker
{
public:
char *_array;
Leaker()
{
_array=new char[1000];
}
~Leaker()
{
}
};
void *leaker()
{
void *p=malloc(1000);
int *pa=new int[...
Hi!
I am migrating to OS X and now trying to use Xcode.
There is a project that was compiling and running normally on a g++ linux distro, now on mac it is returning a thousand of errors. I guess that the linux std files, somehow included others files needed and now they are not this connected in the std of Mac OS X.
How can I know what ...
I want to elevate my app's privilege to super-user.
Installer app supports this by displaying this dialog.
How can I show this dialog to elevate privilege?
PS.
I'm making a kind of packet sniffer application on Mac OS X. I'm using pcap lib. (which is part of tcpdump)
...
Although I have a feeling that this isn't technically possible, it's worth asking anyways. Is it possible to turn on the Macbook Pro's keyboard backlights for individual keys? I am working on a piece of grid-based software which allows the user to navigate around by pressing any key on the keyboard to position the cursor at that point ...
I've installed XCode v3.1.3 and am having difficulties using the rumored GCC that is installed along with it. -- I'm certainly able to use the XCode IDE to compile my programs but would like the flexibility of also using the command line...
Where's GCC?
...
Hi
In Xcode, suppose that there is a framework named Foo. Inside the Foo.framework/Headers folder there are files File1.h and File2.h. The header file File1.h includes File2.h via the following directive:
#include <File2.h>
The Foo framework is a re-package of a C++ library not specifically targeted for the Mac.
Now suppose I have...
In XCode, autocompletion has the first bracket appear on the same line:
if (<#condition#>) {
<#statements#>
}
Is there a way to have it appear like so, so that I dont have to change it every time?
if (<#condition#>)
{
<#statements#>
}
...
I am trying to create an application with the only purpose to implement a Applescript dictionary, and extend Applescript.
I have read of faceless applications (agents), but my application allows Applescript scripts to show some dialog boxes. What can I do to avoid my application icon appears in the dock when it is invoked by Applescript?...