On 23.12.2008 6:47 Uhr, "Garth Hjelte" wrote:

> So my task is to convert a FolderItem to a fRef, or is that what I should do?

The Plugin SDK offers a FSSpec accessor for RB's FolderItems. You can then
use Carbon functions to convert that to a FSRef and further.

> I understand that if I build my dylib using RB's SDK, I can have a
> FolderItem object in my C++ dylib project. Is this true, and how do I do this?

Either you create your own class, e.g. GHFolderItem, or you can _add_ new
functions to RB's FolderItem, just like you do in plain RB (with the
"extends" keyword, or, if that doesn't work, with the ClassExtension
mechanism). For examples, you might even have a look at my old plugin
sources at my website. They won't build any more (they use CodeWarrior) but
you can still use the sources:

http://www.tempel.org/rb/

And make sure you read the plugin API docs from the RB SDK. They're not
fully up-to-date but contain good guidelines.



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to