osx

Phone screen questions for Mac OS X developer positions?

Can anyone suggest a few basic phone screen interview questions for prospective Mac OS X desktop application developers? Just something to help determine if the candidate has really done real development on the Mac as opposed to someone who knows some buzzwords and is trying to fake his way into an in person interview. TIA. ...

What EXACTLY makes Mac OS X more secure than Windows XP/Vista/7?

Please don't respond with "a lot less malware/viruses for OS X". And please no hype and no fan-boy answers. The reason why I am asking this here is because I want feedback from developers who write software for both systems and have intimate knowledge of the security restrictions in which to operate. Using both Windows and OS X concurre...

MySql in WinXP and Mac OS X

Hello Folks, I am facing this bizarre problem. I am coding on my machine in Win XP and then moving all the code to Mac OS X machine. Running it using the jars from XP machine. I am coding in java and using hibernate for database processing. Somehow I am not able to insert one row, while the keys are generated using the increment ge...

Excel formulas giving #VALUE! error when ported to mac

I want to be able to sum up the number of cells in a range that have a non-null value in them. On a PC running XP and excel I entered =SUM(IF(G$19:G$1034="",0,1)) and it spit out the correct answer. Now the same spreadsheet on a Mac running excel 2004 for Mac gives that a #VALUE! error. Any thoughts on why? ...

How is iPhone OS developed?

Is it a separate branch of Mac OS X? If so, does the code get synchronized with 10.6? (that might be somewhat a separate question, but why couldn't they make a Mobile Leopard rather then separate OS for iPhone?) Please do try to respect the Apple's NDAs while answering. Update: I start to get the rough idea: the open source kernel...

How can I get dev tools (such as make) for Mac OS X via the command line

Hi guys - I am in a bit of a pickle. I have a few Mac Minis that I am colocating at my ISP and only have shell access (via ssh for example) to administer the boxes. This is fine, but I just realized - after downloading some tar files for a couple of packages I needed - that I don't have the basic dev tools installed (such as make, fo...

Multiple Dashboard widget instances don't survive widget update. Any way to prevent this?

I've written a Mac OS X Dashboard to show the StackOverflow flair of yourself and other people. My problem is that whenever I update that widget to a new version, all previous instances are removed and a single new instance is created on the Dashboard. So if you previously followed the flair of 4 people you'll have to recreate the widge...

What's a good beginner setup for C++/Python on OSX?

I'm looking for a good setup for learning C++ and eventually Python on Mac OSX. As I'm going use C++ I don't want to use XCode, as (I understand) this is primarily used with Objective-C. I have a small bit of experience in Java and MATLAB programming, and math is probably not going to be my main problem. I was thinking on an approach loo...

Where are Dashboard Widget preferences actually saved?

This is a followup question to my other widget-related question. I'd like to check what's actually written into the preferences of the widget. Where is that data actually stored? ...

Mac OS X: trying to link (ld) against a framework.

Hi; I am reading "Advanced Mac OS X Programming" by Mark and Aaron. I can't get one terminal statement to work correctly : cc -g -o useadd -F./Adder/build -framework Adder useadd.m It's on page 45 - Chapter 3 (Libraries). As you can see, I am trying to link useadd.m against a framework created using Xcode. When I run this command, ...

Macports and Rubygems issues on Snow Leopard

I've installed Snow Leopard over Leopard with macports and rubygems already installed. This was regular install, not a clean "archive and erase" install. It turned out, that SL has 64bit versions of shared libraries and many development utilities do not work. For example, "port" command complains on incompatible tcl library, or ruby can...

Is it possible to create new widget instances from within a Dashboard widget?

This is a followup to this question. It seems to be impossible to to simply keep already configured dashboard widget instances. An alternative way would be to recreate previous instances. Is it possible to create new Dashboard widget instances from within another widget? I couldn't find anything about this topic, yet. ...

Core Data: Strange bindings error on re-opening a document. Help?

Hi, I have been building a core data application to administrate some data and I've been stumped by a bug that indicates my objects aren't KVO compliant. However, I haven't modified the default KVO compliance of the NSManagedObject, and now I'm left scratching my head. The area of the application that the bug is affecting is that of cre...

Programatic desktop icon placement

I am looking for a way to programatically get/set the icon positions on the desktop. Clearly there is some "state" stored in a somewhere. Does anybody know here? I am trying to get a proof of concept going on ANY platform so if you know how to do it on XP in gnome, KDE or Mac OS I would really like to hear about it. ...

gprof reports no time accumulated

I'm trying to profile a C++ application with gprof on a machine running OSX 10.5.7. I compile with g++ in the usual way, but using -pg flags, run the application and try to view the call graph with gprof. Unfortunately my call graph contains all zeroes for all time columns. The values in the "called" columns have reasonable values so it...

Why does Spotlight sometimes not run my query?

I'm playing around with the Spotlight API, both the Carbon and Cocoa versions, and I seem to have the same problem crop up every once in a while: The query never runs, and never fires any notifications. However, I want to stress that most of the time it does run, so something strange is going on. I'm not writing any particular app. This...

Passenger not passing params hash to Rails application on Mac OS X

I have an existing rails application that works well on Passenger for Linux. It works well on a local mongrel instance. The DB is postgresql in all cases. However, when I installed Phusion Passenger 2.2.4 on a spare Mac with OS X Leopard (running 10.5.7), the params hash does not get passed to the underlying rails application. Are there ...

Getting audio/video device names and GUIDs in Mac OS X

I'm trying to script an audio/video capture application that requires me to specify both a name (eg: Built-in Microphone) and an ID (eg: AppleHDAEngineInput:1) to identify the device. The problem I'm having is that in my existing application, I only have access to the name of the device (e.g. Built-in Microphone or USB Video Class Video...

Google App Engine cannot find gdata module

I can run a simple "Hello World" Google App Engine application on localhost with no problems. However, when I add the line "import gdata.auth" to my Python script I get "ImportError: No module named gdata.auth". I have installed the gdata module and added the following line to my .bashrc: export PYTHONPATH=$PYTHONPATH:/Library/Python/...

Does [NSStepper setMinimum/setMaximum] also set the value?

Given an NSStepper with a minimum/value/maximum already set, if I set the minimum to a valued between value and maximum, will the NSStepper's value change? I know I could just try it, but that would only tell me for my current OS, and I can't find any documentation to indicate one way or the other. ...