I would like to implement Mac OS X native printing in my Java desktop application.
That is, this print dialog when the user chooses to print:
which then expands to a dialog such as this:
As I understand it, native Mac OS X applications can customise the 2nd dialog by adding an option in the lower drop-down ("TextEdit" in the screensho...
I've written a launchd .plist which should attach a debugger to the WindowServer when it launches. The main part of the script looks like
screen -D -m -S "WindowServer Debugger" \
gdb \
-x $GDBSCRIPT \
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/WindowServer ...
Hi,
I wonder if it is possible in bash for OSX to create a script for which we give as input the application name and a number N, so this app gets opened in the Space's space number N.
I would like with this to create a meta-script, so when the computer boots and after login, on each space I get different apps, and important, I can cha...
I'd like to develop a gadget (a.k.a. widget) that would be multi-platform. Namely, I'm interested in OS X and KDE4 (Plasma). Is there any way that I do it without writing the code twice? Language is not the problem here, although Python is preferred.
...
I'm new to Mac OS X and I'm going to do some dev work under Snow Leopard.
I enabled the build-in apache and found things below in file etc/apache2/httpd.conf:
LoadModule alias_module libexec/apache2/mod_alias.so
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
LoadModule bonjour_module libexec/apache2/mod_bonjour.so
But I c...
RubyGems newbie here, trying to install the 'less' gem. I type 'sudo gem install less' as instructed at http://lesscss.org/, and I get the following error:
ERROR: While executing gem ... (Gem::GemNotFoundException)
Could not find less (> 0) in any repository
Alright, so I figure maybe I just need to update RubyGems. Trying 'gem...
Hi,
I have a git server setup on an online VPS and I develop from my Mac Snow Leopard desktop. The VPS might go away at any point (and I don't feel like paying monthly subscription for private git repo) so I want to make sure that my repo in Sync at all times with the server.
What is the best way to do so? Do you recommend having some ...
If I have several OS-X Terminal.app windows open, how can I move one Terminal window to another space?
I'm happy to use any scripting or programming language to achieve this, but would prefer AppleScript or calls to standard frameworks.
(Note this is to move only one window of an application not all windows.)
...
Hello everyone,
I have an IOKit-based kernel extension on Mac OS X, a subclass of IOService. When this service loads i need to publish additional specific runtime information from it and i need it to be accessible from user space without making some specific IOUserClient requests. The information in question is basically field\value pai...
I'm on OSX Snow Leopard (I had the same issue on Leopard, though..)
This is the applescript:
tell application "Finder" to set my_from to selection
tell application "Finder" to set my_to to target of window 2
tell application "System Events" to keystroke (ASCII character 31)
tell application "Finder" to move my_from to my_to
It moves t...
Is there another way to connect to a MySQL database with what came included in the version of Python (2.5.1) that is bundled with Mac OS 10.5.x? I unfortunately cannot add the the MySQLdb module to the client machines I am working with...I need to work with the stock version of Python that shipped with Leopard.
...
I am attempting to create a UPnP method on an internal PHP server if at all possible. I need it to be mostly platform independent so that it may run on Windows, OSX, or Linux.
I believe I can get my SOAP protocols working for UPnP, but first I must determine the IP address of the gateway/router that the server goes through. Is it possib...
Hey, I want to play with the new multitouch functionality of Flash 10.1 as is demonstrated here: http://blog.martinlegris.com/2009/12/13/tutorial-multi-touch-in-as3-flash-player-101-part-1/#more-186
removeEventListener(Event.ADDED_TO_STAGE, init);
// entry point
_tf = new TextField();
_tf.width = stage.stageWidth;
_tf.height = stage.sta...
Hi,
I have a custom LDAP server, which I can customize to generate whichever object class and attributes I need. I'm trying to display people from that server in the Mac OS X address book.
Names and organizations display correctly, as well as work-related phone and address. However, I've never been able to have a home address displayed...
Ok, maybe I'm doing something really stupid.
I'm on OSX 10.6.1.
I want to add mysql to my path, so I add the following to my .bashrc
PATH = ${PATH}:/usr/local/mysql/bin
export PATH
upon running terminal, it doesn't work, which I expect, because .bash_profile is not loading .bashrc at the moment.
but if I manually enter bash, i get ...
I have windows XP set up on a VM on my mac running only IE6. I used to use this: http://spoon.net/browsers/ to test on IE7 and 8 but it requires that I have .Net framework installed on my VM, which I'd rather not do. Any suggestions for the optimal setup for cross-browser testing with a VM on a mac?
...
I'm building a web-based application that can use ActiveX Controls to print to a Thermal Label Printer (specific to shipping labels) in Windows environments, but I am racking my brain to figure out what the best method would be for OSX. Obviously ActiveX doesn't work on macs...
Any ideas about where to start looking? A flash movie? A fi...
I have uninstalled it via the devtools uninstall command and reinstalled 3 times to no avail. This all started when I downloaded iphone_sdk_3.1.3_with_xcode_3.2.1__snow_leopard__10m2003a.dmg from the DEV portal and installed.
I've trashed my com.apple.xcode.plist file, uninstalled all xcode plugins as well as Growlcode and I still can'...
I have autotest setup with growlnotify using growl_glue (version 1.0.7):
require 'growl_glue'
GrowlGlue::Autotest.initialize do |config|
config.notification :use_network_notifications => true
end
growl version is 1.2
each time autotest runs and displays the notification growl popup I also get an OS X firewall popup asking Do you wa...
Как я могу смонтировать сетевой диск в Mac OS X на Java?
Пишу программу на JBuilder 2005 на XP
для Mac OS X. Прога обращается к
зашаренным папкам на другом компе с
XP. Нужно, чтобы когда запускаем прогу
на Маке, она автоматически монтировала
эти зашаренные папки под Мас. и затем
прога обращается к файлам на
зашарен...