2001-11-07 01:52:52 +03:00
|
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2001-11-07 01:52:52 +03:00
|
|
|
|
|
|
|
|
|
#include "nsToolkit.h"
|
|
|
|
|
|
2006-12-08 11:29:46 +03:00
|
|
|
|
#include <ctype.h>
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
#include <mach/mach_port.h>
|
|
|
|
|
#include <mach/mach_interface.h>
|
|
|
|
|
#include <mach/mach_init.h>
|
|
|
|
|
|
2010-04-05 18:04:49 +04:00
|
|
|
|
extern "C" {
|
|
|
|
|
#include <mach-o/getsect.h>
|
|
|
|
|
}
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
#include <dlfcn.h>
|
|
|
|
|
|
2007-05-18 06:06:59 +04:00
|
|
|
|
#import <Cocoa/Cocoa.h>
|
2007-01-18 09:34:07 +03:00
|
|
|
|
#import <IOKit/pwr_mgt/IOPMLib.h>
|
|
|
|
|
#import <IOKit/IOMessage.h>
|
2006-12-08 11:29:46 +03:00
|
|
|
|
|
2007-07-18 00:29:39 +04:00
|
|
|
|
#include "nsCocoaUtils.h"
|
2008-02-21 02:47:05 +03:00
|
|
|
|
#include "nsObjCExceptions.h"
|
2007-07-18 00:29:39 +04:00
|
|
|
|
|
2011-10-14 22:11:22 +04:00
|
|
|
|
#include "nsGkAtoms.h"
|
2007-05-18 06:06:59 +04:00
|
|
|
|
#include "nsIRollupListener.h"
|
|
|
|
|
#include "nsIWidget.h"
|
2012-10-26 17:15:22 +04:00
|
|
|
|
#include "nsBaseWidget.h"
|
2006-12-08 11:29:46 +03:00
|
|
|
|
|
|
|
|
|
#include "nsIObserverService.h"
|
|
|
|
|
#include "nsIServiceManager.h"
|
2011-05-27 12:15:20 +04:00
|
|
|
|
|
|
|
|
|
#include "mozilla/Preferences.h"
|
|
|
|
|
|
|
|
|
|
using namespace mozilla;
|
2006-12-18 22:50:14 +03:00
|
|
|
|
|
|
|
|
|
static io_connect_t gRootPort = MACH_PORT_NULL;
|
2006-12-08 11:29:46 +03:00
|
|
|
|
|
2012-07-30 18:20:58 +04:00
|
|
|
|
nsToolkit* nsToolkit::gToolkit = nullptr;
|
2006-12-08 11:29:46 +03:00
|
|
|
|
|
2002-12-13 11:43:18 +03:00
|
|
|
|
nsToolkit::nsToolkit()
|
2012-07-30 18:20:58 +04:00
|
|
|
|
: mSleepWakeNotificationRLS(nullptr)
|
|
|
|
|
, mEventTapPort(nullptr)
|
|
|
|
|
, mEventTapRLS(nullptr)
|
2001-11-07 01:52:52 +03:00
|
|
|
|
{
|
2011-10-28 18:47:54 +04:00
|
|
|
|
MOZ_COUNT_CTOR(nsToolkit);
|
2011-10-25 19:05:32 +04:00
|
|
|
|
RegisterForSleepWakeNotifcations();
|
2001-11-07 01:52:52 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
nsToolkit::~nsToolkit()
|
2006-12-08 11:29:46 +03:00
|
|
|
|
{
|
2011-10-06 03:54:07 +04:00
|
|
|
|
MOZ_COUNT_DTOR(nsToolkit);
|
2006-12-08 11:29:46 +03:00
|
|
|
|
RemoveSleepWakeNotifcations();
|
2007-07-18 00:29:39 +04:00
|
|
|
|
UnregisterAllProcessMouseEventHandlers();
|
2006-12-08 11:29:46 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
nsToolkit::PostSleepWakeNotification(const char* aNotification)
|
|
|
|
|
{
|
|
|
|
|
nsCOMPtr<nsIObserverService> observerService = do_GetService("@mozilla.org/observer-service;1");
|
|
|
|
|
if (observerService)
|
2012-07-30 18:20:58 +04:00
|
|
|
|
observerService->NotifyObservers(nullptr, aNotification, nullptr);
|
2006-12-08 11:29:46 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// http://developer.apple.com/documentation/DeviceDrivers/Conceptual/IOKitFundamentals/PowerMgmt/chapter_10_section_3.html
|
|
|
|
|
static void ToolkitSleepWakeCallback(void *refCon, io_service_t service, natural_t messageType, void * messageArgument)
|
|
|
|
|
{
|
2008-02-21 02:47:05 +03:00
|
|
|
|
NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
|
|
|
|
|
|
2006-12-08 11:29:46 +03:00
|
|
|
|
switch (messageType)
|
|
|
|
|
{
|
|
|
|
|
case kIOMessageSystemWillSleep:
|
|
|
|
|
// System is going to sleep now.
|
2012-11-09 19:34:10 +04:00
|
|
|
|
nsToolkit::PostSleepWakeNotification(NS_WIDGET_SLEEP_OBSERVER_TOPIC);
|
2006-12-08 11:29:46 +03:00
|
|
|
|
::IOAllowPowerChange(gRootPort, (long)messageArgument);
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case kIOMessageCanSystemSleep:
|
|
|
|
|
// In this case, the computer has been idle for several minutes
|
|
|
|
|
// and will sleep soon so you must either allow or cancel
|
|
|
|
|
// this notification. Important: if you don’t respond, there will
|
|
|
|
|
// be a 30-second timeout before the computer sleeps.
|
|
|
|
|
// In Mozilla's case, we always allow sleep.
|
|
|
|
|
::IOAllowPowerChange(gRootPort,(long)messageArgument);
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case kIOMessageSystemHasPoweredOn:
|
|
|
|
|
// Handle wakeup.
|
2012-11-09 19:34:10 +04:00
|
|
|
|
nsToolkit::PostSleepWakeNotification(NS_WIDGET_WAKE_OBSERVER_TOPIC);
|
2006-12-08 11:29:46 +03:00
|
|
|
|
break;
|
|
|
|
|
}
|
2008-02-21 02:47:05 +03:00
|
|
|
|
|
|
|
|
|
NS_OBJC_END_TRY_ABORT_BLOCK;
|
2001-11-07 01:52:52 +03:00
|
|
|
|
}
|
|
|
|
|
|
2003-10-31 05:30:22 +03:00
|
|
|
|
nsresult
|
2006-12-08 11:29:46 +03:00
|
|
|
|
nsToolkit::RegisterForSleepWakeNotifcations()
|
2001-11-07 01:52:52 +03:00
|
|
|
|
{
|
2008-02-21 02:47:05 +03:00
|
|
|
|
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;
|
|
|
|
|
|
2006-12-08 11:29:46 +03:00
|
|
|
|
IONotificationPortRef notifyPortRef;
|
|
|
|
|
|
|
|
|
|
NS_ASSERTION(!mSleepWakeNotificationRLS, "Already registered for sleep/wake");
|
|
|
|
|
|
|
|
|
|
gRootPort = ::IORegisterForSystemPower(0, ¬ifyPortRef, ToolkitSleepWakeCallback, &mPowerNotifier);
|
|
|
|
|
if (gRootPort == MACH_PORT_NULL) {
|
2009-08-14 18:09:00 +04:00
|
|
|
|
NS_ERROR("IORegisterForSystemPower failed");
|
2006-12-08 11:29:46 +03:00
|
|
|
|
return NS_ERROR_FAILURE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mSleepWakeNotificationRLS = ::IONotificationPortGetRunLoopSource(notifyPortRef);
|
|
|
|
|
::CFRunLoopAddSource(::CFRunLoopGetCurrent(),
|
|
|
|
|
mSleepWakeNotificationRLS,
|
|
|
|
|
kCFRunLoopDefaultMode);
|
|
|
|
|
|
2002-12-13 11:43:18 +03:00
|
|
|
|
return NS_OK;
|
2008-02-21 02:47:05 +03:00
|
|
|
|
|
|
|
|
|
NS_OBJC_END_TRY_ABORT_BLOCK_NSRESULT;
|
2002-12-13 11:43:18 +03:00
|
|
|
|
}
|
|
|
|
|
|
2006-12-08 11:29:46 +03:00
|
|
|
|
void
|
|
|
|
|
nsToolkit::RemoveSleepWakeNotifcations()
|
|
|
|
|
{
|
2008-02-21 02:47:05 +03:00
|
|
|
|
NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
|
|
|
|
|
|
2006-12-08 11:29:46 +03:00
|
|
|
|
if (mSleepWakeNotificationRLS) {
|
|
|
|
|
::IODeregisterForSystemPower(&mPowerNotifier);
|
|
|
|
|
::CFRunLoopRemoveSource(::CFRunLoopGetCurrent(),
|
|
|
|
|
mSleepWakeNotificationRLS,
|
|
|
|
|
kCFRunLoopDefaultMode);
|
|
|
|
|
|
2012-07-30 18:20:58 +04:00
|
|
|
|
mSleepWakeNotificationRLS = nullptr;
|
2006-12-08 11:29:46 +03:00
|
|
|
|
}
|
2008-02-21 02:47:05 +03:00
|
|
|
|
|
|
|
|
|
NS_OBJC_END_TRY_ABORT_BLOCK;
|
2006-12-08 11:29:46 +03:00
|
|
|
|
}
|
|
|
|
|
|
2007-07-18 00:29:39 +04:00
|
|
|
|
// Converts aPoint from the CoreGraphics "global display coordinate" system
|
|
|
|
|
// (which includes all displays/screens and has a top-left origin) to its
|
|
|
|
|
// (presumed) Cocoa counterpart (assumed to be the same as the "screen
|
|
|
|
|
// coordinates" system), which has a bottom-left origin.
|
|
|
|
|
static NSPoint ConvertCGGlobalToCocoaScreen(CGPoint aPoint)
|
|
|
|
|
{
|
|
|
|
|
NSPoint cocoaPoint;
|
|
|
|
|
cocoaPoint.x = aPoint.x;
|
2007-12-06 02:17:08 +03:00
|
|
|
|
cocoaPoint.y = nsCocoaUtils::FlippedScreenY(aPoint.y);
|
2007-07-18 00:29:39 +04:00
|
|
|
|
return cocoaPoint;
|
2007-05-18 06:06:59 +04:00
|
|
|
|
}
|
|
|
|
|
|
2007-07-18 00:29:39 +04:00
|
|
|
|
// Since our event tap is "listen only", events arrive here a little after
|
|
|
|
|
// they've already been processed.
|
|
|
|
|
static CGEventRef EventTapCallback(CGEventTapProxy proxy, CGEventType type, CGEventRef event, void *refcon)
|
|
|
|
|
{
|
2008-02-21 02:47:05 +03:00
|
|
|
|
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_RETURN;
|
|
|
|
|
|
2007-07-18 00:29:39 +04:00
|
|
|
|
if ((type == kCGEventTapDisabledByUserInput) ||
|
|
|
|
|
(type == kCGEventTapDisabledByTimeout))
|
|
|
|
|
return event;
|
2012-10-26 17:15:22 +04:00
|
|
|
|
if ([NSApp isActive])
|
|
|
|
|
return event;
|
|
|
|
|
|
|
|
|
|
nsIRollupListener* rollupListener = nsBaseWidget::GetActiveRollupListener();
|
2012-12-31 21:27:04 +04:00
|
|
|
|
NS_ENSURE_TRUE(rollupListener, event);
|
2012-10-26 17:15:22 +04:00
|
|
|
|
nsCOMPtr<nsIWidget> rollupWidget = rollupListener->GetRollupWidget();
|
2013-01-29 01:34:00 +04:00
|
|
|
|
if (!rollupWidget)
|
|
|
|
|
return event;
|
2012-10-26 17:15:22 +04:00
|
|
|
|
|
2007-07-18 00:29:39 +04:00
|
|
|
|
// Don't bother with rightMouseDown events here -- because of the delay,
|
|
|
|
|
// we'll end up closing browser context menus that we just opened. Since
|
|
|
|
|
// these events usually raise a context menu, we'll handle them by hooking
|
|
|
|
|
// the @"com.apple.HIToolbox.beginMenuTrackingNotification" distributed
|
|
|
|
|
// notification (in nsAppShell.mm's AppShellDelegate).
|
|
|
|
|
if (type == kCGEventRightMouseDown)
|
|
|
|
|
return event;
|
2012-10-26 17:15:22 +04:00
|
|
|
|
NSWindow *ctxMenuWindow = (NSWindow*) rollupWidget->GetNativeData(NS_NATIVE_WINDOW);
|
2007-07-18 00:29:39 +04:00
|
|
|
|
if (!ctxMenuWindow)
|
|
|
|
|
return event;
|
|
|
|
|
NSPoint screenLocation = ConvertCGGlobalToCocoaScreen(CGEventGetLocation(event));
|
|
|
|
|
// Don't roll up the rollup widget if our mouseDown happens over it (doing
|
|
|
|
|
// so would break the corresponding context menu).
|
|
|
|
|
if (NSPointInRect(screenLocation, [ctxMenuWindow frame]))
|
|
|
|
|
return event;
|
2013-11-04 20:22:24 +04:00
|
|
|
|
rollupListener->Rollup(0, nullptr, nullptr);
|
2007-07-18 00:29:39 +04:00
|
|
|
|
return event;
|
2008-02-21 02:47:05 +03:00
|
|
|
|
|
|
|
|
|
NS_OBJC_END_TRY_ABORT_BLOCK_RETURN(NULL);
|
2007-07-18 00:29:39 +04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Cocoa Firefox's use of custom context menus requires that we explicitly
|
|
|
|
|
// handle mouse events from other processes that the OS handles
|
|
|
|
|
// "automatically" for native context menus -- mouseMoved events so that
|
|
|
|
|
// right-click context menus work properly when our browser doesn't have the
|
|
|
|
|
// focus (bmo bug 368077), and mouseDown events so that our browser can
|
|
|
|
|
// dismiss a context menu when a mouseDown happens in another process (bmo
|
|
|
|
|
// bug 339945).
|
2007-05-18 06:06:59 +04:00
|
|
|
|
void
|
|
|
|
|
nsToolkit::RegisterForAllProcessMouseEvents()
|
|
|
|
|
{
|
2008-02-21 02:47:05 +03:00
|
|
|
|
NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
|
|
|
|
|
|
2013-02-27 01:06:36 +04:00
|
|
|
|
if (getenv("MOZ_DEBUG"))
|
|
|
|
|
return;
|
|
|
|
|
|
2007-08-16 01:03:18 +04:00
|
|
|
|
// Don't do this for apps that (like Camino) use native context menus.
|
2011-06-22 01:00:47 +04:00
|
|
|
|
#ifdef MOZ_USE_NATIVE_POPUP_WINDOWS
|
|
|
|
|
return;
|
|
|
|
|
#endif /* MOZ_USE_NATIVE_POPUP_WINDOWS */
|
|
|
|
|
|
2007-07-18 00:29:39 +04:00
|
|
|
|
if (!mEventTapRLS) {
|
|
|
|
|
// Using an event tap for mouseDown events (instead of installing a
|
|
|
|
|
// handler for them on the EventMonitor target) works around an Apple
|
|
|
|
|
// bug that causes OS menus (like the Clock menu) not to work properly
|
|
|
|
|
// on OS X 10.4.X and below (bmo bug 381448).
|
|
|
|
|
// We install our event tap "listen only" to get around yet another Apple
|
|
|
|
|
// bug -- when we install it as an event filter on any kind of mouseDown
|
|
|
|
|
// event, that kind of event stops working in the main menu, and usually
|
|
|
|
|
// mouse event processing stops working in all apps in the current login
|
|
|
|
|
// session (so the entire OS appears to be hung)! The downside of
|
|
|
|
|
// installing listen-only is that events arrive at our handler slightly
|
|
|
|
|
// after they've already been processed.
|
|
|
|
|
mEventTapPort = CGEventTapCreate(kCGSessionEventTap,
|
|
|
|
|
kCGHeadInsertEventTap,
|
|
|
|
|
kCGEventTapOptionListenOnly,
|
|
|
|
|
CGEventMaskBit(kCGEventLeftMouseDown)
|
|
|
|
|
| CGEventMaskBit(kCGEventRightMouseDown)
|
|
|
|
|
| CGEventMaskBit(kCGEventOtherMouseDown),
|
|
|
|
|
EventTapCallback,
|
2012-07-30 18:20:58 +04:00
|
|
|
|
nullptr);
|
2007-07-18 00:29:39 +04:00
|
|
|
|
if (!mEventTapPort)
|
|
|
|
|
return;
|
2012-07-30 18:20:58 +04:00
|
|
|
|
mEventTapRLS = CFMachPortCreateRunLoopSource(nullptr, mEventTapPort, 0);
|
2007-07-18 00:29:39 +04:00
|
|
|
|
if (!mEventTapRLS) {
|
|
|
|
|
CFRelease(mEventTapPort);
|
2012-07-30 18:20:58 +04:00
|
|
|
|
mEventTapPort = nullptr;
|
2007-07-18 00:29:39 +04:00
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
CFRunLoopAddSource(CFRunLoopGetCurrent(), mEventTapRLS, kCFRunLoopDefaultMode);
|
|
|
|
|
}
|
2008-02-21 02:47:05 +03:00
|
|
|
|
|
|
|
|
|
NS_OBJC_END_TRY_ABORT_BLOCK;
|
2007-07-18 00:29:39 +04:00
|
|
|
|
}
|
2007-05-18 06:06:59 +04:00
|
|
|
|
|
2007-07-18 00:29:39 +04:00
|
|
|
|
void
|
|
|
|
|
nsToolkit::UnregisterAllProcessMouseEventHandlers()
|
|
|
|
|
{
|
2008-02-21 02:47:05 +03:00
|
|
|
|
NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
|
|
|
|
|
|
2007-07-18 00:29:39 +04:00
|
|
|
|
if (mEventTapRLS) {
|
|
|
|
|
CFRunLoopRemoveSource(CFRunLoopGetCurrent(), mEventTapRLS,
|
|
|
|
|
kCFRunLoopDefaultMode);
|
|
|
|
|
CFRelease(mEventTapRLS);
|
2012-07-30 18:20:58 +04:00
|
|
|
|
mEventTapRLS = nullptr;
|
2007-07-18 00:29:39 +04:00
|
|
|
|
}
|
|
|
|
|
if (mEventTapPort) {
|
2009-01-08 02:03:56 +03:00
|
|
|
|
// mEventTapPort must be invalidated as well as released. Otherwise the
|
|
|
|
|
// event tap doesn't get destroyed until the browser process ends (it
|
|
|
|
|
// keeps showing up in the list returned by CGGetEventTapList()).
|
|
|
|
|
CFMachPortInvalidate(mEventTapPort);
|
2007-07-18 00:29:39 +04:00
|
|
|
|
CFRelease(mEventTapPort);
|
2012-07-30 18:20:58 +04:00
|
|
|
|
mEventTapPort = nullptr;
|
2007-07-18 00:29:39 +04:00
|
|
|
|
}
|
2008-02-21 02:47:05 +03:00
|
|
|
|
|
|
|
|
|
NS_OBJC_END_TRY_ABORT_BLOCK;
|
2007-05-18 06:06:59 +04:00
|
|
|
|
}
|
|
|
|
|
|
2011-10-25 19:05:32 +04:00
|
|
|
|
// Return the nsToolkit instance. If a toolkit does not yet exist, then one
|
|
|
|
|
// will be created.
|
|
|
|
|
// static
|
|
|
|
|
nsToolkit* nsToolkit::GetToolkit()
|
2006-12-08 11:29:46 +03:00
|
|
|
|
{
|
2011-10-25 19:05:32 +04:00
|
|
|
|
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_RETURN;
|
2008-02-21 02:47:05 +03:00
|
|
|
|
|
2011-10-25 19:05:32 +04:00
|
|
|
|
if (!gToolkit) {
|
|
|
|
|
gToolkit = new nsToolkit();
|
2006-12-08 11:29:46 +03:00
|
|
|
|
}
|
2008-02-21 02:47:05 +03:00
|
|
|
|
|
2011-10-25 19:05:32 +04:00
|
|
|
|
return gToolkit;
|
|
|
|
|
|
2012-07-30 18:20:58 +04:00
|
|
|
|
NS_OBJC_END_TRY_ABORT_BLOCK_RETURN(nullptr);
|
2006-12-08 11:29:46 +03:00
|
|
|
|
}
|
|
|
|
|
|
2008-02-13 18:57:12 +03:00
|
|
|
|
// An alternative to [NSObject poseAsClass:] that isn't deprecated on OS X
|
|
|
|
|
// Leopard and is available to 64-bit binaries on Leopard and above. Based on
|
|
|
|
|
// ideas and code from http://www.cocoadev.com/index.pl?MethodSwizzling.
|
|
|
|
|
// Since the Method type becomes an opaque type as of Objective-C 2.0, we'll
|
|
|
|
|
// have to switch to using accessor methods like method_exchangeImplementations()
|
|
|
|
|
// when we build 64-bit binaries that use Objective-C 2.0 (on and for Leopard
|
2013-10-11 22:58:35 +04:00
|
|
|
|
// and above).
|
2008-02-13 18:57:12 +03:00
|
|
|
|
//
|
|
|
|
|
// Be aware that, if aClass doesn't have an orgMethod selector but one of its
|
|
|
|
|
// superclasses does, the method substitution will (in effect) take place in
|
|
|
|
|
// that superclass (rather than in aClass itself). The substitution has
|
|
|
|
|
// effect on the class where it takes place and all of that class's
|
|
|
|
|
// subclasses. In order for method swizzling to work properly, posedMethod
|
|
|
|
|
// needs to be unique in the class where the substitution takes place and all
|
|
|
|
|
// of its subclasses.
|
2008-03-27 19:30:13 +03:00
|
|
|
|
nsresult nsToolkit::SwizzleMethods(Class aClass, SEL orgMethod, SEL posedMethod,
|
2011-09-29 10:19:26 +04:00
|
|
|
|
bool classMethods)
|
2008-02-13 18:57:12 +03:00
|
|
|
|
{
|
2008-02-21 02:47:05 +03:00
|
|
|
|
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;
|
|
|
|
|
|
2008-03-27 19:30:13 +03:00
|
|
|
|
Method original = nil;
|
|
|
|
|
Method posed = nil;
|
|
|
|
|
|
|
|
|
|
if (classMethods) {
|
|
|
|
|
original = class_getClassMethod(aClass, orgMethod);
|
|
|
|
|
posed = class_getClassMethod(aClass, posedMethod);
|
|
|
|
|
} else {
|
|
|
|
|
original = class_getInstanceMethod(aClass, orgMethod);
|
|
|
|
|
posed = class_getInstanceMethod(aClass, posedMethod);
|
|
|
|
|
}
|
2008-02-13 18:57:12 +03:00
|
|
|
|
|
|
|
|
|
if (!original || !posed)
|
|
|
|
|
return NS_ERROR_FAILURE;
|
|
|
|
|
|
2009-08-13 02:32:41 +04:00
|
|
|
|
method_exchangeImplementations(original, posed);
|
2008-02-13 18:57:12 +03:00
|
|
|
|
|
|
|
|
|
return NS_OK;
|
2008-02-21 02:47:05 +03:00
|
|
|
|
|
|
|
|
|
NS_OBJC_END_TRY_ABORT_BLOCK_NSRESULT;
|
2008-02-13 18:57:12 +03:00
|
|
|
|
}
|