Example #1
0
void MCS_loadurl(MCObject *p_object, const char *p_url, const char *p_message)
{
    bool t_success = true;
    MCSLoadUrlState *t_state = nil;
    char *t_processed = nil;
    MCNameRef t_message = nil;
    t_success = MCMemoryNew(t_state) &&
                MCSystemProcessUrl(p_url, kMCSystemUrlOperationStrip, t_processed) &&
                MCNameCreateWithCString(p_message, t_message);

    if (t_success)
    {
        t_state->url = t_processed;
        t_state->message = t_message;
        t_state->status = kMCSystemUrlStatusNone;
        t_state->object = p_object -> gethandle();
        t_state->data . bytes = nil;
        t_state->data . size = 0;

        t_success = MCSystemLoadUrl(t_processed, MCS_loadurl_callback, t_state);
    }

    if (t_success)
        MCresult->clear();
    else
    {
        MCCStringFree(t_processed);
        MCNameDelete(t_message);
        MCMemoryDelete(t_state);
        MCurlresult -> clear();
        MCresult->sets("error: load URL failed");
    }
}
Example #2
0
IO_stat IO_read_nameref(MCNameRef& r_name, IO_handle stream, uint1 size)
{
	IO_stat t_stat;
	t_stat = IO_NORMAL;

	char *t_string;
	t_string = nil;
	if (t_stat == IO_NORMAL)
		t_stat = IO_read_string(t_string, stream, size);

	if (t_stat == IO_NORMAL &&
		!MCNameCreateWithCString(t_string != nil ? t_string : MCnullstring, r_name))
		t_stat = IO_ERROR;

	delete t_string;

	return t_stat;
}
Example #3
0
void RTFReader::ProcessField(void)
{
	if (m_field_inst == nil)
		return;

	char *t_type, *t_data;
	t_type = m_field_inst;
	while(isspace(*t_type))
		t_type++;
	t_data = strchr(t_type, ' ');
	if (t_data != nil)
	{
		char *t_type_end;
		t_type_end = t_data;

		while(isspace(*t_data))
			t_data++;
	
		*t_type_end = '\0';

		if (*t_data == '"')
		{
			char *t_data_end;
			t_data += 1;
			t_data_end = t_data;
			while(*t_data_end != '\0' && *t_data_end != '\"')
				t_data_end++;
			if (*t_data_end == '\"')
				*t_data_end = '\0';
			else
				t_data = nil;
		}
		else
			t_data = nil;		
	}

	if (t_type != nil && t_data != nil)
	{
		MCNameRef t_name;
		/* UNCHECKED */ MCNameCreateWithCString(t_data, t_name);
		if (MCU_strcasecmp(t_type, "HYPERLINK") == 0)
		{
			m_state . SetHyperlink(t_name);
			m_state . SetFontStyle(m_state . GetFontStyle() | kRTFFontStyleLink);
		}
		else if (MCU_strcasecmp(t_type, "LCANCHOR") == 0)
		{
			m_state . SetHyperlink(t_name);
		}
		else if (MCU_strcasecmp(t_type, "LCMETADATA") == 0)
		{
			MCNameRef t_name;
			/* UNCHECKED */ MCNameCreateWithCString(t_data, t_name);
			m_state . SetMetadata(t_name);
		}
		else if (MCU_strcasecmp(t_type, "LCLINEMETADATA") == 0)
		{
			MCNameRef t_name;
			/* UNCHECKED */ MCNameCreateWithCString(t_data, t_name);
			m_state . SetParagraphMetadata(t_name);
		}
		MCNameDelete(t_name);
	}

	free(m_field_inst);
	m_field_inst = nil;
}
Example #4
0
void MCU_initialize_names(void)
{
	/* UNCHECKED */ MCNameCreateWithCString("msg", MCN_msg);
	/* UNCHECKED */ MCNameCreateWithCString("each", MCN_each);
	/* UNCHECKED */ MCNameCreateWithCString("it", MCN_it);
	
	/* UNCHECKED */ MCNameCreateWithCString(DEFAULT_TEXT_FONT, MCN_default_text_font);

	/* UNCHECKED */ MCNameCreateWithCString("appleEvent", MCM_apple_event);
	/* UNCHECKED */ MCNameCreateWithCString("arrowKey", MCM_arrow_key);
	/* UNCHECKED */ MCNameCreateWithCString("assertError", MCM_assert_error);
	/* UNCHECKED */ MCNameCreateWithCString("backspaceKey", MCM_backspace_key);
	/* UNCHECKED */ MCNameCreateWithCString("closeBackground", MCM_close_background);
	/* UNCHECKED */ MCNameCreateWithCString("closeCard", MCM_close_card);
	/* UNCHECKED */ MCNameCreateWithCString("closeControl", MCM_close_control);
	/* UNCHECKED */ MCNameCreateWithCString("closeField", MCM_close_field);
	/* UNCHECKED */ MCNameCreateWithCString("closeStack", MCM_close_stack);
	/* UNCHECKED */ MCNameCreateWithCString("closeStackRequest", MCM_close_stack_request);
	/* UNCHECKED */ MCNameCreateWithCString("colorChanged", MCM_color_changed);
	/* UNCHECKED */ MCNameCreateWithCString("commandKeyDown", MCM_command_key_down);
	/* UNCHECKED */ MCNameCreateWithCString("controlKeyDown", MCM_control_key_down);
	/* UNCHECKED */ MCNameCreateWithCString("copyKey", MCM_copy_key);
	/* UNCHECKED */ MCNameCreateWithCString("currentTimeChanged", MCM_current_time_changed);
	/* UNCHECKED */ MCNameCreateWithCString("cutKey", MCM_cut_key);
	/* UNCHECKED */ MCNameCreateWithCString("debugStr", MCM_debug_str);
	/* UNCHECKED */ MCNameCreateWithCString("deleteBackground", MCM_delete_background);
	/* UNCHECKED */ MCNameCreateWithCString("deleteButton", MCM_delete_button);
	/* UNCHECKED */ MCNameCreateWithCString("deleteCard", MCM_delete_card);
	/* UNCHECKED */ MCNameCreateWithCString("deleteEPS", MCM_delete_eps);
	/* UNCHECKED */ MCNameCreateWithCString("deleteField", MCM_delete_field);
	/* UNCHECKED */ MCNameCreateWithCString("deleteGraphic", MCM_delete_graphic);
	/* UNCHECKED */ MCNameCreateWithCString("deleteGroup", MCM_delete_group);
	/* UNCHECKED */ MCNameCreateWithCString("deleteImage", MCM_delete_image);
	/* UNCHECKED */ MCNameCreateWithCString("deleteKey", MCM_delete_key);
	/* UNCHECKED */ MCNameCreateWithCString("deleteScrollbar", MCM_delete_scrollbar);
	/* UNCHECKED */ MCNameCreateWithCString("deletePlayer", MCM_delete_player);
	/* UNCHECKED */ MCNameCreateWithCString("deleteStack", MCM_delete_stack);
	/* UNCHECKED */ MCNameCreateWithCString("deleteWidget", MCM_delete_widget);
	/* UNCHECKED */ MCNameCreateWithCString("deleteURL", MCM_delete_url);
	/* UNCHECKED */ MCNameCreateWithCString("desktopChanged", MCM_desktop_changed);
	/* UNCHECKED */ MCNameCreateWithCString("dragDrop", MCM_drag_drop);
	/* UNCHECKED */ MCNameCreateWithCString("dragEnd", MCM_drag_end);
	/* UNCHECKED */ MCNameCreateWithCString("dragEnter", MCM_drag_enter);
	/* UNCHECKED */ MCNameCreateWithCString("dragLeave", MCM_drag_leave);
	/* UNCHECKED */ MCNameCreateWithCString("dragMove", MCM_drag_move);
	/* UNCHECKED */ MCNameCreateWithCString("dragStart", MCM_drag_start);
	/* UNCHECKED */ MCNameCreateWithCString("editScript", MCM_edit_script);
	/* UNCHECKED */ MCNameCreateWithCString("enterInField", MCM_enter_in_field);
	/* UNCHECKED */ MCNameCreateWithCString("enterKey", MCM_enter_key);
	/* UNCHECKED */ MCNameCreateWithCString("errorDialog", MCM_error_dialog);
	/* UNCHECKED */ MCNameCreateWithCString("escapeKey", MCM_escape_key);
	/* UNCHECKED */ MCNameCreateWithCString("eval", MCM_eval);
	/* UNCHECKED */ MCNameCreateWithCString("exitField", MCM_exit_field);
	/* UNCHECKED */ MCNameCreateWithCString("focusIn", MCM_focus_in);
	/* UNCHECKED */ MCNameCreateWithCString("focusOut", MCM_focus_out);
	/* UNCHECKED */ MCNameCreateWithCString("functionKey", MCM_function_key);
	/* UNCHECKED */ MCNameCreateWithCString("getCachedURLs", MCM_get_cached_urls);
	/* UNCHECKED */ MCNameCreateWithCString("getURL", MCM_get_url);
	/* UNCHECKED */ MCNameCreateWithCString("getURLStatus", MCM_get_url_status);
	/* UNCHECKED */ MCNameCreateWithCString("gradientEditEnded", MCM_gradient_edit_ended);
	/* UNCHECKED */ MCNameCreateWithCString("gradientEditStarted", MCM_gradient_edit_started);
	/* UNCHECKED */ MCNameCreateWithCString("help", MCM_help);
	/* UNCHECKED */ MCNameCreateWithCString("hotSpotClicked", MCM_hot_spot_clicked);
	/* UNCHECKED */ MCNameCreateWithCString("iconMenuPick", MCM_icon_menu_pick);
	/* UNCHECKED */ MCNameCreateWithCString("iconMenuOpening", MCM_icon_menu_opening);
	/* UNCHECKED */ MCNameCreateWithCString("statusIconMenuPick", MCM_status_icon_menu_pick);
	/* UNCHECKED */ MCNameCreateWithCString("statusIconMenuOpening", MCM_status_icon_menu_opening);
	/* UNCHECKED */ MCNameCreateWithCString("statusIconClick", MCM_status_icon_click);
	/* UNCHECKED */ MCNameCreateWithCString("statusIconDoubleClick", MCM_status_icon_double_click);
	/* UNCHECKED */ MCNameCreateWithCString("iconifyStack", MCM_iconify_stack);
	/* UNCHECKED */ MCNameCreateWithCString("idChanged", MCM_id_changed);
	/* UNCHECKED */ MCNameCreateWithCString("idle", MCM_idle);
	/* UNCHECKED */ MCNameCreateWithCString("internal", MCM_internal);
	/* UNCHECKED */ MCNameCreateWithCString("internal2", MCM_internal2);
	/* UNCHECKED */ MCNameCreateWithCString("internal3", MCM_internal3);
	/* UNCHECKED */ MCNameCreateWithCString("keyDown", MCM_key_down);
	/* UNCHECKED */ MCNameCreateWithCString("keyUp", MCM_key_up);
	/* UNCHECKED */ MCNameCreateWithCString("keyboardActivated", MCM_keyboard_activated);
	/* UNCHECKED */ MCNameCreateWithCString("keyboardDeactivated", MCM_keyboard_deactivated);
	/* UNCHECKED */ MCNameCreateWithCString("libraryStack", MCM_library_stack);
	/* UNCHECKED */ MCNameCreateWithCString("linkClicked", MCM_link_clicked);
	/* UNCHECKED */ MCNameCreateWithCString("loadURL", MCM_load_url);
	/* UNCHECKED */ MCNameCreateWithCString("mainStackChanged", MCM_main_stack_changed);
	// MW-2013-03-20: [[ MainStacksChanged ]]
	/* UNCHECKED */ MCNameCreateWithCString("_mainStacksChanged", MCM_main_stacks_changed);
	/* UNCHECKED */ MCNameCreateWithCString("menuPick", MCM_menu_pick);
	/* UNCHECKED */ MCNameCreateWithCString("message", MCM_message);
	/* UNCHECKED */ MCNameCreateWithCString("messageHandled", MCM_message_handled);
	/* UNCHECKED */ MCNameCreateWithCString("messageNotHandled", MCM_message_not_handled);
	/* UNCHECKED */ MCNameCreateWithCString("mouseDoubleDown", MCM_mouse_double_down);
	/* UNCHECKED */ MCNameCreateWithCString("mouseDoubleUp", MCM_mouse_double_up);
	/* UNCHECKED */ MCNameCreateWithCString("mouseDown", MCM_mouse_down);
	/* UNCHECKED */ MCNameCreateWithCString("mouseDownInBackdrop", MCM_mouse_down_in_backdrop);
	/* UNCHECKED */ MCNameCreateWithCString("mouseEnter", MCM_mouse_enter);
	/* UNCHECKED */ MCNameCreateWithCString("mouseLeave", MCM_mouse_leave);
	/* UNCHECKED */ MCNameCreateWithCString("mouseMove", MCM_mouse_move);
	/* UNCHECKED */ MCNameCreateWithCString("mouseRelease", MCM_mouse_release);
	/* UNCHECKED */ MCNameCreateWithCString("mouseStillDown", MCM_mouse_still_down);
	/* UNCHECKED */ MCNameCreateWithCString("mouseUp", MCM_mouse_up);
	/* UNCHECKED */ MCNameCreateWithCString("mouseUpInBackdrop", MCM_mouse_up_in_backdrop);
	/* UNCHECKED */ MCNameCreateWithCString("mouseWithin", MCM_mouse_within);
	/* UNCHECKED */ MCNameCreateWithCString("moveControl", MCM_move_control);
	/* UNCHECKED */ MCNameCreateWithCString("moveStack", MCM_move_stack);
	/* UNCHECKED */ MCNameCreateWithCString("moveStopped", MCM_move_stopped);
	/* UNCHECKED */ MCNameCreateWithCString("movieTouched", MCM_movie_touched);
	/* UNCHECKED */ MCNameCreateWithCString("nameChanged", MCM_name_changed);
	/* UNCHECKED */ MCNameCreateWithCString("newBackground", MCM_new_background);
	/* UNCHECKED */ MCNameCreateWithCString("newCard", MCM_new_card);
	/* UNCHECKED */ MCNameCreateWithCString("newStack", MCM_new_stack);
	/* UNCHECKED */ MCNameCreateWithCString("newTool", MCM_new_tool);
	/* UNCHECKED */ MCNameCreateWithCString("nodeChanged", MCM_node_changed);
	/* UNCHECKED */ MCNameCreateWithCString("objectSelectionEnded", MCM_object_selection_ended);
	/* UNCHECKED */ MCNameCreateWithCString("objectSelectionStarted", MCM_object_selection_started);
	/* UNCHECKED */ MCNameCreateWithCString("openBackground", MCM_open_background);
	/* UNCHECKED */ MCNameCreateWithCString("openCard", MCM_open_card);
	/* UNCHECKED */ MCNameCreateWithCString("openControl", MCM_open_control);
	/* UNCHECKED */ MCNameCreateWithCString("openField", MCM_open_field);
	/* UNCHECKED */ MCNameCreateWithCString("openStack", MCM_open_stack);
	/* UNCHECKED */ MCNameCreateWithCString("optionKeyDown", MCM_option_key_down);
	/* UNCHECKED */ MCNameCreateWithCString("pasteKey", MCM_paste_key);
	/* UNCHECKED */ MCNameCreateWithCString("playPaused", MCM_play_paused);
	/* UNCHECKED */ MCNameCreateWithCString("playStarted", MCM_play_started);
	/* UNCHECKED */ MCNameCreateWithCString("playStopped", MCM_play_stopped);
	/* UNCHECKED */ MCNameCreateWithCString("postURL", MCM_post_url);
	/* UNCHECKED */ MCNameCreateWithCString("preOpenBackground", MCM_preopen_background);
	/* UNCHECKED */ MCNameCreateWithCString("preOpenCard", MCM_preopen_card);
	/* UNCHECKED */ MCNameCreateWithCString("preOpenControl", MCM_preopen_control);
	/* UNCHECKED */ MCNameCreateWithCString("preOpenStack", MCM_preopen_stack);
	/* UNCHECKED */ MCNameCreateWithCString("propertyChanged", MCM_property_changed);
	/* UNCHECKED */ MCNameCreateWithCString("putURL", MCM_put_url);
	/* UNCHECKED */ MCNameCreateWithCString("QTDebugStr", MCM_qtdebugstr);
	/* UNCHECKED */ MCNameCreateWithCString("rawKeyDown", MCM_raw_key_down);
	/* UNCHECKED */ MCNameCreateWithCString("rawKeyUp", MCM_raw_key_up);
	/* UNCHECKED */ MCNameCreateWithCString("relaunch", MCM_relaunch);
	/* UNCHECKED */ MCNameCreateWithCString("releaseStack", MCM_release_stack);
	/* UNCHECKED */ MCNameCreateWithCString("reloadStack", MCM_reload_stack);
	/* UNCHECKED */ MCNameCreateWithCString("resizeControl", MCM_resize_control);
	/* UNCHECKED */ MCNameCreateWithCString("resizeControlEnded", MCM_resize_control_ended);
	/* UNCHECKED */ MCNameCreateWithCString("resizeControlStarted", MCM_resize_control_started);
	/* UNCHECKED */ MCNameCreateWithCString("resizeStack", MCM_resize_stack);
	/* UNCHECKED */ MCNameCreateWithCString("resolutionError", MCM_resolution_error);
	/* UNCHECKED */ MCNameCreateWithCString("resume", MCM_resume);
	/* UNCHECKED */ MCNameCreateWithCString("resumeStack", MCM_resume_stack);
	/* UNCHECKED */ MCNameCreateWithCString("returnInField", MCM_return_in_field);
	/* UNCHECKED */ MCNameCreateWithCString("returnKey", MCM_return_key);
	/* UNCHECKED */ MCNameCreateWithCString("saveStackRequest", MCM_save_stack_request);
	/* UNCHECKED */ MCNameCreateWithCString("scriptParsingError", MCM_script_error);
	/* UNCHECKED */ MCNameCreateWithCString("scriptExecutionError", MCM_script_execution_error);
	/* UNCHECKED */ MCNameCreateWithCString("scrollbarBeginning", MCM_scrollbar_beginning);
	/* UNCHECKED */ MCNameCreateWithCString("scrollbarDrag", MCM_scrollbar_drag);
	/* UNCHECKED */ MCNameCreateWithCString("scrollbarEnd", MCM_scrollbar_end);
	/* UNCHECKED */ MCNameCreateWithCString("scrollbarLineDec", MCM_scrollbar_line_dec);
	/* UNCHECKED */ MCNameCreateWithCString("scrollbarLineInc", MCM_scrollbar_line_inc);
	/* UNCHECKED */ MCNameCreateWithCString("scrollbarPageDec", MCM_scrollbar_page_dec);
	/* UNCHECKED */ MCNameCreateWithCString("scrollbarPageInc", MCM_scrollbar_page_inc);
	/* UNCHECKED */ MCNameCreateWithCString("selectedObjectChanged", MCM_selected_object_changed);
	/* UNCHECKED */ MCNameCreateWithCString("selectionChanged", MCM_selection_changed);
	/* UNCHECKED */ MCNameCreateWithCString("signal", MCM_signal);
	/* UNCHECKED */ MCNameCreateWithCString("shutDown", MCM_shut_down);
	/* UNCHECKED */ MCNameCreateWithCString("shutDownRequest", MCM_shut_down_request);
	/* UNCHECKED */ MCNameCreateWithCString("socketError", MCM_socket_error);
	/* UNCHECKED */ MCNameCreateWithCString("socketClosed", MCM_socket_closed);
	/* UNCHECKED */ MCNameCreateWithCString("socketTimeout", MCM_socket_timeout);
	/* UNCHECKED */ MCNameCreateWithCString("startUp", MCM_start_up);
	/* UNCHECKED */ MCNameCreateWithCString("suspend", MCM_suspend);
	/* UNCHECKED */ MCNameCreateWithCString("suspendStack", MCM_suspend_stack);
	/* UNCHECKED */ MCNameCreateWithCString("tabKey", MCM_tab_key);
	/* UNCHECKED */ MCNameCreateWithCString("textChanged", MCM_text_changed);
	/* UNCHECKED */ MCNameCreateWithCString("trace", MCM_trace);
	/* UNCHECKED */ MCNameCreateWithCString("traceBreak", MCM_trace_break);
	/* UNCHECKED */ MCNameCreateWithCString("traceDone", MCM_trace_done);
	/* UNCHECKED */ MCNameCreateWithCString("traceError", MCM_trace_error);
	/* UNCHECKED */ MCNameCreateWithCString("undoChanged", MCM_undo_changed);
	/* UNCHECKED */ MCNameCreateWithCString("undoKey", MCM_undo_key);
	/* UNCHECKED */ MCNameCreateWithCString("uniconifyStack", MCM_uniconify_stack);
	/* UNCHECKED */ MCNameCreateWithCString("unloadURL", MCM_unload_url);
	/* UNCHECKED */ MCNameCreateWithCString("updateScreen", MCM_update_screen);
	/* UNCHECKED */ MCNameCreateWithCString("updateVariable", MCM_update_var);

#ifdef _MOBILE
	/* UNCHECKED */ MCNameCreateWithCString("firstname", MCN_firstname);
	/* UNCHECKED */ MCNameCreateWithCString("lastname", MCN_lastname);
	/* UNCHECKED */ MCNameCreateWithCString("middlename", MCN_middlename);
	/* UNCHECKED */ MCNameCreateWithCString("prefix", MCN_prefix);
	/* UNCHECKED */ MCNameCreateWithCString("suffix", MCN_suffix);
	/* UNCHECKED */ MCNameCreateWithCString("nickname", MCN_nickname);
	/* UNCHECKED */ MCNameCreateWithCString("firstnamephonetic", MCN_firstnamephonetic);
	/* UNCHECKED */ MCNameCreateWithCString("lastnamephonetic", MCN_lastnamephonetic);
	/* UNCHECKED */ MCNameCreateWithCString("middlenamephonetic", MCN_middlenamephonetic);
	/* UNCHECKED */ MCNameCreateWithCString("organization", MCN_organization);
	/* UNCHECKED */ MCNameCreateWithCString("jobtitle", MCN_jobtitle);
	/* UNCHECKED */ MCNameCreateWithCString("department", MCN_department);
	/* UNCHECKED */ MCNameCreateWithCString("note", MCN_note);

	/* UNCHECKED */ MCNameCreateWithCString("email", MCN_email);
	/* UNCHECKED */ MCNameCreateWithCString("phone", MCN_phone);
	/* UNCHECKED */ MCNameCreateWithCString("address", MCN_address);

	/* UNCHECKED */ MCNameCreateWithCString("home", MCN_home);
	/* UNCHECKED */ MCNameCreateWithCString("work", MCN_work);
	/* UNCHECKED */ MCNameCreateWithCString("other", MCN_other);

	/* UNCHECKED */ MCNameCreateWithCString("mobile", MCN_mobile);
	/* UNCHECKED */ MCNameCreateWithCString("iphone", MCN_iphone);
	/* UNCHECKED */ MCNameCreateWithCString("main", MCN_main);
	/* UNCHECKED */ MCNameCreateWithCString("homefax", MCN_homefax);
	/* UNCHECKED */ MCNameCreateWithCString("workfax", MCN_workfax);
	/* UNCHECKED */ MCNameCreateWithCString("otherfax", MCN_otherfax);
	/* UNCHECKED */ MCNameCreateWithCString("pager", MCN_pager);
	
	/* UNCHECKED */ MCNameCreateWithCString("street", MCN_street);
	/* UNCHECKED */ MCNameCreateWithCString("city", MCN_city);
	/* UNCHECKED */ MCNameCreateWithCString("state", MCN_state);
	/* UNCHECKED */ MCNameCreateWithCString("zip", MCN_zip);
	/* UNCHECKED */ MCNameCreateWithCString("country", MCN_country);
	/* UNCHECKED */ MCNameCreateWithCString("countrycode", MCN_countrycode);
	
	
	/* UNCHECKED */ MCNameCreateWithCString("touchStart", MCM_touch_start);
	/* UNCHECKED */ MCNameCreateWithCString("touchMove", MCM_touch_move);
	/* UNCHECKED */ MCNameCreateWithCString("touchEnd", MCM_touch_end);
	/* UNCHECKED */ MCNameCreateWithCString("touchRelease", MCM_touch_release);
	/* UNCHECKED */ MCNameCreateWithCString("motionStart", MCM_motion_start);
	/* UNCHECKED */ MCNameCreateWithCString("motionEnd", MCM_motion_end);
	/* UNCHECKED */ MCNameCreateWithCString("motionRelease", MCM_motion_release);
	/* UNCHECKED */ MCNameCreateWithCString("urlProgress", MCM_url_progress);
	/* UNCHECKED */ MCNameCreateWithCString("accelerationChanged", MCM_acceleration_changed);
	/* UNCHECKED */ MCNameCreateWithCString("orientationChanged", MCM_orientation_changed);
	/* UNCHECKED */ MCNameCreateWithCString("locationChanged", MCM_location_changed);
	/* UNCHECKED */ MCNameCreateWithCString("locationError", MCM_location_error);
	/* UNCHECKED */ MCNameCreateWithCString("headingChanged", MCM_heading_changed);
	/* UNCHECKED */ MCNameCreateWithCString("headingError", MCM_heading_error);
	/* UNCHECKED */ MCNameCreateWithCString("purchaseStateUpdate", MCM_purchase_updated);
    /* UNCHECKED */ MCNameCreateWithCString("rotationRateChanged", MCM_rotation_rate_changed);
	/* UNCHECKED */ MCNameCreateWithCString("trackingError", MCM_tracking_error);
    /* UNCHECKED */ MCNameCreateWithCString("localNotificationReceived", MCM_local_notification_received);
    /* UNCHECKED */ MCNameCreateWithCString("pushNotificationReceived", MCM_push_notification_received);
    /* UNCHECKED */ MCNameCreateWithCString("pushNotificationRegistered", MCM_push_notification_registered);
    /* UNCHECKED */ MCNameCreateWithCString("pushNotificationRegistrationError", MCM_push_notification_registration_error);
    /* UNCHECKED */ MCNameCreateWithCString("urlWakeUp", MCM_url_wake_up);
	/* UNCHECKED */ MCNameCreateWithCString("browserStartedLoading", MCM_browser_started_loading);
	/* UNCHECKED */ MCNameCreateWithCString("browserFinishedLoading", MCM_browser_finished_loading);
	/* UNCHECKED */ MCNameCreateWithCString("browserLoadFailed", MCM_browser_load_failed);
    /* UNCHECKED */ MCNameCreateWithCString("soundFinishedOnChannel", MCM_sound_finished_on_channel);
    /* UNCHECKED */ MCNameCreateWithCString("adLoaded", MCM_ad_loaded);
	/* UNCHECKED */ MCNameCreateWithCString("adClicked", MCM_ad_clicked);
    /* UNCHECKED */ MCNameCreateWithCString("adLoadFailed", MCM_ad_load_failed);
    /* UNCHECKED */ MCNameCreateWithCString("adResizeStart", MCM_ad_resize_start);
    /* UNCHECKED */ MCNameCreateWithCString("adResizeEnd", MCM_ad_resize_end);
    /* UNCHECKED */ MCNameCreateWithCString("adExpandStart", MCM_ad_expand_start);
    /* UNCHECKED */ MCNameCreateWithCString("adExpandEnd", MCM_ad_expand_end);
	/* UNCHECKED */ MCNameCreateWithCString("scrollerDidScroll", MCM_scroller_did_scroll);
	/* UNCHECKED */ MCNameCreateWithCString("scrollerBeginDrag", MCM_scroller_begin_drag);
	/* UNCHECKED */ MCNameCreateWithCString("scrollerEndDrag", MCM_scroller_end_drag);
	/* UNCHECKED */ MCNameCreateWithCString("playerFinished", MCM_player_finished);
	/* UNCHECKED */ MCNameCreateWithCString("playerError", MCM_player_error);
	/* UNCHECKED */ MCNameCreateWithCString("playerPropertyAvailable", MCM_player_property_available);
	/* UNCHECKED */ MCNameCreateWithCString("inputBeginEditing", MCM_input_begin_editing);
	/* UNCHECKED */ MCNameCreateWithCString("inputEndEditing", MCM_input_end_editing);
	/* UNCHECKED */ MCNameCreateWithCString("inputReturnKey", MCM_input_return_key);
	/* UNCHECKED */ MCNameCreateWithCString("inputTextChanged", MCM_input_text_changed);
#endif
	
#ifdef _IOS_MOBILE
	/* UNCHECKED */ MCNameCreateWithCString("browserLoadRequest", MCM_browser_load_request);
	/* UNCHECKED */ MCNameCreateWithCString("browserLoadRequested", MCM_browser_load_requested);
	/* UNCHECKED */ MCNameCreateWithCString("scrollerBeginDecelerate", MCM_scroller_begin_decelerate);
	/* UNCHECKED */ MCNameCreateWithCString("scrollerEndDecelerate", MCM_scroller_end_decelerate);
	/* UNCHECKED */ MCNameCreateWithCString("scrollerScrollToTop", MCM_scroller_scroll_to_top);
	/* UNCHECKED */ MCNameCreateWithCString("playerProgressChanged", MCM_player_progress_changed);
	/* UNCHECKED */ MCNameCreateWithCString("playerEnterFullscreen", MCM_player_enter_fullscreen);
	/* UNCHECKED */ MCNameCreateWithCString("playerLeaveFullscreen", MCM_player_leave_fullscreen);
	/* UNCHECKED */ MCNameCreateWithCString("playerStateChanged", MCM_player_state_changed);
	/* UNCHECKED */ MCNameCreateWithCString("playerMovieChanged", MCM_player_movie_changed);
	/* UNCHECKED */ MCNameCreateWithCString("playerStopped", MCM_player_stopped);
	/* UNCHECKED */ MCNameCreateWithCString("reachabilityChanged", MCM_reachability_changed);
    /* UNCHECKED */ MCNameCreateWithCString("productDetailsReceived", MCM_product_details_received);
    /* UNCHECKED */ MCNameCreateWithCString("productRequestError", MCM_product_request_error);
    /* UNCHECKED */ MCNameCreateWithCString("protectedDataDidBecomeAvailable", MCM_protected_data_available);
    /* UNCHECKED */ MCNameCreateWithCString("protectedDataWillBecomeUnavailable", MCM_protected_data_unavailable);
	
	// MW-2013-05-30: [[ RemoteControl ]] Message sent when a remote control event is received.
	/* UNCHECKED */ MCNameCreateWithCString("remoteControlReceived", MCM_remote_control_received);
#endif
}