Code-free
Code-free

ARM64 and You

or how I rue NSInteger

Russ Bishop
March 22, 2014

NSInteger is now 64-bit on ARM64; that means a bunch of useless warnings everywhere about precision loss right? WRONG.

Here's a hint: "Comparison of constant 'NSNotFound' with expression of type 'int' is always true". Uh-oh. Fix your integer warnings and kick yourself for not using NSInteger because every count, . . .

Read More

Associated Objects in C#

objc_setAssociatedObject makes a friend

Russ Bishop
March 22, 2014

Many people think there is no equivalent of objc_setAssociatedObject in C#, but those people are wrong.

As a quick refresher, Objective-C allows you to add methods to objects via categories (roughly equivalent to extension methods in C#), but there's no way to add new property values directly. Instead, you can use . . .

Read More

Archive
  Subscribe by Email and Never Miss a Post