View Single Post
Old 01-08-2008, 06:07 AM  
iMind
Confirmed User
 
Join Date: Nov 2007
Posts: 937
REALbasic Drag and Drop Question

Hey , Asked a few different boards but this place seems to be full of info under all the BS so I thought I'd try here.

I'm coding a mac application using Real basic and I'm trying to use drag and drop to move some files around,

Basically I have a drop zone coded and working and I want it to move any files dropped on it to a specified folder

Here's my code so far on the "DrobObject" event

Quote:
if obj.FolderItemAvailable then
MsgBox obj.FolderItem.AbsolutePath

Dim source, destination as FolderItem
source=GetFolderItem(obj.FolderItem.AbsolutePath)

destination=GetFolderItem("/Applications/AppFolder/Custom/")
source.MoveFileTo destination
if source = nil or not source.Exists then Status.text="Source file issues"
if destination = nil or not destination.Exists then Status.text="destination file issues"

end if
My Message box is displaying the paths, so I know the source is good,
And if I mess with the destination path it throws a error too .. so I know I coded that properly, I'm just not moving ANY files and it's getting me pretty upset now after 18 hours ..

Any ideas ?
iMind is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote