mac

[C, Mac] getyx return -1 -1

#include <stdio.h> #include <curses.h> int main () { int y, x; getyx( curscr, y, x); printf("x=%i, y=%i", x, y); return 0; } gcc a.c -lcurses -o a x=-1, y=-1 Why? ...

Error compiling Qualnet on Mac: file is not of required architecture

When trying to compile Qualnet on Mac, I got the following error: ld: warning: in ../kernel/obj/mobility_private.o-darwin-x86-gcc-4.0, file is not of required architecture and a bunch of errors for other files in this kind. So I'm wondering if there is anyway to solve the problem. Anxious waiting for help. ...

How to use the same category in multiple classes?

I have stack category for NSMutableArray that I use in Class A @implementation NSMutableArray (StackUtil) - (void)push:(id)stackObject { [self addObject:stackObject]; } - (id)pop { id retVal = [[self lastObject]retain]; [self removeLastObject]; return [retVal autorelease]; } @end How do I properly include this category for fo...

Is there C# compiler for Mac OS X?

I want to build my ASP.NET C# Desktop Application on Mac OS and output must be application running on Mac OS.How can I do that?Is there any compiler? ...

Link NIB/Xib - Objective C - xCode

I have a cocoa application. With two NIB/XIB files, one of them is the main (first) window that opens. The second NIB/XIB has some extra windows there. How do I, for example, in objective c link one NIB button to another? I know this is a very simple question, but I just can't find the answer. ...

How to run C# Desktop Application with extension .exe in Mac OSX?

I installed MonoFramework and I have myproject.exe file.How to run C# Desktop Application with extension .exe in Mac OSX? ...

How to detect flash installed in windows/Mac using c#?

Hi, I want to detect whether flash installed in windows/Mac using c#. Any help anyone could deliver would highly be appreciated.. Thanks Ratheesh  ...

Gesture Firefox on Mac: Swipe back tiggers Edit-->Find instead of 'Back'

Whenever I use the swipe gesture to the left for browsing back like in Chrome or Safari implements it, Firefox does not browse back instead opens the search/find dialog. The about:config shows which should be fine: browser.gesture.swipe.left; Browser:BackOrBackDuplicate The swipe to the right for 'Forward' however works. How can I...

Restart Mac OS X ungracefully using a C++ call?

How do I restart Mac OS X using C++ (not Objetive-C) without invoking any child processes? Don't care if it's ungraceful. system("reboot"); //Is not acceptable as it relies on invoking a process ...

Hide terminal, C + GTK

gcc -o program program.c `pkg-config --libs --cflags gtk+-2.0` When I run the program, it show both the GUI and the terminal. How can I hide the terminal? ...

How do you open a terminal with a specific path already cd'ed to?

How do I use the terminal to open another terminal window but with a path I specify? I am using automator to load my work stuff when I get to work, but I need to know how to do this: Open Terminal and Type: • cd Work/Company/Project/ • script/server And then new tab in that terminal window and cd to the same folder. ...

ImageMagick - How to Build a 32-bit Mac version for MAMP?

This is a pretty straight-forward question: I have an older INTEL Mac (32-bit) and I need to build a 32-bit version of ImageMagick. I've seen some people playing around with options during the binary install, but I can't seem to find any reliable information about how to do this! NOTE: ImageMagick gives out a 64-bit version of the bina...

Macros for apps run in Wine on Mac OS?

At work I use a Mac Pro for front-end dev. I run different versions of IE in Wine to have a fully integrated testing and development environment. I am now working on a side project to do automated testing across all of our supported browsers. I have checked out projects like Selenium, but none of them seem to quite meet my needs so I am ...

How do I highlight the current TextMate document in the project drawer?

I keep forgetting where to find this in the menus. I often open a document using (for example) Find in Project… and then want to know where it is in the project drawer (especially when it's buried deep down in the folder hierarchy. How do I highlight the current document in the project drawer? ...

wxString to UniChar*

How to convert from wxString to UniChar? ...

How can I create Script file on Mac OS 10.4.8 to run example.exe file through mono?

I can open Terminal and write mono example.exe, but I want to double click any file,and it run example.exe.How can I do this? ...

Platform-native preferences dialog with Qt on Mac, Gnome, KDE, and Windows

On Mac and Gnome, native applications use an application preferences dialog that immediately applies the chosen settings as they are selected. On Windows and (I think) KDE, preferences are applied only when an "Apply" or "OK" button is pressed. Are there any built-in Qt goodies to do this for you, or do you have to include several #ifde...

Why can't I use webrick with git instaweb on Mac OS X?

I'm trying to use git instaweb with Ruby' webrick (which I have installed) on Mac OS X, but every time I fire up $ git instaweb --httpd=webrick I get the following error: webrick not found. Install webrick or use --httpd to specify another httpd daemon. Like I said, I do have webrick, so I don't know why git instaweb won't use i...

How to run java application with built-in command line arguments?

I am making a Java application that is stored in a .jar file and can be launched by opening the jar file either from the command line or from clicking the icon. For the Mac version of the app, I would like the menu bars to appear at the top of screen in the Mac style instead of in the window (the Windows style). I know this can be done...

How to steal audio from specific application?

Hello, I am trying to figure out how to capture the audio from a given software running on a mac, just like audio hijack does. I'm aware that this is not the first question on the subject, but I'd like to better understand the possibilities on how to do it. Crete a user space driver is the only solution to achieve it? ...