VS2005 ASP.Net not stopping on breakpoints

If you have IE 8 installed and your ASP.Net project won’t stop on the breakpoints you’ve set they you probably need to read this article

You basically need to add an entry to your registry to stop process growth for tabs.

I’ve copied the steps required below

1) Open RegEdit
2) Browse to HKEY_LOCALMACHINE -> SOFTWARE -> Microsoft -> Internet Explorer -> Main
3) Add a dword under this key called TabProcGrowth
4) Set TabProcGrowth to 0

SVN, pbxuser and Xcode

UPDATE: unfortunately this only works for new projects!

Recently needed to change the way svn dealt with pbxuser files, found the following article that shows you how to tell svn to ignore certain files, but before I could do anything I had to be able to see the “hidden” svn folder where this article came in handy!

I’ve copied the crucial snippets here so that I don’t lose them….

Show hidden files

From Terminal run the following command…

defaults write com.apple.Finder AppleShowAllFiles YES

Then you need to get Finder to relaunch, hold down the option key and click the Finder icon in the Dock, then select Relaunch

Now when you look at folders any hidden ones are visible, including the important .svn

SVN Ignore files

Step 1. Open the subversion configuration file
~/.subversion/config
NOTE: If the “.subversion” directory doesn’t exist yet then run this command which fails but will create the necessary files to get you started:
svn status

Step 2. Enable “global-ignores” and add new things to ignore
Find the line that contains the text “global-ignores” and append the following text:
build *~.nib *.so *.pbxuser *.mode* *.perspective*

Step 3. Enable “auto-properties”
Located and uncomment (e.g. remove the leading “#” character) the line that looks like this:
# enable-auto-props = yes

Step 4. Add additional properties
Then go to the end of the file, in the [auto-props] section, and append these lines:
*.mode* = svn:mime-type=text/X-xcode
*.pbxuser = svn:mime-type=text/X-xcode
*.perspective* = svn:mime-type=text/X-xcode
*.pbxproj = svn:mime-type=text/X-xcode

Programmatically Exit iPhone App

To terminate your app from within your code execute the following command…

exit(0);

UIAlertView with UITextField – REJECT

A project I’m working on contains an alert that uses the addTextFieldWithValue:label: private API, this approach has been popular/recommended by a number of developers/blogs, but now that Apple have their automated checking for Private API’s any apps using this technique will be rejected….

“3.3.1 Applications may only use Documented APIs in the manner prescribed by Apple and must not use or call any private APIs.”

The following non-public APIs are included in your application:
addTextFieldWithValue:label:
textFieldAtIndex:

Jeff LaMarche has a great article that shows an alternative, that doesn’t use any Private API’s and therefore shouldn’t get you rejected.

XCode SCM column in Xcode project treeview

If you can’t see the column to the left of project files that shows the SVN status of a file, right-click the “Groups & files” title and select SCM

Groups & Files - SCM

__MyCompanyName__

The template that creates your .h and .m files within Xcode by default sets the company name to __MyCompanyName__

To correct perform the following…

1) Start up the program Terminal Utilities/Terminal
2) Enter the following where XXXXXXXXXXXXX is what you want to appear in place of __MyCompanyName__:
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions ‘{“ORGANISATIONNAME” = “XXXXXXXXXXXXX”;}’
3) Press enter
4) Shut down and restart Xcode.

Finding Build Errors

To quickly jump to build errors within your iPhone app, use the short cut combo of ⌘=