Display Pending Automatic Migrations from Code

Background

We work in a geographically distributed team. Every so often, a team on the other side of the world creates a build for the integration server that fails due to

Unable to update database to match the current model because there are pending changes and automatic migration is disabled. Either write the pending model changes to a code-based migration or enable automatic migration. Set DbMigrationsConfiguration.AutomaticMigrationsEnabled to true to enable automatic migration.

We use code based migrations.

read more

Display Pending Automatic Migrations from Code

Background

We work in a geographically distributed team. Every so often, a team on the other side of the world creates a build for the integration server that fails due to

Unable to update database to match the current model because there are pending changes and automatic migration is disabled. Either write the pending model changes to a code-based migration or enable automatic migration. Set DbMigrationsConfiguration.AutomaticMigrationsEnabled to true to enable automatic migration.

We use code based migrations.

read more

numberOfTouchesRequired only working for :1 / only working on iPad

I set my GestureRecognizer like this

     UITapGestureRecognizer *singleFingerTap =
    [[UITapGestureRecognizer alloc] initWithTarget:self
                                            action:@selector(handleSingleTap:)];
    [self addGestureRecognizer:singleFingerTap];
    singleFingerTap.numberOfTapsRequired = 3;

and the selector:

- (void)handleSingleTap:(UITapGestureRecognizer *)recognizer {
NSLog(@"yyeyyyyeyyyyyeyyyyye");
}

The class is a subclass of UIView and I want the selector to be fired on the third time – but it only works when setting numberOfTapsRequired to 1.

read more

numberOfTouchesRequired only working for :1 / only working on iPad

I set my GestureRecognizer like this

     UITapGestureRecognizer *singleFingerTap =
    [[UITapGestureRecognizer alloc] initWithTarget:self
                                            action:@selector(handleSingleTap:)];
    [self addGestureRecognizer:singleFingerTap];
    singleFingerTap.numberOfTapsRequired = 3;

and the selector:

- (void)handleSingleTap:(UITapGestureRecognizer *)recognizer {
NSLog(@"yyeyyyyeyyyyyeyyyyye");
}

The class is a subclass of UIView and I want the selector to be fired on the third time – but it only works when setting numberOfTapsRequired to 1.

read more

Apple releases OS X 10.11 El Capitan to the App Store

Apple has just released the final public version of OS X El Capitan, version 10.11 of the Mac’s operating system. As with all recent OS X releases, you’ll need to download El Capitan from the Mac App Store on a Mac running OS X 10.6.8 or higher.

El Capitan isn’t the most exciting update Apple has ever released, but there are enough changes above and under the hood to make it worth an upgrade: an improved Mission Control with a Split View mode for full screen apps, updates to Spotlight and several of Apple’s apps, the Metal graphics API, System Integrity Protection, networking improvements, and other small tweaks. We cover the important stuff in our full review.

read more