Category Archives: Programming

Algorithms, Snippets, Bugs, etc.

Exporting your digital comics from Comics.app on iPhone

*Post originally contained information on how to backup your comics, redacted at the request of Comixology’s CEO.* Digital comics are a great thing, and I’m slowly amassing a reasonable library of them through the fantastic Comics.app (Comixology) on the iPhone/iPad. … Continue reading

Posted in Literature, Miscellany, Programming | Tagged , , , , , , | Comments Off on Exporting your digital comics from Comics.app on iPhone

Providing a consistent UI experience between UITextField and UITextView

There are a few major differences between the two but the most glaring is that UITextView does not support styles so you cannot create them stylistically the same as a UITextField. You cannot readily apply background images depending on state … Continue reading

Posted in Programming | Tagged , , , , | 1 Comment

One problem with objects being so closely tied to the underlying DB in Core Data.

Why does the following code throw an exception and immediately sig kill on the second iteration at [e nextObject]: for (NSManagedObject *current in categories) { if ([lowercaseName isEqualToString:[current.name lowercaseString]] && category != current ) { // Move all the recipes. … Continue reading

Posted in Programming | Tagged , | Comments Off on One problem with objects being so closely tied to the underlying DB in Core Data.

Camera issues!

I’ve known since the start that the UIImagePickerControllerDelegate code I was using was deprecated so I’ve finally gone through and updated it. The changes were implemented to allow support for video I believe not that I’ll be needed those extensions. … Continue reading

Posted in Programming | 2 Comments

Progress doesn’t always feel like progress.

So many changes have been made, which doesn’t always feel like you’re getting anywhere. I’ve made it so that Recipes sent in any form are transmitted as JPEG’s at 50% quality, it seems you can set the quality level of … Continue reading

Posted in Cooking, Games, Programming | Tagged , , , , | Comments Off on Progress doesn’t always feel like progress.

I should of known it would be the relationships causing trouble.

Converting the JSON messages back into managed objects should be quite simple.  You loop around your dictionary converting stuff back.  A useful shortcut is provided by the managed object function setValuesForKeysWithDictionary.  Given that the dictionary came from a managed object … Continue reading

Posted in Programming | Tagged , , | Comments Off on I should of known it would be the relationships causing trouble.

iPad rotation problems, an update.

So having created a separate test app which does not exhibit the problem I ported some of that code into my app which then starts to exhibit the issue I conclude that the problem lies within the view containing the … Continue reading

Posted in Programming | Tagged , , , | Comments Off on iPad rotation problems, an update.

A few iPad differences/bugs to squish.

Whilst working on the code to email recipes as PDF’s and whatnot I’ve had the opportunity to give the iPad version of the code a thorough going over. I’ve encountered a few bugs. Some are technically present in the iPhone … Continue reading

Posted in Programming | Comments Off on A few iPad differences/bugs to squish.

That’s quite enough of that for the day.

So in conclusion we have established the following: 1) Recipes with all the photos embedded could be quite epic in size. 10-20 MB perhaps. 2) Bluetooth will only send around 100kB in one call. 3) You can implement a state … Continue reading

Posted in Programming | Comments Off on That’s quite enough of that for the day.

Should have read the Gamekit docs.

Damnit. Got everything working and then got errors during the first tests: 2010-10-19 18:34:14.969 Cooking Companion[1369:207] AGPSessionBroadcast failed (801c0001) It would appear that I’m limited to 95kB. Sadly I am trying to send: (gdb) print (NSUInteger)[data length] $4 = 387339 … Continue reading

Posted in Miscellany, Programming | 1 Comment