Archive

Archive for October, 2010

Find out your installed iOS SDK version

  • Go to your /Developer folder.
  • There should be an “About Xcode and iPhone SDK.pdf” file with informations about the installed version.
Categories: Development, iOS, Xcode

Download old Apple iOS Versions

You need an Apple developer account to login!

You can get some old links to work by changing http://developer.apple.com/iphone/… to http://developer.apple.com/ios/…

iPhone SDK 3.1.3 with XCode 3.1.4 for Leopard (10.5.7)
http://developer.apple.com/ios/download.action?path=/iphone/iphone_sdk_3.1.3__final/iphone_sdk_3.1.3_with_xcode_3.1.4__leopard__9m2809a.dmg

iPhone SDK 3.1.3 with XCode 3.2.1 for Snow Leopard (10.6.0)
http://developer.apple.com/ios/download.action?path=/iphone/iphone_sdk_3.1.3__final/iphone_sdk_3.1.3_with_xcode_3.2.1__snow_leopard__10m2003a.dmg

iPhone SDK 3.2 Final with Xcode 3.2.2 for Snow Leopard (10.6.0)
http://developer.apple.com/ios/download.action?path=/iphone/iphone_sdk_3.2__final/xcode_3.2.2_and_iphone_sdk_3.2_final.dmg

Xcode 3.2.3 and iPhone SDK 4 GM seed for Snow Leopard (10.6.2)
http://developer.apple.com/ios/download.action?path=/iphone/iphone_sdk_4_gm_seed/xcode_3.2.3_and_iphone_sdk_4_gm_seed.dmg

Xcode 3.2.3 and iPhone SDK 4 Final for Snow Leopard (10.6.2)
http://developer.apple.com/ios/download.action?path=/iphone/iphone_sdk_4__final/xcode_3.2.3_and_iphone_sdk_4__final.dmg

Xcode 3.2.3 and iOS SDK 4.0.1 for Snow Leopard (10.6.4)
http://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.0.1__final/xcode_3.2.3_and_ios_sdk_4.0.1.dmg

Xcode 3.2.3 and iOS SDK 4.0.2 for Snow Leopard (10.6.4)
http://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.0.2__final/xcode_3.2.3_and_ios_sdk_4.0.2.dmg

Xcode 3.2.4 and iOS SDK 4.1 for Snow Leopard (10.6.4)
http://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.1__final/xcode_3.2.4_and_ios_sdk_4.1.dmg

Xcode 3.2.5 and iOS SDK 4.2 beta 3 for Snow Leopard (requires Mac OS X v10.6.5 pre-release)
http://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.2_beta_3/xcode_3.2.5_and_ios_sdk_4.2_beta_3.dmg

Categories: iOS, Xcode

Change Apple-Keyboard Layout

October 25, 2010 2 comments
  • create a text file with the name “PC Layout german.keylayout” with the content of this file: PC.keylayout
  • copy the file into the folder:

~/Library/Keyboard Layouts/

  • restart your mac
  • In your system “Language and Text” settings you can choose the new layout on the “Input Sources” tabkeyborad layout selection
  • activate the “Show Input menu in menu bar” checkbox
  • you can select the new keyboard layout from the menu bar

keyboard layout selection

  • Keybindings:
Command Character
shift-7 /
shift-alt-7 or alt-ß \
alt-5 or alt-8 [
alt-6 or alt-9 ]
alt-< |
alt-7 {
alt-q }
alt-0 @
alt-+ ~
fn-backspace del command
ctrl-z undo command
ctrl-shift-z redo command
Categories: Mac OS X

iPhone & iPad Prototyping

  • Balsamiq lets you create nice iPhone Mockups within a few minutes.
  • With Realizer you can create an interactive prototype of your iPhone or iPad app simply by uploading your sketches or screen mockups.
  • Create mobile web applications and Web sites for iPhone and iPad with MobiOne Studio. You can use this to create a prototype of your app, too.

iPhone

  • here you can create simple iPhone mockups online and share it by sending the URL
  • with mockingbird you can create mockups online, too
  • with MockApp you can create mockups on your Mac
  • with MobiOne Studio you can create mockups on your Windows PC
  • here you can get a collection of vector iPhone UI elements for Fireworks CS3 and CS4 and here some for Illustrator
  • here, here and here you can find nice iPhone 4 vector illustrations
  • here some stencils for Photoshop (iPhone 4) and here for OmniGraffle

iPad

  • here you can get a some stencils for Photoshop and here for OmniGraffle
  • here you can get a collection of vector iPad UI elements for Illustrator
  • you can find more links and stuff here
Categories: Development, iOS, Prototyping

Differentiate between iPhone, iPad and simulator

October 20, 2010 4 comments
#if TARGET_IPHONE_SIMULATOR
// simulator specific code
#elif TARGET_OS_IPHONE
// iPhone specific code
#elif TARGET_OS_IPAD
// iPad specific code
#else
// Unknown target
#endif 

Differentiate between iOS versions

Depending on your project settings Base SDK you can use the following code:

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 40000
// Do something for iOS > 4.0
#else
//Do something for iOS < 4.0
#endif

Categories: CodeSnippets, iOS

Text difference analyzer on Mac

Categories: Mac OS X

Installing Fink and Fink packages

  1. Download the latest stable Fink release here
  2. Untar the package, e.g. with tar -xvzf fink-0.29.10.tar.gz
  3. Launch the bootstarp file:
    cd fink-0.29.10
    sudo ./bootstrap /sw
  4. Follow the instructions
  5. You should now have a working Fink installation in ‘/sw’.
  6. Add fink to your path:
    cd /sw/bin/
    . pathsetup.sh
    (restart Terminal App after that)
  7. Update fink:
    fink selfupdate
  • Now that you’ve updated fink, you can install other packages.
    fink install meld-1.3.1-1
Categories: Mac OS X

Rename Xcode project

  1. Rename the .pch, .xcodeproj and project’s .plist file.
  2. Delete the build folder.
  3. Open the .xcodeproj folder by using the command ‘show package content’ and open the project.pbxproj file with a text editor. Replace all instances of the old name with the new name.
  4. Rename.
  5. Load the project file in XCode and run Build->Clean All Targets.
  6. Build and Run your project.

If you get the following Warning: The Copy Bundle Resources build phase contains this target’s Info.plist file “YourRenamedInfo.plist”.

  1. Select your project’s .plist file, get info on it. Click on the Targets tab, and uncheck the box (in caes it’s checked).
  2. In XCode’s outline panel (on the left), click on the small arrow next to your target. You should see the Copy Bundle Resources folder in grey. Browse it and delete any reference to both your old and new .plist file if present.
Categories: iOS, Xcode

iOS SDK for Mac OS X 10.5 (Leopard)

Here you can get the old SDK (for Mac OS X 10.5 – Leopard) if you don’t have Mac OS X 10.6 (Snow Leopard) running on your computer.

You can also upgrade your 10.5 system for 29,00€ here and get the newest iOS version from here.

Categories: iOS, Mac OS X, Xcode