Cocoa : Drag/ drop from a table view onto a NSTextfield
Cocoa : Drag/ drop from a table view onto a NSTextfield
- Subject: Cocoa : Drag/ drop from a table view onto a NSTextfield
- From: "vibhatha v" <email@hidden>
- Date: Sun, 13 Jul 2008 12:43:50 +0530
Hi,
I wanted some inputs regarding drag/ drop functionality in cocoa.
I have two scenarios as below:
1. I have a text field and a table view in 2 different windows.
I drag and drop a row from the table view to the textfield.
Now, after drop, i would want to have a database transaction.
I would want to validate the text that i have dropped onto the text field,
and save the text that i have dropped onto the text field in the database.
Could you please let me know as to which method can i use to tell me that
the drop has been completed? So that i can do my front end validations on
the text that i have dropped.
2. Suppose a text is already present in a text field. Now, since the text
field is editable, i can drag and drop another row of the table view onto
this text field.
Now, the new text would be superimposed on the old text in the text field.
Is there a way, i can prevent this from happening?
Thanks and Regards,
Vibhatha
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden