osx

install java se 6 on a mac without software updater

hello guys i've come from a very long issue where i was obliged to remove the /System/Frameworks/JavaVM.framework/Versions/1.6.0 and the 1.6. now i downloaded the JavaForMacOSX10.5Update1, because it's not available anymore on the software updater, and run it.Now i can't find it in /System/Frameworks/JavaVM.framework/Versions/ where i'm ...

Is it possible to make localhost work through a Virtual Machine?

I am using a Macbook running 10.6. I am using VMware Fusion to run an Ubuntu Server minimal virtual machine. Ubuntu Server is running your basic LAMP stack. I do my development in Mac OS. I have VMware share a directory from Mac OS to the Ubuntu Server. Ubuntu Server uses that directory for apache. I access my server is Mac OS in...

CSS: How to increase the size of a OSX submit button

How do I increase the native FORM submit button size for OSX-Safari? I want to keep the native look of a FORM submit button for it's respective operating system while also enlarging the size of the submit button. (Meaning, no use of images, custom borders etc..) Using the following CSS: input.submitbutton {font-size:150%;} On Window...

Cocoa: Return to previous active application?

Hi, is there a way to capture application that was previously active, before my application was brought to front by user? I've tried to this in applicationWillBecomeActive: delegate method, but my application is already mark as active. Thanks. ...

Removing url fragment from NSURL

I'm writing a Cocoa application, which uses NSURLs -- I need to remove the fragment portion of the URL (the #BLAH part). example: http://example.com/#blah should end up as http://example.com/ I found some code in WebCore that seems to do it by using CFURL functionality, but it never finds the fragment portion in the URL. I've encapsu...

intercepting keystrokes in OSX

I'd like to be able to listen to keystrokes systemwide in OSX to implement an utility like AHK on windows (the shortcuts part of AHK anyway), recognizing not only simply combinations of keys, but even more complex things like sequences etc.. I need someone to point me... where to start? How to listen to keybard events system wide? Maybe...

Getting started with cronjobs on a Mac.

I'm trying to get familiar with cron jobs, and I think I get the basic idea (scheduling, syntax, etc), But, I can't seem to get it right on my mac with Terminal - where exactly do I find the Crontab? How should I reference the paths to scripts? What I'm trying to do is hit a php script on a remote machine (http://...) - Is that possible...

Error running new gwt app in hosted mode, OS X 10.6

I just created a new project using webAppCreator from GWT which worked fine. However, when I try to run ant hosted it fails with the following output: [java] On Mac OS X, ensure that you have Safari 3 installed. [java] Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load required native library 'gwt-ll'. Detailed...

How to REINSTALL Java 6 on Mac OS X Snow Leopard

OK, I am idiot and messed with my Java install trying to get Resin to work. Now, things are broken. I figured I could just reinstall the developer tools that came with my new Mac (brand new 13" MacBook Pro) and that would take care of it. Alas, I was wrong. Snow Leopard comes with Java 6 JRE and JDK but as far as I can tell YOU CANNOT ...

Good Search Tool?

Does anyone have a good search tool for OS X? I am looking for a way to search entire large directories for information in files (.g, .cpp. .txt, other txt with different extensions) and then globally replace and manage. I have a huge code base where I have to do a lot of replacements and XCode is bombing, TextMate cannot handle some ...

copy+paste from eclipse to flash does not work

When I try to copy code from eclipse and paste it in the actionscript editor within Flash (CS3 or CS4) nothing gets pasted. Flash does detect there is something on the clipboard and does try to paste, but no content is added. I can copy paste from eclipse to all other pieces of software running on my computer that have some form of inpu...

Cakephp console (bake) on Mac OS with Mamp : database connection error

Hi I am trying to do the Simple Acl controlled Application tutorial in the cakephp cookbook. The idea is : Making Databases CREATE TABLE users ( id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, username VARCHAR(255) NOT NULL UNIQUE, password CHAR(40) NOT NULL, group_id INT(11) NOT NULL, created DATETIME, modified DATETIME ); ...

OS X: Do sections in the __TEXT segment get modified by other programs?

Hi, Does it happen that some program (or even the OS itself) changes the contents of an executable's __TEXT segment, for whatever reason? Note: Here, I'm referring to the "__TEXT" segment, not the "__text" section. In other words: can I rely on bytes in the __TEXT segment of my executable to detect whether my executable has been da...

Is there a tool to diff/merge/sort localizable strings files?

Localizable strings file which are used for Apple/iPhone apps localization have the following format: /* COMMENT */ "KEY" = "VALUE" Note that KEY is unique in a given strings file. COMMENT is optional however it can help the translator with some additional info. Example: /* Menu item to make the current document plain text */ "Make ...

Cross browser test

Hello, I use Windows OS, how can I test websites in safari (Mac OS), it's possible to test online or another way ? Thanks ...

JOGL and Snow leopard

Hi everyone, I'm having some major issues with getting JOGL to work on snow leopard. I've installed all the necessary JOGL jars in /system/library/java/extensions I can get sample code to compile but when I attempt to run it it throws the error following error on trying to actually display the window. Exception in thread "main" jav...

GWT + OSX = SWT issues

I'm new to GWT development and I'm putting myself through the paces with Google's tutorial but I'm getting errors: java[10574:80f] [Java CocoaComponent compatibility mode]: Enabled 2009-11-06 15:27:38.769 java[10574:80f] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000 I checked my Java prefs and I ha...

Making a Cocoa App Pop Up a Widget instead of a Window

I have never made an app using XCode and Cocoa but I think following these instruction: http://developer.apple.com/Mac/library/documentation/GraphicsImaging/Reference/IKImagePicker%5FClass/IKImagePicker%5FReference.html I could easily make an app that pops up a window that allows you to push a button to bring up the IKPictureTaker, but...

Mac OS X port crashes in pthread_setspecific in glibstdc++ vsnprintf - how to troubleshoot?

I'm testing a Mac OS X port of my multithreaded server. It starts up, but it dies in vsnprintf soon after the first client request is taken by a worker thread. It seems that vsnprintf is trying to manipulate some thread local memory with pthread_setspecific. This dereferences a bad pointer. Then, gdb traps a dlopen call, gets an error,...

Does Apples UI define Drag&Drop in menus and/or context menus for menu items

I'm trying to update my GUI a little bit but don't want to run into porting problems later next year when a native Cocoa Port will be started. On Windows/Linux it is common to drag items out of menus or being able to right click on a menu item and display a context menu for this menu item. Is there anything like this on MacOSX. ...