mac

How to remove the session start code from XCode 3.2

I recently updated to the new version of XCode and the session start code is very long and appears every time I run the program. Is there any way to shorten it to what it was like in previous versions? (Just the first line) Here's what it says now... [Session started at 2009-09-14 18:49:17 -0400.] GNU gdb 6.3.50-20050815 (Apple version...

Browser Plug-ins Not Loading in WebView Implementation

I have a Cocoa app that I'm trying to write which displays a webpage. This webpage has an embedded quartz composition in the background that plays and works when in Safari, but it does show in my Cocoa application (it just shows the missing plugin icon in the background instead). The weird thing is that it works on another computer that...

test.php cannot output file into Leopard filesystem

may i know what permission do i need to add, to allow test.php to able to write file into macos filesystem PHP Error: <br /> <b>Warning</b>: file_put_contents(20090915203127.jpg) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: Permission denied in <b>/Library/WebServer/Documents/testphp/tes...

Mac OSX System menu name w/Java?

Hello all! I have a slight problem. Having recently migrated on Mac, I've been pulling my hair and searching the web about this but have not found what I was exactly searching for. I want to set the application name in the system menu, which doesn't work at the moment (my main class name is displayed instead of my app name). What propert...

SWT: Unable to resize buttons on a Mac

I am developing a Java application using SWT that contains some buttons with images. On my Windows machine, the button will automatically be large enough to show the entire image in the button. I tried this on a Mac however the button will not become tall enough to fit the entire image. I tried using the setsize() function on the bu...

How to run gdb with -quiet in xcode

I'm a newbie, so you'll have to explain this pretty clearly. I'm looking for a way for Xcode to automatically run gdb with the -quiet command so that it doesn't show startup text. I tried to edit the /Developer/usr/bin/gdb executable by adding -q to the exec lines at the end after "$gdb" in this code (somebody mentioned doing that elsew...

How is the Eclipse JDK setting affecting the system's JDK setting

I was trying to compile a Grails application referencing third party JARs on Mac OSX. Although my system's JRE and JDK is set to Java 1.6 I always got a Compilation error: java.lang.UnsupportedClassVersionError: Bad version number in .class file when accessing classes in the JAR. Also when testing an existing Grails app the default stats...

Is it possible to load a NPAPI plugin in Safari (Mac OS X)?

Hi, I've got some code that lies in a browser, and wrote C++ plugins for both IE (COM/ActiveX) and firefox (NPAPI). I now have to get this code work on Mac OS X. I found some input on apple's site, but it's written in Objective C. I also read about SIMBL, but it seems to deal with Objective C code only, isn't it? So here are my quest...

How to remove Installation of MySQL on Mac OS X

Hello, i need to install older version of mysql server on mac os, but i have newer version i try to remove this newer installation (5.1), but when start old version install (5.0b) message "MySQL 5.0.51b-community for Mac OS X can't be installed in this disk. A newer version of this software alrady exists on this disk" i can't recognize...

How to get the battery life of mac os x macbooks programatically?

What I wanted to do is take a log on battery percentage. I know the equivalent in linux is sysctl(hw.acpi.battery.life). However when I went through the man of sysctl in mac os x I did not find the equivalent code to find it. Can some one point out how to do this using objective c. I can call sysctlbyname but that doesn't have this as in...

Monodevelop on OS X - "Could not find respack" error when building Moonlight project

Hi everyone, I have just downloaded MonoDevelop 2.2 Beta 1 for OS X and I'm getting the error "Could not find respack" when building a Moonlight project. I have created it by using the Moonlight Application Project template, and it fails without making changes. Besides, the template adds some references which MonoDevelop can't resolve -...

How to install iPython on Snow Leopard

Does iPython work on Mac OS X 10.6.1 Snow Leopard? I'm python noob, how can I install iPython on my Mac? Links? suggestions? Thanks ...

Xcode building and resources folders

Hi there, I have several resources in my iPhone app and when they get compiled they all get added to the root of the resources folder in the app regardless of the Xcode grouping structure. This is fine for most things, however there is a set of files that I need to have structured in folder in the app's resources folder. At the moment,...

Is anybody having problems inputing strings in Xcode 3.2?

For some reason excode is throwing this error when I try to cin into a string. test(5640) malloc: * error for object 0x1000041c0: pointer being freed was not allocated * set a breakpoint in malloc_error_break to debug Program received signal: “SIGABRT”. sharedlibrary apply-load-rules all Here is the code that produced that: ...

How do I tell when a CUPS print jobs has been completed plus info about that job?

I need to know each time a Mac print job is created/completed, plus some information about that job (what was printed, pages, copies, etc). The best method I've come up with thus far is to use kqueue() on /var/spool/cups/ and then parse the c##### files as they're created, but I'm wondering if there's a better way. ...

Static libraries in version-cross-compiled program

I have a unix command line app (with big nasty makefile) that I'm trying to run on a mac. I am compiling it on a 10.6 system, with all of the appropriate libraries of course. The deployment environment is a 10.5 system, with no extra libraries. I compiled without -dynamic, and it appears to have static libraries, correctly. When I run i...

Why "Follow symbol under cursor" does not work in QT Creator for Mac OS X?

Hi I'm using QT Creator under Mac osx, but "Follow symbol under cursor" option, to allow me to jump for class and methods' definitions, does not really work... it only works for local symbols. neither does "Switch between method declaration/definition" any ideas? thanks much for any thought Lior ...

How to get back all those good old Xcode features?

After I've upgraded to Snow Leopard and Xcode 3.2, everything was screwed up. It took a while for me to figure out the whole evil was that my old Xcode installation was not really "updated", but replaced. So just everything was gone. All SDKs, Settings, everything. So Code Sense did not work because of no SDK available, and all the othe...

Oracle Sqlplus Problem on Mac OSX Snow Leopard

I just installed the Oracle Instant Client for Mac OSX with the SQLPlus extension and have the following problem. I can connect to a database instance and schema and I can do queries but when I try the "describe command" it just hangs. For example: SQL> SELECT COUNT(*) FROM APPROVABLETAB; COUNT(*) ---------- 8 SQL> desc APPROVABLE...

How to print list of icons from Mac Finder?

I want to print what I see in the finder (using Mac OSX snow leopard). It's a big list of roughly 1,000 icons and I want to print all pages to get a good overview of the contents. The Finder's "View">"As icons" fit perfectly for what I want to print. Question is how do I print this. I cannot just take a screenshot, because the content i...