Pretty simple: NSString* str = @”some example string”; NSData* data = [str dataUsingEncoding:NSUTF8StringEncoding]; and if you want it back: NSString* another = [NSString stringWithUTF8String:[data bytes]];
OS X 10.9 Mavericks adoption is over 40%
After five months of availability, OS X 10.9 Mavericks now generates just over 40 percent of all North American OS X-based Web traffic handled by ad network Chitika, […]
Quick tip: Update Java to 8 and set it as default version
Well, first part is quite easy, just go to http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html and grab jre-8-macosx-x64.dmg. After downloading doubleclick and install as normal app. After installation new browser window will be […]
Quick tip: Architecture not supported when compiling for iOS 7.1 using XCode 5.1
Using configuration mentioned above you may receive one of those (or another) errors: types.h – User Defined Issues – Architecture not supported _types.h – User Defined Issues – […]
Quick tip: how to compile for iOS 5.1 under XCode 5
Well first though is to set deployment target to iOS 5.1 but its not so obvious. You have to remove arm64 from Architectures in “Build Settings“
iTunes 11.1.6 beta with local sync
According to the release notes, iTunes 11.1.6 “restores the ability to sync contacts and calendar information to your iPhone, iPad, or iPod touch from your Mac running OS […]
OS X Mavericks 10.9.3 Build 13D21 is out
Apple today seeded build 13D21 of OS X 10.9.3 to developers, one week after releasing the second OS X 10.9.3 beta, build 13D17 and two weeks after the […]
Sorting an Array in Objective-C
Sorting an array is pretty simple, thanks to many helper classes you can sort not only by key but also by attributes (if you have array of objects). […]
Microsoft Office for iPad available on March 27th?
The Verge is reporting that Office Mobile may finally arrive on the iPad later this month during a media event on Thursday, March 27 where Microsoft’s newly minted […]