Fastest way to programmatically open prefpane?
AppleScript was too slow, so I tried ScriptingBridge to open System Preferences.app and set the current pane, which is also too slow. Is there a faster way to do it? properly ...
AppleScript was too slow, so I tried ScriptingBridge to open System Preferences.app and set the current pane, which is also too slow. Is there a faster way to do it? properly ...
I've been learning about gems lately, and one error I get is: WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and /usr/bin aren't both writable. WARNING: You don't have /Users/Alex/.gem/ruby/1.8/bin in your PATH, gem executables will not run. ERROR: Error installing rubygame: ffi requires rake (>= 0.8.7, runtime) I u...
Is it possible to capture bash output to the OS X clipboard? ...
I want to make some simple 2d games/clones (for Mac), but I have a few questions: Should I use Quartz 2d or OpenGL (I don't plan to try 3d anytime soon) There seems to be a lot of typedef'd things like CGFloat/GLfloat, which should I use? Should I use Objective-C for the game too (classes) or just C? (I assume I'll use Objective-C and ...
When running on Leopard you can do something like: #if __LP64__ #pragma message ("64 bit Leopard issue") #endif What is Snow Leopard and Snow Leopard 64 AND (most importantly) Where would I have found this answer myself and not had to ask? ...
I have an applet that calls a JDialog that contains a JProgressBar component. I subclass the JDialog to expose a method to update the JProgressBar, something like: public class ProgressDialog extends javax.swing.JDialog { public void setProgress(double progress) { jProgressBar1.setValue(jProgressBar1.getMinimum() + (int) (pr...
Hi, I am trying to create a program which will receive user credentials from a remote machine (where the user will be working), and forward these credentials to the login window of OS X. I know it can be done using AppleScript, but this is not always working as expected. In particular it is not working when the Mac is booted and no us...
I can retrieve the logged in user name using NSUserName(), but how do I get the Open Directory "directory domain name" or other domain he is a member of? i.e. similar to the notion in Windows where a logged-in user is DOMAIN\USERNAME, where DOMAIN is his local machine, workgroup or Active Directory domain. ...
We are using precompiled headers with GCC for our project and build them like this: gcc $(CFLAGS) precompiledcommonlib.h Now I'm building the project on OSX 10.6 and trying to use the nifty feature of building for all architectures at the same time like this: gcc $(CFLAGS) -c -arch i386 -arch x86_64 commonlib.c However, it seems th...
So i was wondering if there is any? I know afd on windows but not sure anything about mac? And this his how i am using nasam on the following code: nasm a.asm -o a.com -l a.lst [org 0x100] mov ax, 5 mov bx, 10 add ax, bx mov bx, 15 add ax, bx mov ax, 0x4c00 int 0x21 On windows i know a debugger name afd which help me to step through ...
we need to change the default SYSTEM temp folder for our multiplatform application. The systems default call for getting the SYSTEM temp folder should return the folder we have specified. On MS-Windows this is GetTempPath(). On MacOS the function is called NSTemporaryDirectory() I think. We need to do this because we are running multip...
I am working along with Cocoa Programming For Mac OS X (a great book). One of the exercises the book gives is to build a simple to-do program. The UI has a table view, a text field to type in a new item and an "Add" button to add the new item to the table. On the back end I have a controller that is the data source and delegate for my NS...
Does anybody know a way to set/get the fn-lock from an application so you don't have to press the 'fn' key to get F1, F2, etc. on a macbook or apple keyboard? I want to have it always on for my application but keep the standard behavior in the rest of the system. ...
I am trying to change a few hot-keys in the java application I am wokring on and it seems that the system I am using may not work with three button key combinations. We currently have a JMenuItem item and we set the hotkey with a call like this: menuItem.setAccelerator(getAcceleratorKey(accelerator)); And here is the getAcceleratorKe...
If you see my other question, you'll know that I'm starting to try making simple 2d games on mac. There I was deciding which library to use (OpenGL or Quartz), but no matter what I'll have to use Cocoa to make it a nice Mac application, and for the window and the view (with OpenGL, NSOpenGLView). Obviously for a game, the view will have ...
I need to produce several ERM, DMD and ORM diagrams for several projects I am working on. Obviously I'd like them to be a sleek and professional as possible, and while a simple Google search provides a plethora of options, they're all pay-for-use. Are there any free (or open source) diagram creators available for Mac OSX which produce ...
What is going on when I get this "HTTP Response 403" error? I am trying to setup Ruby on Rails on OS X 10.5.8 with XCode 3.1.4: Boston:$ ruby --version ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0] Boston:$ gem --version 1.0.1 Boston:$ sudo gem update --system Password: Updating RubyGems... ERROR: While executing gem ...
Hi! I'm building a client and a server program that exchanges data over TCP and I'm having trouble sending an ACK-confirmation from the server back to the client when an operation is successfull. I've managed to send a struct with various members from the client to the server, then the server should respond by sending an integer confirm...
I have a mysql server that gets a lot of users logging in at once. I know in windows you can change the settings so the amount of people logging into the server will be okay on your traffic, but how can you do this on the mac? Thanks ...
First things first, I'm on a Mac ssh'ing into a Linux machine via Terminal. I would like to view the contents of a file in the current directory, but in binary. Is there a binary mode for any text editors like VI or Nano or the like? ...