You can invert the colors on a mac by holding down the following keys: Control + Alt + Ctrl + 8
Tag: Mac
Check If Your Apple Device ID Was Compromised
Mashable acticle quote: “A hacker group called AntiSec said it has compromised 12 million Apple iOS Unique Device IDs (UDIDs) and personal information from Apple product owners — and there’s a good chance your iPhone, iPad or iPod Touch devices could be at risk.” Link to article. To check if you Apple Device ID was compromised go to this site: https://lastpass.com/udid/
How To Find Your Apple Device UDID
You can find your Apple Device UDID by opening up iTunes and select your device under the menu Devices. Now in the panel under iPhone/iPad/etc press the “Serial Number: xxx” and it’ll switch to showing your UDID instead. Identifier (UDID): xxx
Xcode Terminating App Due To Uncaught Exception ‘NSUnknownKeyException’
When running iOS in Xcode you might run into this error: Terminating App Due To Uncaught Exception ‘NSUnknownKeyException’ To fix this go to iOS Simulator > Reset Content and Setting
Xcode Add iPad Compatibility
To add iPad compatibility in Xcode do the following: In Xcode 4 after opening select your project in the Project Navigator and select your target. Go to the summary tab and select “Universal” under Devices. For Xcode 3 take look at this blogpost.
Xcode Commit Missing File Or Directory
Xcode aren’t keen when deleting files or directory without it being notifies and there refused to commit which is a pain. What worked to fix it was to recreate an empty folder with the same name. No need to recreate its contents. After you committed you can delete the folder and commit again. Xcode is missing
Mac Recycle Trash Can Folder
To locate the recycle trash can folder on Mac you’ll first need to set hidden files and folder to visible. Show hidden files in Mac Finder. When this is done open Finder and navigate here: “Macintosh HD>Users>your username>.Trash” This is similar to Windows Recycle Bin.
Xcode Get The iPhones Language
To get the locale language in your app on iPhone you can use the this example: NSLog(@”localeIdentifier: %@”, [[NSLocale currentLocale] localeIdentifier]); If you running english language on your iPhone you’ll get this output: localeIdentifier: en_GB Other output could be en_US sv_SE da_DK de_DE and so on.
Xcode Printing NSData to NSLog
In Xcode Object-C to print out NSData to NSLog you might run into rubbish output by just outputting the NSData NSLog(@”%@”, myData); And as output something like this: <3c3f786d 6c207665 7273696f etc… This is not rubbish, though it might look that way, this is correct behavior and is just in hex format. If you know
Xcode Object-C NSUrl to NSString
In Object-C to convert back and forth from NSUrl and NSString take a look at this example: NSString *urlstring = [NSString stringWithFormat:@”http://spacetech.dk”]; NSURL *url = [NSURL URLWithString:urlstring]; NSLog(@”url = %@”,url); This will first save a NSString, then create a NSUrl from the String, and last output the NSUrl in the log