osx

Anyone know the state of cocoa#?

Having just updated Mono to 2.6.3 (on OS X), I noticed in the installer that cocoa# 0.9.5 is also installed. However using MonoDevelop there are no cocoa# project templates by default, and I was wondering if anyone knew more about creating cocoa# apps. If you goto the cocoa# page on the Mono site you can see it hasn't been updated since...

Java SE6 32 bit on a Mac OS X 10.5.8

My Mac OS X allows me to choose among J2SE 1.4.2 32bit, J2SE 5 32bit, J2SE 5 64 bit and Java SE 6 64bit but it doesn't include the Java SE 6 32bit: does anybody know how can I install this version, too? ...

Why is sysctl producing E_INVAL on Mac OS X?

Below is a pared-down (error/null checks omitted) snippet of C/Obj-C code that uses sysctl to get the argv of a particular process with PID 50. ... int getProcessArgs[3] = { CTL_KERN, KERN_PROCARGS, 50 }; sysctl(getProcessArgs, 3, NULL, &length, NULL, 0); char* processArgs = malloc(length * sizeof(char)); sysctl(getProcessArgs, 3, proce...

How to look up a word in the Mac OS X dictionary with AppleScript?

How can I look up a word in the Mac OS X dictionary through AppleScript? ...

Does strokeRect: of NSBezierPath always draw a transparent rect? (Cocoa OSX)

I am trying to make a custom selection box for an image view I created and I am trying to use strokeRect: from NSBezierPath but it always seems to be transparent. Called the method set to set the color the blackColor and then also tried using olorWithDeviceRed:green:blue:alpha: but no matter what I have tried the rectangle created alwa...

BetterAuthorizationSample weird???

I have a quick, newbie question... I just started looking through authorization services and Apple's BetterAuthorizationSample... for some reason, I just can't get the hang of it. For example... I deleted the HelperTool and InstallTool and SampleTool.c and all references, but why does the program seem to continue work like nothing hap...

How does ps show the argv for all processes on Mac OS X?

I'm trying to identify when a particular process is running, based on its arguments, on Mac OS X. There may be several processes running with the same name, but only one will have the arguments I'm looking for. The processes are not owned by the same user who will be running my code. They will not have modified their argv in any way. ...

Compiling libnoise on OSX 10.6

Has anyone compiled, or know of a pre-compiled, libnoise for MacOS X 10.6? It does not compile out of the box here due to a libtool issue. libtool --mode=compile g++ -c ../src/latlon.cpp -o ../src/latlon.o libtool: unknown option character `-' in: --mode=compile ...

Ruby send mail with smtp

I'm trying to send simple email via Ruby (no rails) on OS X, with XCode (which installs Ruby.) But I'm running into a problem with my smtp server which requires the email client to check mail before sending as a form of authentication. How can I get Ruby to authenticate with the smtp server in a "POP" fashion before I can send mail? Not...

OpenSSL not listed under PHP modules but shows up in the configure command

PHP 5.2.12 OS X 10.5.8 If I compile PHP from source with the following configure command ./configure --disable-all --with-openssl=shared,/opt/local it succeeds. However, after a make and make install, php -m does not list the openssl module. Based on what I've read, I think it may be due to multiple installs of the openssl librar...

How do I get current network location name?

In system network preference there are some location names.How to get the current or active network location name and list of all network locations? I guess SystemConfiguration.framework supports this but i didn't get exactly which API to use.Thanks in advance for your answer. RegardsDevara Gudda ...

GDB Not Skipping Functions without Debug Info

I compiled GDB 7 on a Mac OS X Leopard system. When stepping through a C program, GDB fails to step through 'printf()' statements, which probably don't have associated debug information, and starts printing "Cannot find bounds of current function." Here's some output: $ /usr/local/bin/gdb try1 GNU gdb (GDB) 7.1 Copyright (C) 2010 Free...

How to allow click-through and a cursor in a background app while not taking the active appearance away from another app

Here are my goals: My application displays an overlay window above all applications' windows. The user can draw in the overlay window. The mouse cursor changes to a specific cursor while in the overlay window. The application that has the active appearance before summoning the overlay window still has it while the overlay window is up ...

Socket operation on non-socket

I'm running mysql5 on Mac os x 10.5.8 and got this error. How do I solve this? The DB worked fine but stopped working after system update. I think its something related to the socket file which is /tmp/mysql.sock do I need to give it special permissions and owner? Thanks ...

Install CLSQL on Mac OS X

I have SBCL installed (via macports/darwinports) on my Intel Core 2 Duo Macbook running 10.5.8. I've installed several libraries like this: (require 'asdf) (require 'asdf-install) (asdf-install:install 'cl-who) But when I tried to install CLSQL this way ('clsql) after it downloaded, I got this: ... ; registering #<SYSTEM CLSQL-UFFI ...

how do i download source code using svn on OS X?

How can I get source code off the internet using SVN? I'm trying to download Oolong game engine for iPhone OS. I am on Mac OS X 10.6 with XCode 3.2.2. svn checkout http://oolongengine.googlecode.com/svn/trunk/ oolongengine-read-only is the command I got from the Oolong Google Code page. EDIT: I've tried the command in Terminal. I d...

Change colour of standard progress bar using Quartz filters

I need 2 different colours: Yellow, Green. Is it smart to use Quartz filters on standard progress bar, because sometimes I can see rendering problems after doing so. ...

Emacs 23.1 make error 139 in Mac OS X 10.6.3

When I try to compile GNU Emacs 23.1 on my machine with Mac OS X 10.6.3 I repeatedly get the following ending: Directories: /src/emacs-23.1/lisp/. /src/emacs-23.1/lisp/./calc /src/emacs-23.1/lisp/./calendar /src/emacs-23.1/lisp/./emacs-lisp /src/emacs-23.1/lisp/./emulation /src/emacs-23.1/lisp/./erc /src/emacs-23.1/lisp/./eshell /src/em...

Source From Standard In (Bash on OSX)

I am trying to do something like this ruby test.rb | source /dev/stdin where test.rb just prints out cd /. There are no errors, but it doesn't do anything either. If I use this: ruby test.rb > /tmp/eraseme2352; source /tmp/eraseme2352 it works fine, but I want to avoid the intermediate file. Edit: The whole point of this is that...

List of and documentation for system calls for XNU kernel in OSX

I'm trying to figure out how to get a list of and documentation for the system calls available in the XNU kernel in OSX. I've googled around quite a bit, but haven't been able to find anything of use. As I understand the calling conventions match BSD, is that correct? Thanks ...