• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cocoa : Drag/ drop from a table view onto a NSTextfield
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Cocoa : Drag/ drop from a table view onto a NSTextfield
      • From: "vibhatha v" <email@hidden>
    • Re: Cocoa : Drag/ drop from a table view onto a NSTextfield
      • From: Marco Masser <email@hidden>
  • Prev by Date: Re: Problem on reload data source of a table view
  • Next by Date: Google map view in my iPhone application
  • Previous by thread: NSMenuItem custom view and isHighlighted
  • Next by thread: Re: Cocoa : Drag/ drop from a table view onto a NSTextfield
  • Index(es):
    • Date
    • Thread