Re: Re: Who call observers for any event.
Re: Re: Who call observers for any event.
- Subject: Re: Re: Who call observers for any event.
- From: "prashant sharma" <email@hidden>
- Date: 26 Aug 2005 05:32:29 -0000
Hi,
Actually i hv one cocoa application and i want to connect it with java through JNI. When i did that sum functionaly of application didn't worked.
What i found after debugging is that when application is called from java, the oberevers created for getting the notifications from the shared workspace notification center are not being called. I think that it has something to do with JVM security. Once u call any function of library (as my application is linked with java as library) through java program, its security doesn't apply. So u can do anything, however i think to call back again in to library function, (when any notification is there at notficcation center) which is now under the JVM security is not possible. This i think can be the reason for notifications not being obtained by observor. However i am able to carry out any other task like opening up any application or something like that.
That's why i asked that who sends the notification, if it is some thread which is not one of the threads of our program, then it is quite possible that above statments are possible for notifications not being obtained by observor.
I don't whether i am thinking in right direction or not.
Regards,
Prashant
On Thu, 25 Aug 2005 j o a r wrote :
>
>On 25 aug 2005, at 11.44, prashant sharma wrote:
>
>>NSApp will receive events from window server which are only related to NSwindows created by our application. So the event corrsponding to this notification will not be caught by NSApp. So who calls the observor when a new application is launched. Does the OS process calls the observor?
>
>Why do you need to know? What is it that you are trying to accomplish?
>
>I think that we could provide you with a better advice if we knew the answer to these questions.
>
>j o a r
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden