Creating a NSWindow programatically in Cocoa

Here is something that I haven’t found on the web: an example of how to create a NSWindow programatically from Cocoa. After a little bit of reading, and some head scratching, this is what I got: NSRect windowRect = NSMakeRect(10.0f, 10.0f, 800.0f, 600.0f); NSWindow *window = [[NSWindow alloc] initWithContentRect:windowRect styleMask:( NSResizableWindowMask | NSClosableWindowMask | NSTitledWindowMask) … Read more

Maybe helping our planet, a little bit

This is not an advertisement. I’ve been looking around for companies that provide SVN hosting and I stumbled on this company that claims to be 100% Carbon Neutral: http://www.dreamhost.com/. This is an interesting idea and I actually felt good about the prospect of doing business with a company that actually cared about the environment. Now, I … Read more

MethylPREDNIsolone

“Eeeerrr!”, Lifting a chair over my head with one hand and carrying my son and wife with the other, I have superhuman strength thanks to the miracle called steroids! I wish! Actually, hurt my back again and was bedridden for nearly a week. On top of that, I found out that I had a really nasty … Read more

Evil bug #1299

I recently had to deal with this nasty bug on Mac OS 10.3.9 that only showed up when you prompted an Alert dialog box during a NSTableView selectionShouldChange method. Here’s what would happen. You have a NSTableView filled with your items. When the user selected any one of the rows, the selection of that row … Read more

“I have nothing to wear”

I spend too much time on the small details. In this case, it’s the look and feel of my website. I’ve spent way too much time on the WordPress Theme webpage checking out dozens of different themes, downloading them, editing them, zipping them, uploading them, editing them, then deciding I don’t like it. I haven’t … Read more