New topic in General: 

Open Source Apple Leopard Finder/iTunes Browser Class

MadDoc - Sun Mar 30, 2008 10:06 am

<http://forums.realsoftware.com/viewtopic.php?t=18634>
                                                                                
                                                                                
I've decided to release the source code and documentation for a class I have 
been working on. It is unfinished but functional. I am releasing it because I 
need help adding some crucial components and keeping it closed source is likely 
to make it more difficult to finish.

Essentially, this control aims to mimic the Apple TreeView control that is seen 
on the left-hand side of iTunes, Apple Mail and the Mac Finder.

Here is a simple screenshot:



At the moment it supports adding categories, folders and simple cells. The text 
and icon of each cell/folder can be customised. It is also capable of 
displaying a pretty bubble on the right-hand side displaying the number of new 
items in a child (this is simply an integer attached to each cell).

Drawing is handled automatically by the control.

The control is called AppleListbox and it relies on a 'helper' class 
(AppleListboxCell) to manage the listbox data.

Details (including full documentation in wiki format on all methods and 
properties) can be found on Google Code at:

http://code.google.com/p/applelistbox/

There are a few outstanding issues (see here for the current list) and I would 
really appreciate anyones help with this project.

It strikes me that anyone who is making software for the Mac using RB may well 
have a need for a control like this (I know I do) and it is in lots of people's 
interests to help out.

The highest priority is to enable/add the ability to drag reorder the cells. I 
am struggling to implement this and I am willing to share all of this code in 
the hope that someone could help me out.

You are free to use the code as you see fit although I do ask that you credit 
me in any 'About' box in your finished application.

I hope someone can help out and that people find this a useful stepping stone.

Thanks,

MadDoc                                                                          
        
_________________
MacBook Pro 2.2Ghz, 2GB RAM, OSX 10.5.2
Figa Software                                   
                                                                                
                                                                                
                                                                                
                                                                                
                                        




-- 
Over 900 classes with 18000 functions in one REALbasic plug-in. 
The Monkeybread Software Realbasic Plugin v8.1. 

&lt;http://www.monkeybreadsoftware.de/realbasic/plugins.shtml&gt;

[email protected]

Reply via email to