[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? ...
#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? ...
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. ...
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...
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? ...
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. ...
I installed MonoFramework and I have myproject.exe file.How to run C# Desktop Application with extension .exe in Mac OSX? ...
Hi, I want to detect whether flash installed in windows/Mac using c#. Any help anyone could deliver would highly be appreciated.. Thanks Ratheesh ...
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...
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 ...
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 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. ...
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...
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 ...
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? ...
How to convert from wxString to UniChar? ...
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? ...
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...
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...
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...
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? ...