Cocoa/MacRuby: How to write a toolbar which accepts custom items?

Posted by Joseph Melettukunnel on Stack Overflow See other posts from Stack Overflow or by Joseph Melettukunnel
Published on 2011-06-28T12:53:06Z Indexed on 2011/06/28 16:22 UTC
Read the original article Hit count: 278

Filed under:
|
|
|

I'm doing my first steps in MacRuby. Does anyone know how I can add a custom Toolbar to my Cocoa/MacRuby application, which will accept "regular" items for e.g. switching the view (see http://www.stevestreeting.com/wp-content/uploads/2011/06/SelectableToolbarDemo001.png).

I've read some tutorials and I guess I have to create a custom delegate for the Toolbar and then connect it via the Outlets window, but how does the myCustomDelegate.rb have to look like?

Thanks a lot!

Cheers

© Stack Overflow or respective owner

Related posts about ruby

Related posts about cocoa