Now i can play with this simple method, but there is a mistake, because the Path Control path send an NSUrl object to the QC, and i cannot handle this yet.

But i discovered, the Automator Path Pop-Up button, it is works great, allows dragndrop :)


On Jun 5, 2008, at 3:33 PM, Tamas Nagy wrote:

Thanks for the fast reply, but i find an another simple souliton: i use a Path Control path instead of Textfield, this allows the draganddrop by default, only i need is remove the file://localhost/ string of it inside the compositions.

greetings,

.lov.

On Jun 5, 2008, at 2:51 PM, Christopher Wright wrote:

i work on an app built in quartz composer and with interface builder. This app can play movie files, i use a textfield on the interface, because i drag a movie file to it, the value change to the movies path and when i hit Enter, and i can bind this to a quartz composer movie loader.

This is a simple, but not a user friendly way. I want to make a really usable drag and drop function, so, if i drop a movie file to something, i want to get the movie path to bind the qtz without hit the Enter key.

I am very newbie to Cocoa, and i not found any good tutorial or tip about how can i do this?


This is more of an AppKit/Cocoa question, but I think you might be able to use one of the NSText delegates:
  * – textShouldBeginEditing:
  * – textDidBeginEditing:
  * – textDidChange:

Not sure which off the top of my head, but you can try them all and see.

Also, you could try intercepting the drop from the TextField's view, and manually grab the path from there (and set the textfield's text to the path, so it still behaves correctly). This is a bit trickier, but might be another direction to explore.

--
[ christopher wright ]
[EMAIL PROTECTED]
http://kineme.net/



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to