Just found a nasty crash with NSZombiesEnabled. A deallocated view was called with performsSelector. huh? who did this?

Turns out that’s a corner case, scrolling was not yet done (because animated) but due to low mem the view was discarded instantly. Then system called the view: hey, done with scrolling! kaboom.

So, rule of thumb: clear your delegates on viewWillDisappear and re-set them  on view WillAppear. No more troubles.

Thanks again, StackOverflow (a but cryptic this time)

T-Mobile austria rewrites urls when in edge! That’s absolutely outrageous!

Urls get rewritten to  http://1.2.3.10/bmi/<original-url>

And you can’t do anything except working around it. hmpf.

Google’s not very helpful on this error. NSInternalInconsistencyException ‘Attempt to create two animations for cell’

After banging my head against the wall several times, I got the solution – and how simple it is! I’ll post the full code here.
In short, remember all your insert/update/delete operations and make sure only one animation per cell is called.
Remember this is three20 code, and you’ll need the willUpdateFor- functions in the DataSource. This overrides code from three20’s internal sources.
Update: changed dictionary to set.

Read the rest of this entry »

Sneaky… apple added HSF+ compression to SL and compressed most of their executables with it. Read the link for details, it a very clever, backward compatible HACK.

Anyway, we can use that now (conveniently) with Squeeze! And as a matter of fact, it’s currently free for MacHeist-Users.

Best thing? It makes my mac even faster. CPU is no problem – but SSD space is ;)

Missing namespaces are a a huge problem in objectivec – something that can’t be solved easily. And the more third-party libs you use, the more trouble it gets.

Imagine, I had to rename my model classes after linking with the MessageUI Framework (InApp Email) because “Message” and “Account” classes are used by Apple. Private ones, not documented, but there. And they conflict with your classes, at least if you use Core Data.

Lesson learned: prefix everything!  (There’s a reason it’s NSString, not String, or CFRect, not Rect…)

Read the rest of this entry »

top

Switch to our mobile site