osx

TFS support (plugin, external tool, etc) from within MonoDevelop?

Is there an easy way to integrate TFS for version control into MonoDevelop? I have a new MacBook Pro and an trying to determine which things I can do with Mac native apps and which I will need to run using Parallels. I downloaded the Microsoft Visual Studio Team Explorer Everywhere 2010 command-line client, and was able to create a wor...

Making a Cocoa Button look like is pressed, programatically...

The title pretty much says it all, I have some key events, that correspond to buttons also. What property/method to I have to set/call for a button to look depressed (change state?) for say half a second? Thanks alot in advance!! James Hartt ...

Prompt user to select a directory with a bash script and read result.

Hi, I want to be read a dir with a bash script (actually I am using zsh). I want to list the current folders in the same dir and display it to the user asking them to enter a number to select the correct folder. Please select a Folder eg, 1,2,3. 1. Folder Name 1 (this should the acutal name of the folder in the dir 2. Folder 2 3. Fold...

What are some free sql server management studios on a mac

What are some sql server management studios tools (preferably free) for the mac that can be used to do development work on MS Sql Server? ...

Make .mpkg so it can be installed by script on Mac OSX

I want to make a .mpkg that can be installed by a script on OSX. When starting the .mpkg always the GUI-dialog shows up. I tried to disable the GUI, but there seems to be no effective way to do so. Does anyone got an hint for me how to do so? Any answers are helpfull. ...

Where can I find a list of Mac virtual key codes?

I'm using CGEventCreateKeyboardEvent and need to know what value to use for the CGKeyCode. Specifically, I am after the key code for the Command key (either of them will do). The docs give examples: 'z' is 6, shift is 56. There must be a list somewhere? ...

register for WindowServer CGScreenRefreshCallback CGScreenUpdateMoveCallback in C++

Hi everybody, I'm trying to register for CGScreenRefreshCallback and CGScreenUpdateMoveCallback ( here's what apple's saying about http://developer.apple.com/mac/library/documentation/GraphicsImaging/Reference/Quartz_Services_Ref/Reference/reference.html#//apple_ref/doc/uid/TP30001070-CH1g-F16970 ) using C++ only. I wrote this simple te...

Qt or wxWidgets on Cocoa?

I was told that the newest Qt is Cocoa based, and as so, it's 64 bit. And Cocoa is Object-C based, whereas Qt is C++ based. How is that possible? I mean, how C++ based library can turn into Objective-C related one? Is this just using Objective-C++? Can any C++ library be Cocoa based using Objective-C++? ...

In chrome my drag and drop Java applet doesn't get the drop events, does chrome not support that on Mac?

I have an applet that accepts files via drag and drop from the OS which works in every browser but Chrome. In chrome if you drag and drop a file from the OS chrome shows you the file in the browser, if you drop a .jpg for instance. Does Chrome not support drag and drop for Java in OS X? Thanks ...

How does MAMP know to look in /opt for web applications?

I've installed a PHP web application that's in /opt/webapp name. However, I'd like to be able to tell MAMP pull the PHP files from something like /username/localdevversion/. The problem is that I can't figure out what tells MAMP to look for PHP files in /opt. I've looked in /Applications/MAMP/conf/apache/httpd.conf and /Applications/MAM...

Reading a File on OS X via Java - Is my path correct?

I am trying to do this File file = new File("/Users/Jon/Downloads/mynewalbum/artist - title.mp3"); I don't think its correct though as the properties returned don't seem correct. Maybe I have got a backslash or something wrong? ...

How to check if a library is 32bit/64bit built on Mac OS X?

I'm having some trouble in using PyQt/SIP. I guess the SIP is compiled into 64bit, but Python has some problem with finding it. File "qtdemo.py", line 46, in import sip ImportError: dlopen(/Library/Python/2.6/site-packages/sip.so, 2): no suitable image found. Did find: /Library/Python/2.6/site-packages/sip.so: mach-o,...

How to force using 64 bit python on Mac OS X?

I got the following error when compiling sip with --arch x86_64 option. prosseek:siplib smcho$ python -c 'import sip; print sip' Traceback (most recent call last): File "", line 1, in ImportError: dlopen(./sip.so, 2): no suitable image found. Did find: ./sip.so: mach-o, but wrong architecture I found that the prebuilt Ma...

How do I join AAC/.m4a files via CLI (Mac OS X)

I need to quickly join a number of separate m4a files in to one large one. Is there any way to do so via CLI on in Mac OS X? ...

Callstack on Windows and Mac OS X/Linux without Symbols

On Windows if there is no symbols for a module involved in a callstack, say of a crash dump, then all the call below that module in the callstack would be wrong (not only the names are missed, but also the sequence). On Linux or Mac OS X, if symbols are absent, the function names are not shown, but the call sequence are still remain. W...

Can python3.1 scripts be freezed in mac os x using cxfreeze?

I m new to this and i need to freeze python3.1 scripts so that it can be run in other machines which does'nt have python3.1. CXFREEZE is the one which supports python 3.1 as far as i know. But i could not find any thread saying that freeze is successful for python3.x. So can anybody tell me will it be done with cxfreeze or i have to ch...

Textmate-like smart quotes/parentheses as a script/service

so Textmate has this great feature of auto-closing ( { [ " ' signs and putting the caret between them, e.g. type [ --> get [] and also on selected text, if you press any of these keys, it will wrap the text in a pair of them. e.g. *some selected text* , hit ( --> (*some selected text*) how would i go about writing a script (Applescr...

Force allocating real memory

Is it possible to allocate big chunk (512Mb-1Gb with 4Gb installed) of real memory without dropping it to swap? My final intention is to free system memory: os x has a problem when free memory is near 0 — it doesn't try hard to put unused memory to swap and everything becomes very slow trying to get memory. So, I decided that if some pr...

Detecting focus/unfocus of active NSDocument

Hi, Is there anyway to detect the focus/unfocus of an NSDocument? I would like to dynamically update a menu item that pertains to the active document but I can't see any immediately obvious way of doing it. The reason being, I'd like to activate and then populate the menu on document focus, and then unpopulate and deactivate on loss of...

Mac OS X : boost interprocess semaphore timed_wait : Abnormal CPU consumption

Hi. After porting a code segment from Windows to Mac OS X, I found it to consume a whole CPU core while running; the responsible call for the CPU consumption is boost::interprocess::interprocess_semaphore::timed_wait. Here follows the code portion which reproduces this behaviour. #include <boost/interprocess/sync/interprocess_semaphore...