|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
cocoa Drag-n-Drop?Hey all, I've been wanting to play with tkdnd for a while now, there is lots of potential there. But it doesn't exist for Mac OS X, AFAIK. Any chance that it made it into Tk Cocoa, or that its now easier to port tkdnd to cocoa? .hc ---------------------------------------------------------------------------- "Making boring techno music is really easy with modern tools," he says, "but with live coding, boring techno is much harder." - Chris McCormick ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Tcl-mac mailing list tcl-mac@... https://lists.sourceforge.net/lists/listinfo/tcl-mac |
|
|
Re: cocoa Drag-n-Drop?On 11/4/09 1:42 PM, Hans-Christoph Steiner wrote:
> > Hey all, > > I've been wanting to play with tkdnd for a while now, there is lots of > potential there. But it doesn't exist for Mac OS X, AFAIK. Any > chance that it made it into Tk Cocoa, or that its now easier to port > tkdnd to cocoa? > > .hc > Funny you should ask about TkDND... I've begun work on a port of TkDND 2.0 to OS X, using the Cocoa drag/drop API's. This is the most challenging Tk project I've ever undertaken because it involves interacting with Tk's C API, which I don't have much experience with (my other Tk-Cocoa integration projects involved Tcl calls into Cocoa methods, for stuff like changing the dock icon while the app is running). As a result, my work is in a very early phase, I'm learning a lot as I go, and I don't expect any releases in the immediate future. The initial plan is to support dragging files and text into a Tk window. That's what TkDND on Unix supports. Dragging things out of a Tk window into other app windows or the Finder will come later, if time and my skills allow. I'm not sure if it will be feasible to support Tk-Carbon or not with this. At a minimum there are different ways to obtain a pointer/reference to a Tk window in Carbon and Cocoa. If this can be done easily, with a small amount of code wrapped in an ifdef switch and a configure flag, I'll try to support Carbon. However, I won't write a Carbon dnd implementation. I'd welcome testing assistance when the time comes. And, if anyone wants to assist with the actual coding in Objective-C, that's welcome too. Thanks, Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Tcl-mac mailing list tcl-mac@... https://lists.sourceforge.net/lists/listinfo/tcl-mac |
|
|
Re: cocoa Drag-n-Drop?On Nov 4, 2009, at 5:30 PM, Kevin Walzer wrote: > On 11/4/09 1:42 PM, Hans-Christoph Steiner wrote: >> >> Hey all, >> >> I've been wanting to play with tkdnd for a while now, there is lots >> of >> potential there. But it doesn't exist for Mac OS X, AFAIK. Any >> chance that it made it into Tk Cocoa, or that its now easier to port >> tkdnd to cocoa? >> >> .hc >> > > Funny you should ask about TkDND... > > I've begun work on a port of TkDND 2.0 to OS X, using the Cocoa > drag/drop API's. > > This is the most challenging Tk project I've ever undertaken because > it > involves interacting with Tk's C API, which I don't have much > experience > with (my other Tk-Cocoa integration projects involved Tcl calls into > Cocoa methods, for stuff like changing the dock icon while the app is > running). As a result, my work is in a very early phase, I'm > learning a > lot as I go, and I don't expect any releases in the immediate future. > > The initial plan is to support dragging files and text into a Tk > window. > That's what TkDND on Unix supports. Dragging things out of a Tk window > into other app windows or the Finder will come later, if time and my > skills allow. > > I'm not sure if it will be feasible to support Tk-Carbon or not with > this. At a minimum there are different ways to obtain a > pointer/reference to a Tk window in Carbon and Cocoa. If this can be > done easily, with a small amount of code wrapped in an ifdef switch > and > a configure flag, I'll try to support Carbon. However, I won't write a > Carbon dnd implementation. > > I'd welcome testing assistance when the time comes. And, if anyone > wants > to assist with the actual coding in Objective-C, that's welcome too. > > Thanks, > Kevin Great news! I am not a Cocoa coder nor a Tk C coder, so I don't know how much help I can be. But I will definitely be an avid tester. My guess is that since Carbon is a totally different API, it won't be trivial to add Carbon support. But worth looking tp make sure. .hc ---------------------------------------------------------------------------- If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of everyone, and the receiver cannot dispossess himself of it. - Thomas Jefferson ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Tcl-mac mailing list tcl-mac@... https://lists.sourceforge.net/lists/listinfo/tcl-mac |
| Free embeddable forum powered by Nabble | Forum Help |