mac

Mac OS X - System Preference Pane won't open

I'm working on a System Preferences Pane. It opens fine on some computers, but on other Macs (all running 10.5.5), the preference pane refuses to load and simply hangs, spitting the following into the console: 11/9/08 8:38:50 PM [0x0-0x31031].com.apple.systempreferences[369] Sun Nov 9 20:38:50 Macintosh.local System Preferences[369] <Er...

CSS/Tables issue on mac

I'm experiencing some problems with CSS and/or tables on my newly redesigned website. Because of the well known "100% div height"-issue, I have resorted to using tables as a structural element of the website. So it looks something like this: HTML MARKUP: <div id="header">...</div> <table> <tr> <td><div id="main">...</div></td> ...

Pickled file won't load on Mac/Linux

I have an application that imports data from a pickled file. It works just fine in Windows but Mac and Linux behaviour is odd. In OS X, the pickled file (file extension ".char") is unavailable as a selection unless I set the file type to *.*. Then, if I select a file that has the .char extension, it won't load, giving the error unpick...

Does a newly produced mac application need to support 10.4, and can I both support 10.4 and prepare for 64bit?

My company is in the process of rewriting our software from scratch, and I'm the one who is going to be doing most of the work in rewriting the Mac client (The core of our software is Windows based, and the Mac client communicates with it through a webservice). This isn't a real heavy app, mainly does some background work tracking stuff...

Problem with applet loading on Mac OS x 10.4

Hello, I have been working on web application which includes java applet. My app is working fine on PC with different browsers like IE and Firefox. The web application hosted on Linux (Ubuntu). I had problem on Mac with Firefox. I was unable to load the applet. This is the error i found in java console. Java.lang.classNotFoundException...

Is anyone using a 2008 MacBook Pro with Vista?

Are you using a MacBook Pro with Windows Vista to write computer programs? I've heard the trackpad is atrocious in Windows. Is this true? What has your overall experience been? How are the drivers for Vista64? I'm interested in running Vista on the bare metal, but if you have experience with VMWare or Parallels I'd like to hear that...

Use AppleScript or other Mac OS method to get filename and path of open files

Is there any way to use AppleScript (or something else) to query currently running applications for the filename and path of the current file that they have open? I know some applications show the filename in the window title which is script accessible, but this isn't a solution as not all do, and hardly any show the path. I also know ...

Is there a method to generate a standard 128bit GUID (UUID) on the Mac?

Is there a built in function equivalent to .NET's Guid.NewGuid(); in Cocoa? My desire is to produce a string along the lines of 550e8400-e29b-41d4-a716-446655440000 which represents a unique identifier. ...

What is the best way to distribute a python program extended with custom c modules?

I've explored python for several years, but now I'm slowly learning how to work with c. Using the python documentation, I learned how to extend my python programs with some c, since this seemed like the logical way to start playing with it. My question now is how to distribute a program like this. I suppose the heart of my question is...

NSAlert without bouncing dock icon

If you put up an NSAlert while your app is in the background your dock icon starts bouncing and keeps on bouncing until you switch back. I find this annoying. Does anyone know how disable that for a single app? ...

What is the minimum Mac OS X needed for iPhone development?

I'm looking to get an über-cheap mac just for iPhone development. What's the oldest OS that works? Any other hardware tips? ...

How to unmount WebDAV volumes using Carbon without a lengthy blocking period?

I'm trying to unmount a WebDAV volume (mounted with FSMountServerVolumeSync()) using either FSUnmountVolumeSync() or FSEjectVolumeSync(). Thus far I've been unable to get either of them to reliably unmount the volume without blocking for more than 20 seconds. While they're blocking I can see webdavfs_agent complaining in Console.app th...

Getting desktop background on Mac

How do I get the current wallpaper on a Mac? Just point me to an API function so I can Google more. Edit: I think I found it. [NSUserDefaults standardUserDefaults] mentioned at http://lists.apple.com/archives/student-dev/2004/Aug/msg00140.html Also possible from shell: defaults read com.apple.desktop Background And from AppleScript: h...

How does disabling a core affect running processes?

I have this application installed on my Macbook Pro that allows me to disable a core on my CPU. It got me wondering: How does disabling a core affect the running processes? I am also interested if disabling a core has an affect on the following Battery Life Heat generation Increased performance when the processor would normally be usi...

Differences between Safari for Windows and Safari for Mac

Hello, What are the differences from a developer point of view between Safari for Mac and Safari for Windows? I think it boils down to evaluate differences between (if I missed something, please correct): - Layout rendering - Javascript behavior The final decision to be made being: Can developers test only on Safari Windows (knowing ...

kbhit() in mac

hi ppl. I am new to cpp in mac. I got error when I used kbhit() in my program. I used #include but got error too, so I searched and test with #include but error is still remained. so plz help me. thanks in advance. ...

Bash configuration on Mac OS X 10.4+

When configuring the bash on OSX via ~/.profile it seems to completely ignore it as soon as ~/.bash_profile exists. If this is correct and expected behavior, should I add my extra configuration stuff to ~/.bash_profile as well or use it instead of ~/.profile? Thanks in advance. ...

What are the factors to decide between using Core Data versus rolling out a custom model?

There might be applications that are not suited for Core Data - image manipulation programs like Photoshop or Gimp for example. But for applications that are suited for Core Data, say Address Book or iCal, what is the criteria to choose Core Data over a custom model? ...

Develop app to run natively or go cross platform?

What's your opinion on whether one should write an application for a specific platform or use a cross platform approach and reach more potential clients? It would be a GUI based application and I'm thinking of using Java. Most of the applications that I've used built on Java don't run as smooth as the native applications on the respect...

OpenCV's Python - OS X

I get the following error while building OpenCV on OS X 10.5 (intel): ld: warning in .libs/_cv_la-_cv.o, file is not of required architecture ld: warning in .libs/_cv_la-error.o, file is not of required architecture ld: warning in .libs/_cv_la-pyhelpers.o, file is not of required architecture ld: warning in .libs/_cv_la-cvshadow.o, file...