Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Carbon/Cocoa clipboard problem



Hi,

Puzzler for the day:

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.

Thanks,

Brian

 _______________________________________________
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

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.