REALbasic Drag and Drop Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iMind
    Confirmed User
    • Nov 2007
    • 937

    #1

    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

    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 ?
  • After Shock Media
    It's coming look busy
    • Mar 2001
    • 35299

    #2
    I think Mac questions may be banable around here.

    Just kidding, actually I know zero coding and the last thing I thought I would be clicking was a mac related programing question.

    [email protected] ICQ:135982156 AIM: Aftershockmed1a MSN: [email protected]

    Comment

    • iMind
      Confirmed User
      • Nov 2007
      • 937

      #3
      It's cool LOL, I knew I was taking a shot in the dark.
      This boards hella fast compared to the RB boards I posted on, so figured it's worth a shot :D

      Comment

      Working...