Archive for the ‘Cocoa’ Category

PhFacebook

Tuesday, June 7th, 2011

Numerology for the Mac uses a framework called PhFacebook to integrate with Facebook so users can’t import there friends’ data and post to their walls. I’ve run into a few problems with using it the way I did in the iOS version of Numerology, so I’ve posted a few fixes. It’s the first open source project I’ve contributed to. I enjoy the feeling of contributing something to some code that many people could benefit from.

Facebook integration is quite common on iOS, but not on the Mac. Let’s change that. Please contribute to PhFacebook and try it out on your Mac app.

CocoaHeads SLC: The Web site

Monday, November 29th, 2010

If you are interested in CocoaHeads SLC, I invite you to join the Google groups site I’ve set up at http://groups.google.com/group/cocoaheads-slc. Become a member and you will be informed of new meetings and be able to provide input into how we proceed.

CocoaHeads SLC?

Saturday, November 27th, 2010

I’m considering starting a Salt Lake City chapter of CocoaHeads (see www.cocoaheads.org). If you would be interested in regularly attending such a meeting or interested in helping run this group, then please let me know. Meetings are held the second Thursday of the month at 7pm. Right now, the best location I can think of is Neumont University.

Hidden Xcode Multi touch gesture

Saturday, June 26th, 2010

I discovered a hidden multi touch gesture on the Macbook track pad that I didn’t know about. At least I haven’t heard of it or seen it documented anywhere.

If you drag up or down with 3 fingers on the track pad while you are in the Xcode editor window it will switch to the file’s counterpart. So if you are in a .m file and Xcode will show the associated .h file. If you are in the .h file it will show you the associated .m file.

It probably works with other counter parts with other file types. Give it a try.

UIDatePickerViewController is in Use

Monday, April 26th, 2010

Today I was working on Numerology for the iPad and I was trying to implement a date picker inside a popover. You can’t just put a UIDatePicker in the popover because you need a view controller. So I created a view controller and called it UIDatePickerViewController. It simply would not work. All I would get is a popover with a black area. I couldn’t figure out what was going on. Then I decided to just use the UIViewController class but load in the nib I created for my view controller. Viola it started to work. Then I realized my class name was the problem. I renamed the class DatePickerViewController and it worked as well. Somewhere Apple must have a private class called UIDatePickerViewController.

Bottom line: Don’t use class names similar to Apple’s class names. It will bite you sooner or later.