FROM : Jim Thomason
DATE : Fri Nov 19 20:47:01 2004
Nevermind, I think I'm good. Basically, I'm still just a rookie with
matrices, cells and drag and drop.
So I subclassed NSMatrix, implemented the dragging protocols in my
subclass, and now appear to be good to go and fully functional. The
drag-n-drop in the matrix pays attention to what's coming in, loads up
the files, highlights and de-highlights the appropriate cells, etc.
Nothing complicated, I just needed to figure out that this was the way
to do it.
Of course, if there is a fancier way to do it w/o my implementing
everything, I'd love to know it. But, AFAIK, this is the proper
approach.
-Jim...
On Fri, 19 Nov 2004 10:37:19 -0600, Jim Thomason <<email_removed>> wrote:
> I'm sure this is easy to do and easily done, but I haven't had any
> luck digging out the proper incantation from any of the archives and
> my knowledge of NSMatrix is sketchy at best.
>
> Anyway, I have an NSMatrix of NSImageCells and all I need is to have
> the image cells be editable. Basically, just have them behave as an
> NSImageView would if the editable flag were on - allow the user to
> drag an image into the cell and have it set.
>
> But I'm not quite sure how to do it. Closest I found was a post
> explaining to subclass NSImageCell (with an example), then just wire
> up the targets and actions, and I'm done! But it didn't explain which
> targets or actions.
>
> Any pointers for what I need to do? A tutorial would be dandy.
>
> -Jim.....
>
DATE : Fri Nov 19 20:47:01 2004
Nevermind, I think I'm good. Basically, I'm still just a rookie with
matrices, cells and drag and drop.
So I subclassed NSMatrix, implemented the dragging protocols in my
subclass, and now appear to be good to go and fully functional. The
drag-n-drop in the matrix pays attention to what's coming in, loads up
the files, highlights and de-highlights the appropriate cells, etc.
Nothing complicated, I just needed to figure out that this was the way
to do it.
Of course, if there is a fancier way to do it w/o my implementing
everything, I'd love to know it. But, AFAIK, this is the proper
approach.
-Jim...
On Fri, 19 Nov 2004 10:37:19 -0600, Jim Thomason <<email_removed>> wrote:
> I'm sure this is easy to do and easily done, but I haven't had any
> luck digging out the proper incantation from any of the archives and
> my knowledge of NSMatrix is sketchy at best.
>
> Anyway, I have an NSMatrix of NSImageCells and all I need is to have
> the image cells be editable. Basically, just have them behave as an
> NSImageView would if the editable flag were on - allow the user to
> drag an image into the cell and have it set.
>
> But I'm not quite sure how to do it. Closest I found was a post
> explaining to subclass NSImageCell (with an example), then just wire
> up the targets and actions, and I'm done! But it didn't explain which
> targets or actions.
>
> Any pointers for what I need to do? A tutorial would be dandy.
>
> -Jim.....
>
| Related mails | Author | Date |
|---|---|---|
| Jim Thomason | Nov 19, 17:37 | |
| Jim Thomason | Nov 19, 20:47 |






Cocoa mail archive

