Crooked Spin

Archive for the ‘Programming’ Category

Programming

October 13, 2006

WebView printing

Printing a WebView seems simple. It responds to print:. So everything’s almost done for you. Just make sure you have the print menu items correctly hooked up to the print: first responder, right? Wrong. Sending the print: message to the WebView will result in only the visible rect being printed. [...]

Programming

June 14, 2006

Date formatters

I ran into the new mode of operation for NSDateFormatter for the first time tonight and I’m really happy about the changes.  Formatting a date using the format the user configured in the International preferences panel in System Preferences is now 2 lines of code.  You don’t have to look up the format strings in [...]

Programming

March 9, 2006

Hole Punching

Just a reminder note for if I ever run into the issue (or want the effect).  NSRectFill sets the current color to the pixels of a rect replacing anything below them.  So if you use a color with an alpha value less then 1, a “hole” will be punched completely through the window.  An NSBezierPath [...]

Computers, Programming

January 3, 2006

Java Curriculums

Joel writes about the The Perils of JavaSchools and I couldn’t agree with him more.  It is something that I’ve thought for awhile now due to my education.  I was about half way though my college career when ASU made the switch from C/C++ to Java and I saw a big decline in the quality [...]

Computers, Programming

December 4, 2005

Favorite File Templates

Daniel over at Red Sweater gives a nice little tip for adding a favorites section at the top of Xcode’s new file window.  Since 95% of the time I’m using 1 of 3 templates it should save a couple seconds here and there.  Plus hunting through the list is a pain sometimes.

Programming

November 8, 2005

Frameworks part uno

As with the CoreData entry I’m going to keep this as a running tips/reminders on creating frameworks.  There seems to be a real lack of information regarding them.  Some of the things that seem basic don’t appear to be documented.

Programming

August 8, 2005

CoreData Tips

I’m going to keep this entry as a running tips/reminders on using CoreData for myself.  i’ll be updating as I come across new things to add.  Please leave comments if you have any cool or informative CD tips to add or if you see that I’m doing something really stupid in one of mine.

General, Programming

July 10, 2005

Mailing Lists

I decided today to switch all of my mailing lists over to a gmail account.  I wanted to consolidate them all into one incoming email address since I’m sick of replies bouncing due to an unsubscribed email address.  I figured I’d use gmail to let google pick up the tab and so I could use [...]

Programming

July 5, 2005

All in One Xcode

I really like the All-in-One window feature of Xcode 2.  It has quickly become my favorite windowing mode.  The big thing that I wish it did is “contextual” toolbars in the project view that are dependent on the type of file being edited.  That way I can have the add entity, add relationship, and add [...]

Programming

June 10, 2005

Xcode macros

Here’s a cool Xcode trick that I never knew it could do. Type any of the prefixes below and then type control-. (period) to expand them to the full text. Control-/ will then select the next placeholder like it does for code completion. This is a really cool feature. Now I [...]