Archive Info

You are currently browsing the PolyMicro Systems weblog archives for 'Development' category

Cocoa Bindings

Trying to learn how Cocoa bindings work is like trying to learn to tie knots blindfolded. I understand the theory, but the practical application and debugging in my real world application is proving to be very frustrating.

Messages like the contentValues and content bindings need to be bound to the same observable object and unrecognized selector sent to instance 0x16493b40 in the console window are not extremely helpful either.

It would be nice to know which contentValues and content bindings they are talking about and which instance for crying out loud. Which I am almost on the verge of doing.

Xcode conflict with .gdbinit

After playing around for two days in gdb I returned to Xcode to discover the Xcode debugger was having great difficulty syncing up. If I tried to manually sync I would get an error about a dylib not being found (even though it was fine). After trashing prefs and cache files the problem persisted. I switched over to another account and all was well so it had to be something about my home folder.

More poking and prodding was fruitless when it occured to me that .gdbinit might be the culprit. And so it was, moved .gdbinit aside and all is once again well. I will just have to manually source it when I need to use since I can’t see a way to determine if Xcode is loading or not.

gdb Macsbug, where have you gone?

Arrg, the gdb Macsbug plugin seems to be broken on Leopard. First of all, the files in /usr/libexec/gdb/plugins/Macsbug were all setguid to procmod so I unset the bits and am now getting

NSCreateObjectFileImageFromFile failed for "/usr/libexec/gdb/plugins/MacsBug/gdbinit-MacsBug" (error 2).

More good stuff on using gdb.

Red Sweater Blog - Hexy Little Thing

(Via .)