I look at a lot of small Java programs. It would be convenient if I could set up a directory (or directory structure) on my Mac where any time I add a .java file, javac automatically runs and attempts to compile that file. I've briefly looked into Automator actions, but found nothing that fits the bill. Then I got to thinking: on my PC, ...
Hi guys,
I'm developing both a Java app and J2EE webapp using Eclipse Europa on Mac OS X 10.5.8. The webapp provides a RESTful API layer for the Java app I've written. I'm running the webapp using tomcat from inside Eclipse.
It seems like there are some serious performance issues and I would like to use a profiler to narrow down on th...
I am looking for a solution to programmatically return all available serial ports with python.
At the moment I am entering ls /dev/tty.* or ls /dev/cu.* into the terminal to list ports and hardcoding them into the pyserial class.
...
I'm working on a Core Data application. I'd like to create interfaces on both the Mac and on iPhone, with both sharing the same model code.
Is it possible to set up an Xcode project to have both OS X (x86_64 10.6) and iPhone targets? Or is there a better way to do this?
...
It was suggested that I use this line of code to call an image from my resources folder/project bundle. I also see it being used exactly like this on many different website tutorials.
NSBundle *mb=[NSBundle mainBundle];
NSString *fp=[mb pathForResource:@"topimage" ofType:@"PNG"];
NSImage *image=[NSImage initWithContentsOfFile:fp];
...
Hello good people
This is my first real development with the mac os(OS X 10.5.8).I got a macbookpro from work and i'm still setting up the right development environment.I've opted for the creation of /etc/launchd.conf and it's working fine for most of my librairies (JAVA_HOME, JRE_HOME)
i now need to add CATALINA_OPTS=-Duser.timezone=Asi...
hello people
i'm struggling with a mac os x 10.5.8 that i've started using recently for development.i successfully installed tomcat and create launchd.conf for my environment variables.i believe it works fine.coz i can build a project with netbeans using maven and cargo plugins succesfully so i found online a script for start and stop t...
I'm running Tomcat6 locally on Mac OS 10.5.8. Our staging and production servers have setup an environment variable of:
LANG=en_US.UTF-8
Stage and production run on CentOS and read this value in when java and Tomcat starts up. However, it doesn't appear that java is reading this value and is defaulting to en_US_ISO_85591. On my local ...
I can get a mouseExited event sent to different NSView than the mouseEntered event
Scrolling with the scroll ball (or wheel) over a collection of subviews within a scrollview I sometimes do not get a mouseExited event sent to the view that the mouseEntered event was sent to.
I'm trying to show a button only when the mouse is over the v...
I would like my application to look similar to that of the Windows version: instead of the menu being displaced to the top menu in Os X, I'd like my program to have the file menu right on top of the application itself.
I've looked at the Qt documentation regarding this, but I can't seem to create an empty QMenuBar as the top level QMenu...
I want to start using Core Date on iPhone with pre-existing MySQL databases. What's the easiest way to transfer a MySQL database to SQLite?
I've tried using SQLite Migrator, but I don't know where to find the ODBC drivers for Mac (Snow Leopard). I found http://www.ch-werner.de/sqliteodbc/ which seems to have drivers, but they are for Po...
I'd like to customize the way I draw the window title bar on OS X. Specifically, I'd like to do something like the Twitterrific app where there is a custom close button, no min/max buttons, and the window title text is right-justified. Unlike Twitterrific, I'm not looking to custom draw the entire window (though I'm not completely oppose...
Hello good fellas
i've posted a similar question here sometime ago and found the solution by downloading the new eclipse 3.5 (galileo).i believe this is a difference case since
1- i'm on a macbook pro now os x 10.5.0
2- using the springsource tool suite 2.2 (which is base on eclipse galileo 3.5.1 i think)
i registered tomcat successful...
Hi, is there any objective C API or object that can give me access to the iCal and its events?
I need to read the calendar events for a given date and optionally set a new event.
The code is either plain C or objective C (in the GUI version of the program). I'm using xcode on a mac os 10.6.
Sample code is greatly appreciated.
...
Have got an
NSString *str = @"12345.6789"
and want to find out if there is that "." character inside of it. I'm afraid that there are ugly char-encoding issues when I would just try to match an @"." against this? How would you do it to make sure it always finds a match if there is one?
I just need to know that there is a dot in ther...
For example, I have an NSDecimal myDecimal. Lets say it represents something like "-1234567.89"
How can I get a clean string representation of that decimal without any beautification / formatting? No localization? Floating point symbol = . and rest only numbers from 0 to 9, and eventually an - if it is negative? I need that string in st...
I'm trying to develop a simple text-based hangman game, and the main game loop starts with a prompt to enter a guess at each letter, then goes on to check if the letter is in the word and takes a life off if it isn't. However, when I run the game the prompt comes up twice each time, and the program doesn't wait for the user's input. It a...
Hi all,
I'm trying to write a simple stock check program, and I have a Table View binded to Core Data. The table has 3 columns: Model, Price and Quantity In Stock.
I have a NSTextField and a NSButton underneath this, so that the user can enter the quantity they wish to buy, and when they click "add to cart", the program should fetch the...
I am writing an app, where a socket is connecting to a host and downloading a file.
The application runs in Mac.
Now, while the app is downloading, if I put the MacBook in sleep mode for more than 10 minutes, 60% of the time the app hangs when the computer wakes up.
The stack trace shows that, it has hanged in the "read" call. I am abl...
Hello good fellas
this week i poste on stackoverflow about a script to start/stop/restart tomcat on a mac. i got it working finally but apparently springsource tool suite (based on eclipse galileo 3.5.1) can't publish to it. so i thought it's eclipse bug.I started suspecting tomcat itself after i tried with netbeans 6.7.1 (i've always w...