---- XCODE ----

defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions -dict-add ORGANIZATIONNAME "Andy Lee"

Converting nibs to xibs:
	# From <http://softwaretrenches.com/2008/06/cocoa-convertin.html>:
	ls | grep nib | xargs -L1 ibtool --upgrade


---- DEBUGGING -- APPKIDO ----

Verbosity:
	defaults write com.digitalspokes.AppKiDo DIGSVerbosity  0  # NONE
	defaults write com.digitalspokes.AppKiDo DIGSVerbosity 10  # ERROR
	defaults write com.digitalspokes.AppKiDo DIGSVerbosity 20  # WARNING (the default)
	defaults write com.digitalspokes.AppKiDo DIGSVerbosity 30  # INFO
	defaults write com.digitalspokes.AppKiDo DIGSVerbosity 40  # DEBUG
	defaults write com.digitalspokes.AppKiDo DIGSVerbosity 50  # DEBUG2
	defaults write com.digitalspokes.AppKiDo DIGSVerbosity 60  # DEBUG3
	defaults write com.digitalspokes.AppKiDo DIGSVerbosity 99  # ALL

	defaults remove com.digitalspokes.AppKiDo DIGSVerbosity    # (go back to the default, which is WARNING)

Only load Foundation docs:
	defaults write com.digitalspokes.AppKiDo AKFoundationOnly YES  # for faster launch, ONLY for debugging

	defaults remove com.digitalspokes.AppKiDo AKFoundationOnly     # back to loading normal frameworks

Delete prefs plist:
	rm ~/Library/Preferences/com.digitalspokes.AppKiDo.plist


---- DEBUGGING -- APPKIDO-FOR-IPHONE ----

Verbosity:
	defaults write com.appkido.appkidoforiphone DIGSVerbosity  0  # NONE
	defaults write com.appkido.appkidoforiphone DIGSVerbosity 10  # ERROR
	defaults write com.appkido.appkidoforiphone DIGSVerbosity 20  # WARNING (the default)
	defaults write com.appkido.appkidoforiphone DIGSVerbosity 30  # INFO
	defaults write com.appkido.appkidoforiphone DIGSVerbosity 40  # DEBUG
	defaults write com.appkido.appkidoforiphone DIGSVerbosity 50  # DEBUG2
	defaults write com.appkido.appkidoforiphone DIGSVerbosity 60  # DEBUG3
	defaults write com.appkido.appkidoforiphone DIGSVerbosity 99  # ALL

	defaults remove com.appkido.appkidoforiphone DIGSVerbosity    # (go back to the default, which is WARNING)

Only load Foundation docs:
	defaults write com.appkido.appkidoforiphone AKFoundationOnly YES  # for faster launch, ONLY for debugging

	defaults remove com.appkido.appkidoforiphone AKFoundationOnly     # back to loading normal frameworks

Delete prefs plist:
	rm ~/Library/Preferences/com.appkido.appkidoforiphone.plist


---- BRANCH ----

Branch commands:
	git branch
	git branch -r
	git branch $BRANCH_NAME

Deleting a branch:
	git branch -D $BRANCH_NAME
	git push origin :$BRANCH_NAME


---- RELEASE ----

Do at least one test run where you delete the app's plist etc. first, to see what the experience is like for new users.

Edit version string in Info.plist, Info-iPhone.plist
	If going from sneakypeek to official release, remember to just drop the "sp..." suffix; don't increment the version number.
	[agl] Add a note here about the release numbering conventions I'm using.

Update files in the "web" directory
	Update AppKiDo.version with version number
	Update links and release notes:
		appkido.html
		faq.html
		release-notes.html (or sneakypeeks.html, as the case may be)
		screenshot.html
	Update screenshots if necessary

Do git commit
	Might want to quit Xcode/IB first to be sure there's no unsaved changes.

Do git push origin master

Tag the release:
	Have to be in the appkido directory. [agl] Maybe the script should sanity-check.
	akdtag <version-number>
		This pushes the *tag* to GitHub -- not the same as pushing commits.
	Note the actual tag will be release-<version-number>
	Note that ideally we tag after editing the HTML files, since they will be part of the version
		But if I forget or have to go back and edit an HTML file, it's probably okay; no need to move the tag
	Note that we tag before running akdbuild, since it will do a git clone based on the tag
	[agl] Maybe akdtag could inject the version number into Info.plist etc. and commit before tagging?

Generate the three release tarballs (two for app and one for source)
	Either akdbuild <version-number> or akdsneakypeek <version-number>.
	This creates ~/AKDBUILD directory, deleting it first if it exists already
	Note that akdbuild renames the src directory to "AppKiDo" so the tarball will untar with that name
	Untar the generated tarballs and run the apps as a sanity check

Upload files to web site
	first the three tarballs
	then any .html files that were edited
	then AppKiDo.version (note this is last; it's used by the "check for new version" feature, so it shouldn't be posted until everything else is in place for the user to actually get the newer version)

Delete obsolete versions from web site (keep a version or two around so people can revert)
	[agl] when I drop 10.4 support, make a note of the last version that supports it

Sanity-check links on HTML pages

Send release email to cocoa-dev if release is significant enough
	Cc individuals who might be interested but not be on cocoa-dev.


---- BROWSE WITH SQLITE ----

ls ~/Library/Developer/Shared/Documentation/DocSets/

sqlite3 ~/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.AppleiOS6.1.iOSLibrary.docset/Contents/Resources/docSet.dsidx

sqlite3 ~/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.AppleiOS6.1.iOSLibrary.docset/Contents/Resources/docSet.dsidx



