How is the PATH env variable set when opening a BASH shell in Terminal.app on OS X?
What startup scripts—in the order that they are called—set the PATH variable when opening a BASH shell in Terminal.app on OS X? ...
What startup scripts—in the order that they are called—set the PATH variable when opening a BASH shell in Terminal.app on OS X? ...
I am attempting to read an H264 AVI file on OSX with Matlab, but it appears that the video is corrupted. When I display the frame it appears that the image is segmented by vertical grey lines and I can see a segmented and faded version of the actual image data repeated 3 times within the same frame. On my windows box I am able to read in...
Anyone could install gearman with libdrizzle enabled for mac os? I'm using mac ports but it fails to install it with libdrizzle enabled ...
I'm taking my first steps toward learning to write desktop code for the Mac and, thinking it would be a baby step, I decided to write an Address Book plugin to "fix" something that's annoyed me for a long time. Embarrassingly, I can't even get the boilerplate plugin to work the way I think it's supposed to work. My understanding from th...
hi all, i'm trying to take a screenshot on osx with c/c++ so far this is what i got: #import <ApplicationServices/ApplicationServices.h> int main( int argc, char** argv) { CGImageRef screenShot = CGWindowListCreateImage( CGRectInfinite, kCGWindowListOptionOnScreenOnly, kCGNullWindowID, kCGWindowImageDefault); CFStringRef fi...
How do I adjust the height and width returned by CGDisplayBounds by the menu bar height and the dock height (or width if it attached to the side)? I need to do this using only Carbon calls. ...
I'm looking for a pointer in the right direction to get started with writing an iPhone app that sends commands to OS X, for example telling OS X to sleep. I can't seem to find the relevant part of the documentation? ...
Does anyone know if it is possible to directly edit file metadata on OS X. Specifically in perl. The parameter I'm specifically trying to change is kMDItemFSLabel (The color of the file). I've had a search around and I can't seem to find a way to do this without using a module such as Mac::Glue or an external application (Finder). ...
Is there such a thing as a tiny little webserver that I can invoke from the command line that just fetches files from the local filesystem and serves them via HTTP on specific port? I'd like to be able to do something like this: $ cd ~/Sites/mysite $ serve . 10.0.1.1 8080 This should fire up a webserver that listens on 10.0.1.1:8080 ...
Hi, I've learnt Cocoa + Objective C primarily for iPhone development, and I need to utilize this skill set to build a very basic kiosk application for OS X in a couple of days. The application is basically as follows : The setup has two touch screen monitors, the app must be running full screen mode. The monitor on the right acts as a...
When I try to build the following program: #include <stdio.h> int main(void) { printf("hello world\n"); return 0; } On OS X 10.6.4, with the following flags: gcc -static -o blah blah.c It returns this: ld: library not found for -lcrt0.o collect2: ld returned 1 exit status Has anyone else encountered this, or is it something...
Ola Folks, Once again I want to drink from the pool of knowledge shared by people using SO. I have written a small app for OSX that sends key events to an application. I am targeting OSX 10.5.x and newer. However, the problem exists when I build for 10.6.x as well. Everything works fine except when I send only the modifier keys; Alt, C...
I am trying to do a clean build of Lilypond on a clean install of Mac OS X. Dependencies have been installed using Brew. I do ./configure && make all in the Lilypond dir. It gets through the configure and starts building but ends on ERROR: In procedure dynamic-link: ERROR: file: "libguile-srfi-srfi-1-v-3", message: "file not found" ...
Hi, Following up on this question: http://stackoverflow.com/questions/3800253/kiosk-applications-os-x-programming-multiple-monitors I'm an iPhone programmer just starting out with OS X programming, and I'd like to know how I can present multiple views sequentially. What I basically need to do is - Have a welcome screen with a button c...
Hello, I'm trying to write an application that prevents certain key signals from propagating beyond the OS in OSX. To clarify, I want to make it so that it almost seems to the user that the key they are pushing on their keyboard is broken. So, the associated letter won't show up in a textarea, the key won't activate a function in anot...
I got a file size in byte in a (unsigned long long) variable. Is there a standard way to convert it to a string, with localized units? I am aware of those kind of solutions : NSString * stringFromFileSize( FileSize theSize ) { float floatSize = theSize; if (theSize<1023) return ([NSString stringWithFormat:@"%i bytes",th...
I tried compiling ADPACK, written in C, on an Intel Mac running OX 10.6.4. I got the following error from the make command. gcc -I/usr/local/include -I/home/ozaki/include -c adpack.c adpack.c: In function ‘main’: adpack.c:223: warning: incompatible implicit declaration of built-in function ‘strlen’ gcc -I/usr/local/include -I/home/ozaki...
How would you change the default browser programmatically on Mac OSX. For example from safari to chrome, or chrome to firefox? Thanks ...
Hello again, So, in reference to : http://stackoverflow.com/questions/3800253/kiosk-applications-os-x-programming-multiple-monitors I have an 800x600 NSView and I need to scale this proportionally when I enter full screen mode using NSView's enterFullScreenModeWithOptions. Right now, what's happening is the UI elements are stationary ...
Hey, I'm using CoreData in my application and depend on the NSManagedObjectContextObjectsDidChangeNotification. I have already subclassed NSManagedObject for all my Entities and created the properties and @dynamic accessors. Is it possible to exclude some properties of specific entities from the notification? If so, how would I do it? :...