63 [argValue removeAllObjects];
64 [argValue addObject: aCMenuItem];
65 }
66
67 //-(void) dealloc { [super dealloc]; }
68 //- (void)finalize { [super finalize]; }
69
70 @end
71
72 /*
73 * Class: sun_lwawt_macosx_CMenuComponent
74 * Method: nativeDispose
75 * Signature: (J)V
76 */
77 JNIEXPORT void JNICALL
78 Java_sun_lwawt_macosx_CMenuComponent_nativeDispose
79 (JNIEnv *env, jobject peer, jlong menuItemObj)
80 {
81 JNF_COCOA_ENTER(env);
82
83 [JNFRunLoop performOnMainThread:@selector(disposer)
84 on:((id)jlong_to_ptr(menuItemObj))
85 withObject:nil
86 waitUntilDone:NO];
87
88 JNF_COCOA_EXIT(env);
89 }
|
63 [argValue removeAllObjects];
64 [argValue addObject: aCMenuItem];
65 }
66
67 //-(void) dealloc { [super dealloc]; }
68 //- (void)finalize { [super finalize]; }
69
70 @end
71
72 /*
73 * Class: sun_lwawt_macosx_CMenuComponent
74 * Method: nativeDispose
75 * Signature: (J)V
76 */
77 JNIEXPORT void JNICALL
78 Java_sun_lwawt_macosx_CMenuComponent_nativeDispose
79 (JNIEnv *env, jobject peer, jlong menuItemObj)
80 {
81 JNF_COCOA_ENTER(env);
82
83 [ThreadUtilities performOnMainThread:@selector(disposer)
84 on:((id)jlong_to_ptr(menuItemObj))
85 withObject:nil
86 waitUntilDone:NO];
87
88 JNF_COCOA_EXIT(env);
89 }
|