我下载了适用于Java EE Developers Luna 4.4的最新Eclipse IDE,并尝试安装AWS Toolkit for Eclipse但收到错误消息:
Failed to prepare partial IU: [R]com.amazonaws.eclipse.datatools.enablement.simpledb.driver
1.0.0.v201405191642.
Run Code Online (Sandbox Code Playgroud)
我试过安装
在Eclipse日志中,我得到以下内容:
!ENTRY org.eclipse.equinox.p2.publisher.eclipse 4 0 2014-06-28 14:14:23.076
!MESSAGE Unable to acquire PluginConverter service during generation for: /Users/bernhard/Documents/EclipseDevelopment/eclipse/plugins/com.amazonaws.eclipse.datatools.enablement.simpledb.driver_1.0.0.v201405191642. !ENTRY org.eclipse.equinox.p2.touchpoint.eclipse 4 0 2014-06-28 14:14:23.077
!MESSAGE The bundle manifest could not be read: /Users/bernhard/Documents/EclipseDevelopment/eclipse/plugins/com.amazonaws.eclipse.datatools.enablement.simpledb.driver_1.0.0.v201405191642
!ENTRY org.eclipse.equinox.p2.engine 4 4 2014-06-28 14:14:23.093
!MESSAGE An error occurred while installing the items !SUBENTRY 1 …
Run Code Online (Sandbox Code Playgroud) 我有一个包含布尔标志的模型对象。我想使用UISwitch显示标志的值。该值可以通过两种方式更改:
但是,在计时器方法中设置开关的值具有以下效果:即使用户触摸了开关,有时也不会触发touchUpInside操作。
因此,我面临以下问题:如果在外部更改状态时在计时器中设置开关状态,则会从用户那里释放一些状态更改。如果我不使用计时器,则会从用户那里获得所有状态更改。但是,我想念所有外部状态的变化。
现在我的想法已经用完了。如何在模型中同时获得两种类型的状态变化并将其正确反映在开关视图中,从而实现所需的目标?
这是显示问题的最小示例。我已经用一个简单的布尔标志替换了模型对象,并且在计时器中我根本不更改标志,我只是调用setOn:animated:。我计算动作方法的调用次数。这样,我可以轻松找出错过了多少次触摸:
#import "BPAppDelegate.h"
#import "BPViewController.h"
@implementation BPAppDelegate {
NSTimer *repeatingTimer;
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
BPViewController *viewController = [[BPViewController alloc] init];
self.window.rootViewController = viewController;
[self.window makeKeyAndVisible];
[self startTimer];
return YES;
}
- (void) startTimer {
repeatingTimer = [NSTimer scheduledTimerWithTimeInterval: 0.2
target: self.window.rootViewController
selector: @selector(timerFired:)
userInfo: nil
repeats: YES];
}
@end
#import "BPViewController.h"
@implementation BPViewController {
UISwitch *uiSwitch;
BOOL value;
int count;
}
- …
Run Code Online (Sandbox Code Playgroud)