Mailing Lists: Apple Mailing Lists

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

Re: Carbon Windows in Java not responding to mouse events



Actually, when you are done could you post with your final successful code snippets? That would be helpful to people who find this thread in the future.

Thanks,
Josh

On Apr 23, 2007, at 9:11 AM, Bjorn Roche wrote:


On Apr 23, 2007, at 11:21 AM, Bjorn Roche wrote:

Hey all,

I am using JNI with cocoa and not having too many problems (except for the memory leak discussed previously). For some cases, I've had to create a carbon window to display some carbon UIs. Unfortunately, they don't seem to respond to my mouse clicks or other input when I display them. Has anyone else seen this? Is there something obvious I might be forgetting, or missing about carbon/cocoa interaction or about carbon in general? My impression is that I don't need to setup a carbon event loop to handle carbon events in a cocoa app because the cocoa app does it for me (Nothing special seems to be happening in apple's CarbonInCocoa sample code), but I don't know much about Carbon (or cocoa, for that matter).


Grugh! I was scratching my head over this all day yesterday and it now looks like I just forgot to add kWindowStandardHandlerAttribute to my carbon window. I will look into this some more and repost only if I'm still having trouble. Sorry to have added to the noise floor.

bjorn

-----------------------------
Bjorn Roche
XO Wave
Digital Audio Production and Post-Production Software


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

- Blasting forth in three part harmony!


 _______________________________________________
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

References: 
 >Carbon Windows in Java not responding to mouse events (From: Bjorn Roche <email@hidden>)
 >Re: Carbon Windows in Java not responding to mouse events (From: Bjorn Roche <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.