Access handler from other script results in non-defined method...

Hi there,

I use this script:

property draggedimagename : missing value

script AppDelegate
	property parent : class "NSObject"
	property ImageDragDrop : missing value
	property draggedimage_text_path : missing value
	
	on applicationWillFinishLaunching_(aNotification)
		-- Insert code here to initialize your application before any files are opened 
		ImageDragDrop's registerForDraggedTypes_({"public.image"})
	end applicationWillFinishLaunching_
	
	on update_draggedimage_(sender)
		log "Updating"	
		draggedimage_text_name's setStringValue_(draggedimagename)
		log "Updated"
	end update_draggedimage_
	
	on applicationShouldTerminate_(sender)
		-- Insert code here to do any housekeeping before your application quits 
		return current application's NSTerminateNow
	end applicationShouldTerminate_
	
end script

script TheImageWell
	property parent : class "NSImageView"
    
	on draggingEntered_(sender)
		log "entered"
		return current application's NSDragOperationCopy
	end draggingEntered_
	
	on performDragOperation_(info)
        log "Processing"
		set pb to info's draggingPasteboard()
		set theURL to pb's readObjectsForClasses_options_({current application's NSURL}, missing value)'s lastObject()
		set draggedimagename to theURL's lastPathComponent()
                AppDelegate's update_draggedimage_("hi")
                log "Processed"
		return true
	end performDragOperation_
end script

As you can see, the second script (“ImageWell”) accesses

 AppDelegate's update_draggedimage_("hi")

.

I’ve correctly connected the draggedimage_text_path to the appropriate NSTextField.
However, I get the error “*** -[TheImageWell performDragOperation:]: unrecognized function setStringValue_. (error -10000)”.

setStringValue_() has always worked for me before, why doesn’t it now?

Thanks in advance,

Isaiah van Hunen

Where did draggedimage_text_name come from?