osx

how can I force the startup manager to load on MAC OS X? or how to install a boot loader?? grub??

Hi there, I have a MAC mini with Windows and OS X installed in it. This mac is connected to a KVM and the keyboard that I use it's a regular PC keyboard. When I try to load the Startup Manager by pressing the Function key at startup, it fails and loads directly into OS X. I believe that the KVM is giving me trouble but I can't get rid o...

How can I write a python script equivalent of mdfind using PyObjC bindings and NSMetadataQuery?

I want to write the python equivalent of mdfind. I want to use the .Spotlight-V100 metadata and I cannot find a description for the metadata db format used, but NSMetadataQuery seems to be what I need. I'd like to do this in python using the built in Obj-C bindings, but have not been able to figure out the correct incantation to get it t...

Cocoa (Snow Leopard) NSTextView's textStorage -setAttributes:range: removes characters!

I'm not sure what I'm doing wrong. I have a NSTextView and am registered as the delegate for its textStorage attribute. When I receive -textStorageDidProcessEditing:notification: I'm trying to apply attributes to ranges of characters within the text. It certainly does "something" to the characters, but not what I expect... they just d...

JAVA 1.5 in OSX 10.6.4

Hello, I am trying to debug a j2ee application in tomcat using Intellij Idea in an OS X 10.6.4 system. I need it specifically to run over a 1.5 JVM and 1.5 JDK so that the jgroups-all component doesn't crash the application through this error: class: java.lang.ClassNotFoundException: [Lorg.jgroups.Address; at com.opensymphony.osca...

Adding variants in Mac Ports

Hi guys, I was wondering how you can append a variant to a port if you have already installed the port. For example I installed the 'vim' port and would like to go back and add the python25 variant. Do I need to delete vim and reinstall it? This is just an example, I would really like to know the process to do this for any port. Thanks ...

Mac OS X PHP IDE with Git support

Can anyone suggest a PHP IDE (preferably built in Cocoa/ Objective-C, not Java) that also has native support or an excellent plugin for Git? I am currently using NetBeans but I am not happy with the speed and the patchy Git plugin. I have previously used Zend Studio for a long time but that had stability issues. ...

Beginner path to Game Development for OS X and iPhone

Another question. I have been researching everything this wonderful community has offered me in terms of my journey to pursue game development. I have come to the conclusion that I would prefer to develop on my native machine, OS X - eventually leading to the iPhone. I already own both Big Nerd Ranch guide's, Iphone Programming - the ...

OSX Dashboard widget command line access problem

I'm trying to access command line from a simple Dashboard Widget on Snow Leopard. My intention is to fill the contents of the widget from a command-line script I call. This should be possible. I'm calling the script every time the widget is shown using it's onshow callback: if (window.widget) { widget.onshow = onshow; } functi...

Converting .gif to .png format in Cocoa (OSX) without using representationUsingType:properties:

I need to write a method that takes a .gif image file as input and converts it to a 32x32 .png file. The only way I found to do this in Cocoa would be using the representationUsingType:properties: method of NsBitmapImageRep but unfortunatley I cannot use this method because it is not supported by cocotron (an open source API that implem...

Missing keyUp events on meaningful key combinations (e.g. "Select till beginning of line")

I have an NSTextField which uses as an extended NSTextFieldCell, which creates a custom field editor, that intercepts and records key events. (Knowing the key events is important for the application, but the text field is still supposed to work as usual, by calling the [super ...] method). This is what the official documentation suggests...

Switching to an aliased directory

Hello, Just wanted to know if it is possible to switch to an aliased directory using shell script. To switch to a directory there is cd command. But i have aliased the directory and wanted to know as how to switch to the aliased directory. Could someone please help me? ...

Zend server community edition creates "other" item in Mac OSX login screen

I just installed zend server CE, but it creates an extra item in my mac os login screen called "Other". Is it possible to remove this from my login users screen? I cannot find this option in my system preferences. Not really a development question but related to zend server install ...

How do I convert this OpenGL makefile from Linux to Mac OS X?

I'm trying to compile a OpenGL program on my MacBook and can't figure out how to convert this makefile. CFLAGS= -I/usr/X11R6/include -I/usr/local/include LDFLAGS= -L/usr/X11R6/lib -L/usr/local/lib -lGL -lGLU -lm -lglut BINARIES=q2 all: $(BINARIES) clean: -rm *.o $(BINARIES) q2 : q2.o g++ $(LDFLAGS) $^ -o q2 q2.o: q2.cpp g+...

SWT on OS X: menu without window

On OS X if you close the last window, the application still is living and, if focused, shows a menu bar (without any window). What is the simplest SWT example code demonstrating this behavior? Thanks in advance. ...

Monodevelop on OS X and Displaying UTF-8

Two Questions Does using Copy or paste cause monodevelop to crash, or is it just me? If you have Monodevelop installed, please can you test this, I fount that both shortcuts and from the menus cause it to crash. I seem unable to find information about this on google, though would personally consider this quite a major bug. How can UTF-...

Qt build warning: directory '/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib' following -L not found

I'm trying to get a Qt app compiling for Mac running Snow Leopard, using Qt Creator 2.0.1 and Qt 4.7.0 (64 bit). The app compiles on other platforms, but on my Mac I get this warning :: warning: directory '/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib' following -L not found This is a new install of Qt Creat...

Problem on Mac : "Can't find a register in class BREG while reloading asm"

I tried to port some code onto Mac OS X. The program uses the "ttmath" library, a header big-num header library. This library works fine on both windows and linux, but when I try to compile and run it on a Mac, the following error message always shows up : "can't find a register in class 'BREG' while reloading 'asm'". I found some d...

Open file in eclipse on mac 10.6

I have a deceivingly (at least for me) simple problem. I want to open a file in eclipse FROM Mac's finder. Whenever I try, I get the alert that Eclipse cannot open that file. Yet, from within Eclipse I can open the file, either by double clicking it in the Explorer/Navigator window or going file/Open File ... At the end of the day, I wa...

OpenAL on Mac OS X: Setting AL_SAMPLE_OFFSET does nothing

Hi, at work, we're unable to use alSourcePause() to pause sounds, and in any case we might want to start the sound with an offset. We're performing a "resume" by doing alSourcei(this->sourceId, AL_SAMPLE_OFFSET, this->sampleOffset); with a sample offset that we retrieved with alGetSourcei(). We tried using AL_SEC_OFFSET, AL_BYTE_OFFSET...

How do you include a preinstall script in an installer built via the packagemaker shell command?

I'm creating an installer via the packagemaker command as part of a script. I create the folder hierarchy in stagedRootPath and then use the --root parameter to build the installer. The problem is that I want to install things in the installing user's home directory, which I don't know when I build the installer. I doubt you can have som...