FROM : I. Savant
DATE : Thu Apr 05 22:01:47 2007
On 4/5/07, Scott Anguish <<email_removed>> wrote:
>
> There isn't much extensive to it. You simply start at the closest
> rectangle and test the bounds against the mouse location. First hit
> is the one that you drag.
>
So you're saying the z-order should be managed by the image's
position in the array (index zero being the topmost image)? If so,
that's even better than maintaining a "z-order" property. :-) Just
move the images around in the array to change the z-order.
(sigh) No matter how efficient you think you've made something,
someone always comes along and points out a way you can make it even
more so. :-}
--
I.S.
DATE : Thu Apr 05 22:01:47 2007
On 4/5/07, Scott Anguish <<email_removed>> wrote:
>
> There isn't much extensive to it. You simply start at the closest
> rectangle and test the bounds against the mouse location. First hit
> is the one that you drag.
>
So you're saying the z-order should be managed by the image's
position in the array (index zero being the topmost image)? If so,
that's even better than maintaining a "z-order" property. :-) Just
move the images around in the array to change the z-order.
(sigh) No matter how efficient you think you've made something,
someone always comes along and points out a way you can make it even
more so. :-}
--
I.S.
| Related mails | Author | Date |
|---|---|---|
| Fen Soares | Apr 5, 21:01 | |
| Scott Anguish | Apr 5, 21:49 | |
| I. Savant | Apr 5, 22:01 | |
| Scott Anguish | Apr 5, 22:07 | |
| Scott Anguish | Apr 5, 22:10 | |
| Michael Watson | Apr 5, 22:13 | |
| Michael Watson | Apr 5, 22:14 | |
| I. Savant | Apr 5, 22:16 | |
| Fen Soares | Apr 6, 10:10 |






Cocoa mail archive

