I have a Java-based UI, and a C/C++ Carbon-based UI, each in separate
windows, where neither seems to "know" about each other's clipboard
unless I
switch out of the application (both UI's) and back in again. If I
don't
switch out, then Java only copies and pastes between Java windows,
and the
Carbon-based UI only copies and pastes between Carbon-based windows.
I'd like copy and paste to just work, which means when I copy in a
Java
window, I can paste it in a Carbon-based window without switching
out and in
again.
Has anyone experienced something like this (SWT-AWT for example),
and do you
know what the trick is? I have a Carbon Event handler that can
listen.
Listening to kEventWindowActivated and kEventWindowDeactivated
seems like a
good idea, but I haven't figured out what to call.
to create an AWT Frame and TextArea. Copying from one to the other
worked fine, so I'd take a look at SWT's Clipboard implementation.
The SWT just grabs the data of type kScrapFlavorTypeText and then
returns it as a CFStringRef.
Or are you not working with text in this case?
Scott
------------------
Scott Kovatch
Apple Inc.
Java Runtime Classes
Cleveland Hts, OH
email@hidden
I am Scott Kovatch, and I approved this message.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden