• 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
Design Ideas for dnd
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Design Ideas for dnd


  • Subject: Design Ideas for dnd
  • From: email@hidden
  • Date: Mon, 15 Nov 2004 10:35:41 -0600

I am creating a interface that will allow drag and drop but only within the application no outside data.

On the bottom I will have a large box that can hold available tools. This storage area will constrain the drop

To allow sorting and such but the tool images are of different sizes and therein is the question. Eg implementing

This concept.

 

How do I design this area. I was thinking just of a large nsview subclass.

 So it doesn't overlap objects, go out of bounds and can place the object in a specific location.

 

On init

create a 2d array matrix that holds if the block is empty or not.

Create object array.

Load objects populate matrix & object array

Create a 2d array that contains all the sizes of the tools.

 

On drag

            Send message object id

 

on drop

compare object size to matrix grid at mousepoint

if full or out of bounds --snap back

else drop & update matrix update this item

 

Now that I have kinda explained what I want. Am I even close. Is there a better way.

Thanks

 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Trouble comparing NSCalendarDates
  • Next by Date: Re: Fast Screen update
  • Previous by thread: Re: NSOutlineView - edit one item without editing the next item
  • Next by thread: Custom NSTextView and scrolling problem
  • Index(es):
    • Date
    • Thread