• 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
Re: Custom Views and Dragging ... [ with attitude ]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom Views and Dragging ... [ with attitude ]


  • Subject: Re: Custom Views and Dragging ... [ with attitude ]
  • From: J Nozzi <email@hidden>
  • Date: Thu, 22 Apr 2004 08:18:48 -0400

On Apr 22, 2004, at 2:47 AM, m wrote:

Thank you. Succinct, and not parroted. ;-) So the way it should go is something like: "user begins dragging custom view, custom view 'image' is created for use with drag operation, drag operation receiver handles things like the 'plus' cursor and possibly moves other custom views out of the way (a la iMovie), and accepts the drop, the custom view is 'removed' from the sending superview then added to the target/receiving superview."

Is that about right?

Yes.


Much thanks, that's helpful.


If so, does anybody have a clean example project that does just this? I like clean examples that don't combine other 'tricks' into one - it just makes it easier to grasp the subject you're trying to learn when there's nothing else mixed in. ;-)

There are examples of simple drag and drop, but not with the level of specialization and sophistication you're looking for. Another thing to keep in mind is that it's not simple to do all of what you want to do. If you're familiar and experienced enough with Cocoa, you could probably throw something together fairly easily, but it might not be a very general solution.


That's pretty much what I figured. I couldn't get enough information out of the existing examples to clue me in to how to do this the iMovie way. That answers my main question insofar as examples, but I still think we could all benefit from more explanations/examples/tutorials on this topic. The more explanations we have from multiple viewpoints, the easier it is to understand.

There's no way around it. You are going to have to get your hands dirty and figure out how all this stuff works, get good at it, and design what you need yourself. It will probably a while.


Ah, well. The above 'steps' now make sense and I think I've got enough to re-read everything with new eyes. It's not an alternate explanation, but it's at least *some* newly-phrased information, which is all I wanted.

Thanks again.

- J
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Custom Views and Dragging ... (From: J Nozzi <email@hidden>)
 >Re: Custom Views and Dragging ... (From: Allan Odgaard <email@hidden>)
 >Re: Custom Views and Dragging ... [ with attitude ] (From: J Nozzi <email@hidden>)
 >Re: Custom Views and Dragging ... [ with attitude ] (From: J Nozzi <email@hidden>)
 >Re: Custom Views and Dragging ... [ with attitude ] (From: m <email@hidden>)

  • Prev by Date: Adding table columns with image cells - the problem
  • Next by Date: java - reading and writing preferences
  • Previous by thread: Re: Custom Views and Dragging ... [ with attitude ]
  • Next by thread: [Moderator] Re: Custom Views and Dragging ... [ with attitude ]
  • Index(es):
    • Date
    • Thread