GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   REALbasic Drag and Drop Question (https://gfy.com/showthread.php?t=798028)

iMind 01-08-2008 06:07 AM

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 ?

After Shock Media 01-08-2008 06:09 AM

:error I think Mac questions may be banable around here. :winkwink:

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

iMind 01-08-2008 06:22 AM

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


All times are GMT -7. The time now is 10:40 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123