« PSIG 105 | Dissasembling on OS X | Main | PSIG 107 | Xmo'd + mogenerator: Seamless Core Data code generation »

PSIG 106 | NSToolbar

Monday, August 6, 2007

(What is PSIG? | PSIG 106 announcement)

Items of Interest
NSToolbar

Great presentation by Dave and El Wolfo involving a cowboy hat, a gaucho hat, methods named "spanishize" that define anything starting with "El " as Spanish, and oh -- we got to see some live debugging ;). Summary:

Currently, Interface Builder doesn't help you create toolbars, so you either have to do it in code or use Belkadan's GenericToolbar palette.

Doing it in code: After allocating your toolbar, initialize it with a unique identifier (initWithIdentifier) so that Cocoa can automatically remember user customizations to the toolbar. You'll also have to set setAutosavesConfiguration: and setAllowsUserCustomization: to YES. Once you've created and set the delegate, tell your window to setToolbar:toolbar.

There are four basic methods you need to manage your toolbar:

GenericToolbar is the non-code alternative: It has a nice drag/drop interface for adding and removing items as well as hooking up items to your controllers. It doesn't work very well with bindings, so it's better to do those in code.



Thanks to Gruber for the great wwdc photo upon which this is based


C4[1] this weekend!

Ok, I think this is the most excited I've ever been about a tech event. I can't wait for the sessions and I'm hugely looking forward to meeting everybody. I'm actually going to be manning the registration booth so I'll at least get to greet everyone :)

Hay -- anybody out there have an idea for Iron Coder that could use my help? I'm pretty psyched about the announced "API" because it would seem I could easily make use of my art/design/webcode-fu, but I'm not coming up with any ideas...

1:39 AM

Comments

Bah! Artist!
*jealous of gorgeous web design*

Posted by Patrick at September 1, 2007 10:15 AM

Ah, your site looks gorgeous! All of you computer science lingo goes right over my head, though! :3 Looks like you're having fun, at least! Are these classes you're discussing, or just meetings for computer science people? It might be fun to go to one of these with you! Haha, I wouldn't know what in the world they were talking about, though. :D

Posted by Misty at September 11, 2007 7:53 AM

"Tantalizing"--haha! Yes, the professor made the class try to speculate what "a family of toilets/shuns/the one with flushed cheeks" really meant/implied; I don't think anyone had any idea. I mean, even I just think it sounds right...

By the way, I still like the surreal lighting in the western pic. ^^

Posted by Weien at September 13, 2007 3:44 PM

"I'm afraid that curing your particular ailment is beyond my mortal powers. However, I do have the unique superability to do some very wondrous things with squares of colored paper."

Posted by Weien at September 28, 2007 1:01 AM

"He was a modest man, in the same way that the modest weekly stipend a rich husband doles out to his new wife is more money than she's ever laid eyes on."

Posted by Weien at October 10, 2007 6:39 PM