Apple today seeded a sixth beta of OS X Yosemite 10.10.2 to developers, just a week after seeding the fifth beta of OS X 10.10.2, and two months after seeding the first beta.
The new beta, build 14C106a, is available through the Software Update mechanism in the Mac App Store and through the Mac Dev Center.
As with previous betas, Apple asks developers to focus testing on Wi-Fi, Mail, Bluetooth, and VoiceOver. Many Yosemite users have had some ongoing problems with Wi-Fi since the new OS was first launched in October, and a November 10.10.1 update did not resolve all of the lingering issues.

Stupid situation, today I wanted to test deleteRowsAtIndexPaths method from UITable withRowAnimation:UITableViewRowAnimationFade – just to check how it will look, did not wanted to remove my db record and add it every run, but always I was getting:

The reason was simple – in my array I still had removed entry and it caused such exception. So if you want to test something and don’t want to remove db record, you need to remove it at least from array where UITable data is stored, in my case:

just helped, and in case anyway will look for a way to remove table row while having only its index:

And thats all, you don’t need (or even you cannot) use reloadData method. Of course if your table has sections, you need to put proper value as “inSection” argument. The simples and most elegant way is to extend UITableViewCell and add your properties for holding row and section:

 

Apple today seeded a fifth beta of OS X Yosemite 10.10.2 to developers, just one week after seeding the fourth beta of OS X 10.10.2 and nearly two months after seeding the first beta.

The new beta, build 14C99d, is available through the Software Update mechanism in the Mac App Store and through the Mac Dev Center.

As with previous betas, Apple asks developers to focus testing on Wi-Fi, Mail, and VoiceOver. Many Yosemite users have had some ongoing problems with Wi-Fi since the new OS was first launched in October, and a November 10.10.1 update did not resolve all of the lingering issues.

It is a bit different then method showed in previous post – this time its not transactional email sent at demand, but we will catch event fired after invoice is generated. So (I suppose you have your module already) in etc/config.xml add:

Then create your class at app/code/local/YourVendor/YourModule/Model/Observer.php (or use existing one) and add new method:

And invoice will be attached to email defined at:

Zrzut ekranu 2015-01-14 o 19.12.17

Seems to be complex, but its not that bad:

About $vars variable – in this one you can put everything which is set inside email template as variables.

Apple today seeded the fourth beta of iOS 8.2 to developers, nearly a month after seeding the third beta and more than two months after releasing the first iOS 8.2 beta.

The beta, build 12D5461b, is available immediately to registered developers as an over-the-air update and it can also be downloaded from the iOS Developer Center. Today’s update also includes Xcode 6.2 beta 4 with WatchKit.
iOS 8.2 includes the WatchKit SDK, allowing developers to create apps, Glances, and notifications for Apple’s upcoming wearable device ahead of its 2015 launch. The first iOS 8.2 beta, with WatchKit SDK and developer documentation, revealed several new details about the Apple Watch, including its heavy reliance on the iPhone and the different types of content developers can create for the device.
The iOS 8.2 update has been widely expected to be released in conjunction with the launch of the Apple Watch and the fourth iOS 8.2 beta adds new evidence to support that theory.
In the Bluetooth section of the Settings menu on the iPhone, there‚Äôs now a mention of the Apple Watch, advising users to open the “Apple Watch app” to pair an iPhone with an Apple Watch. The Apple Watch iPhone app will likely be used to allow Apple Watch wearers to control settings on the device from their iPhones.

Apple today seeded a fourth beta of OS X 10.10.2 Yosemite to developers, nearly four weeks after the previous beta release.
The new beta, build 14C94b, is available through the Software Update mechanism in the Mac App Store and through the Mac Dev Center.
Apple continues to ask developers to focus their testing on Wi-Fi, Mail, and VoiceOver. Wi-Fi in particular has been an issue for some OS X Yosemite users since the operating system’s October launch, and OS X 10.10.1 released in November failed to resolve all of those problems.

FMDB is pretty cool but due to specific iOS behaviour while using threads, it can lead to unexpected results. First rule is – never use FMDB as singleton. Yes, if you’re coming from PHP it can be tempting as single db connection is common there. But consider such scenario:

  1. SELECT myfield FROM mytable WHERE id = 1; // let’s say this will give you “0” as result
  2. User pushed button in your app, which should change “myfield” to 1 and reload data
  3. So in push action you’re doing UPDATE mytable SET myfield = 1 WHERE id = 1;
  4. After this you’re calling something like [self reloadData]; and expected value for “myfield” is “1”, but instead you have still “0”

This happens becouse iOS locked your db and has local “snapshot” in which your “myfield” has value “0”. To prevent this all SELECT/UPDATE/INSERT operations should use FMDatabaseQueue. So your update method should looks like this:

If you need to fetch some date you should use __block and just add columns to list as usual: