On 23 Dec 2008, at 05:47, Garth Hjelte wrote:
I have a dylib written in XCode C++ that I use with REALBasic, my RB
stuff uses it with Declares. I don't use RB's SDK.
My dylib uses paths to find files (a no-no, I know), and I need to
stop doing that and use fRef's or something correct.
There's nothing wrong with paths.... they are used all the time in
unix, and they don't seem to have a problem. If anything, paths are
superior, because they can be used with "local" semantics (relative to
the current directory) that don't make sense with folderitems.
The idea that you can still point to a file even if it's moved... is
nice, but fails most of the time even with aliases or FSRefs or
whatever they are. And even then, the alias can take about 64KB on
MacOSX which makes no sense to me. Also, you might WANT it to fail if
it's moved. At least I do for most of the stuff I do. For example if
I'm setting up a website, I don't want to have aliases pointing to a
file in a different folder. if I moved a folder out of my website I
probably did it for a reason.
On the other hand... aliases are good for single user documents, like
a word doc or RB project, something you might move alot. But really
only for... stuff like the recent menu. Outside of the recent menu
there isn't that much point.
Anyhow, to your point... what I often do is use RB folderitems, but
convert them to a shell path and then pass that path to unix's "open"
function. Works for me...
Plus, RB's FolderItem is so effective that I need similar usage with
my dylib.
I'm a newbie in this area, so forgive me.
So my task is to convert a FolderItem to a fRef, or is that what I
should do?
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?
I've been reading the XCode mess thread, and I'm going to try Addy's
framework. But I'd like some direction first if possible, I've never
really made a plugin.
Also, I use RB2007r4, and I'd like to avoid upgrading if possible.
(I stall until I really really really need to.)
Garth Hjelte
Sampler User
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
--
http://elfdata.com/plugin/
"String processing, done right"
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>