I need to build an application on Mac OS X that runs on the background, windowless and provides a status icon in the top-right corner of the menu bar. It should launch on a specific action initiated by the user (not at system start up) and interact solely through the status bar icon.
On Windows this is very close to Services, on Unix -...
How can I compile and run Qt programs using Qwt on Mac OS X?
I always get an error telling me that it can't find libqwt.dylib. For what I have understood from my googling it won't help to set DYLD_LIBRARY_PATH in environment.plist since Apple has disabled that due to security reasons so how am I supposed to do it (without manually copy...
Let's saying the user is currently on Chrome. So I have a HUD that is invoked by a global hotkey, the user then types something into it and on clicking Close or OK, the HUD goes away (just using [NSPanel orderOut:]) but my application is still focused (i.e. the Menu bar of my application is still visible). But I want the focus to go back...
I need to have the callback or some event handler which can help me, know front process is changed.
Mac: C++/Carbon.
Any help is highly appreciated.
Thanks,
Rahul
...
I made an application that parse the iTunes library to retrieve its content. It works fine in most cases but if a user moved his library somewhere else than the default iTunes folder (see: http://lifehacker.com/238296/ultranewb--how-to-move-your-itunes-library-to-an-external-drive), then I need a way to find this path.
On Mac, I was loo...
I have some file writing code that works as expected, but prints an error on Debug mode, no output errors in Release.
Code:
#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
using namespace std;
int main (int argc, char * const argv[]) {
string cppfilename;
std::cout << "Please enter the filename to...
Looking for something on Mac Os and Linux mostly, and GUI, not just the command line tool.
Anybody has experience using Syncro SVN Client http://www.syncrosvnclient.com/ ?
...
I'm mainly write iPhone apps but am familiar with some desktop Mac authoring. I need to create a Cocoa app that will include several wav sound files (included in bundle). I don't want a user viewing package contents of the .app file and then extracting all of the sound files from it. Is there a way to protect those files?
...
Hello,
A Facebook Sync app filled the address fields of my Mac Address Book contacts with their cities. Having tons of people who have useless addresses makes it difficult to search by people on Google Maps app (ending up scrolling through many many people- I only want to see those who have proper addresses entered).
I want to clear al...
I'm running a database server in a Linux VM (Ubuntu 9.10) under VMware Fusion, but coding Django on the Mac side. Installing mysql-python requires that MySQL is installed on the Mac for compiling _mysql.so into site-packages.
However, after this is done, I have no further use for MySQL on the Mac side, and would rather just delete it. O...
Hi, I'm developing a CoreData non-document-based app. The SQLite store size is regularly of order ~60MB, and it's cumbersome that Time Machine backs up the entire database once per hour. Is there a way to make Time Machine back up only the changes?
I'm thinking of abusing the CoreData external records API for spotlight
and let the mach...
[Distilled from this question, with less informality.]
What are some things a new Cocoa programmer should write as sample projects, outside of the hand-holding of a tutorial?
Let's have one project idea per answer. If you have multiple ideas to suggest, post multiple answers.
It'll help for you to also list what Cocoa concepts your pr...
The following Fortran code is giving me a bus error on my Mac but no errors when I run it on my Linux machine:
PROGRAM TINY
WRITE(UNIT=*, FMT=*) 'Hello, world!'
END
My understanding is that a bus error occurs when the program attempts to access impossible memory but I do not understand where such an attempt has been made in this...
Hi
I asked this previously but Jeff Atwood moved my question to superuser.com. I need a answer programatically...
I want to use built in speakers and usb speakers simultaneously on MAC OS X 10.6.
I want to play different files on these (I do not want to play same file on both speakers).
Is it possible using cocoa (QTMovie or somethin...
I'm developing a desktop application using Java. I want to put an icon (with a contextual menu) on the system tray (called Menu Extras in Mac Os). Java 6 comes with support for doing this in Windows and Linux, but it doesn't work in Mac Os.
I have seen some applications doing what I want in all three operating systems (e.g. DropBox), bu...
i am using FF as the main testing platform and Chrome (for Mac) as the secondary.
I just noticed that Chrome is showing ~20px off positioning for CSS. (just to be clear Chrome is showing the TEXTAREA ~20px down as compared to FF)
Also Chrome is not obeying the width CSS property for TEXTAREA.
Is it just me or everyone is having this pro...
I'm reading NSFileHandleReadCompletionNotification messages from the NSNotificationCenter to receive messages from an NSTask. The problem is that the command line program I'm calling is relatively slow to output lines, and it seems that the NSFileHandleReadCompletionNotification message gets posted relatively infrequently (I guess when t...
I'm Delphi programmer and very new to Cocoa.
at first I tried this :
-(void)awakeFromNib
{
int i;
NSString *mystr;
for (i=1;i<=24;i++)
{
[comboHour addItemWithObjectValue:i];
}
}
But it didn't work. Then I tried to search on Google but no luck.
After experimenting about 30 min, I come with this:
-(void)awake...
I'd actually just like to know the number of mouse buttons a laptop has (Apple: 1, Hackintosh: 2), but I'm guessing the answer to this would be interchangeable with the answer to the more general question above.
Edited to clarify about counting built-in mouse buttons:
I'm aware you can use an external two-button mouse or control-click, ...
I want to find which applications are running, particularly I want to know which one has a window that has focus. So at any given time I want the app to know which application the user is actively working with. I can't figure out how to determine which app is selected, I can only see which window they are using in my app using keyedWindo...