1. The List

Here are a few to start. I will add more as I receive them. If you have comments or problems, please note them at the bottom of this page.

original ruby version (click to download) contributor
RoundTransparentWindow RubyRoundTransparentWindow Tim Burks
AppKit/OutlineView RubyOutlineView Tim Burks
NameAndAddress RubyNameAndAddress Yvon Thoraval
WebKit/DOMTreeView DOMTreeView Lon Baker
WebKit/Downloader Downloader Lon Baker

If no link to the original sample code is provided, look for it in /Developer/Examples on Apple computers with the Developer Tools installed.

Did you find an error? Is something missing? Post your comment or suggestion below!

Comments (4) post
  1. yvon_thoraval@mac.com Fri Oct 20 02:40:15 +0000 2006

    Hey all,

    i’m very insteressed upon the WebKit examples, mostly on DOMTreeView, i’ve downloaded both and for both i was unable to compile them using XCode 2.4, i think it’s due to an “i386” directive somewhere.

    let me know, if time permits, what to do in order to let them working on a PPC/G5 setup.

    best,

    Yvon

    here is the error i got for DOMTreeView : Building target “DOMTreeView” of project “DOMTreeView” with configuration “Release” — (1 error, 1 warning) mkdir /Users/yvon/work/RubyCocoa/DOMTreeView/build/Release/DOMTreeView.app/Contents/MacOS cd /Users/yvon/work/RubyCocoa/DOMTreeView /usr/bin/gcc-4.0 -o /Users/yvon/work/RubyCocoa/DOMTreeView/build/Release/DOMTreeView.app/Contents/MacOS/DOMTreeView -L/Users/yvon/work/RubyCocoa/DOMTreeView/build/Release -F/Users/yvon/work/RubyCocoa/DOMTreeView/build/Release -filelist /Users/yvon/work/RubyCocoa/DOMTreeView/build/DOMTreeView.build/Release/DOMTreeView.build/Objects-normal/i386/DOMTreeView.LinkFileList -framework Cocoa -framework WebKit -framework RubyCocoa -arch i386 -Wl,-Y,1455 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk /usr/bin/ld: warning /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/RubyCocoa.framework/RubyCocoa cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded) /usr/bin/ld: Undefined symbols: _RBApplicationMain /Users/yvon/work/RubyCocoa/DOMTreeView/build/DOMTreeView.build/Release/DOMTreeView.build/Objects-normal/i386/main.o reference to undefined _RBApplicationMain collect2: ld returned 1 exit status /usr/bin/ld: warning /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/RubyCocoa.framework/RubyCocoa cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded) /usr/bin/ld: Undefined symbols: _RBApplicationMain /Users/yvon/work/RubyCocoa/DOMTreeView/build/DOMTreeView.build/Release/DOMTreeView.build/Objects-normal/i386/main.o reference to undefined _RBApplicationMain collect2: ld returned 1 exit status Build failed (1 error, 1 warning)

  2. Jonathan Waddilove Thu Nov 02 05:20:39 +0000 2006

    This is a great site, please, please keep it growing. I’m trying to use DOMTreeView and get the following error from XCode build and Go:

    DOMTreeView has exited due to signal 5 (SIGTRAP). [Session started at 2006-11-02 13:17:14 +0000.] 2006-11-02 13:17:14.172 Xcode8917 * NSTask: Task create for path /Users/Jonathan/Documents/Downloads/DOMTreeView/build/Release/DOMTreeView.app/Contents/MacOS/DOMTreeView failed: 8, “Exec format error”.

    my environment is: OS X 10.4.8 PPC

    many thanks

  3. Lon Baker Thu Nov 09 13:08:10 +0000 2006

    To fix the issue, open the project and double click the top item (DOMTreeView) in Groups & Files.

    In the Project Info window that pops up, click the Build tab.

    Next Double click on the Architectures label (not the entries to the right). A popup window should popup in which you can select PowerPC and Intel to build a universal binary.

  4. Praful Sun Mar 16 18:49:08 +0000 2008

    Hi

    I’m looking for a RubyCocoa example that uses the Mac Keychain. I’ve found the two APIs SecChainAddGenericPassword and SecChainFindGenericPassword but can’t call them. I’m possibly missing a “require”.

    Any help appreciated!

    Thanks

    Praful