Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
default_dir = File.dirname(@project_path) + "/build" prefs = Xcode.preferences dir = [ prefs['PBXProductDirectory'], prefs['PBXApplicationwideBuildSettings'] && prefs['PBXApplicationwideBuildSettings']['SYMROOT'], default_dir ].map { |e| e && File.expand_path(e) }.find { |path| path && File.directory?(path) }
From the Design Piracy series on my blog: