Category: Uncategorized
-
NSRangeMake
Maybe this is common and maybe it’s not, but in the course of my work writing Objective-C for iOS, I end up using CGRectMake()—to make, yes, a CGRect—pretty frequently, but I only rarely need to build an NSRange.  So following the CGRectMake pattern, I inevitably start typing “NSRangeMake” and along the way the only method…
-
SQL Azure, Management Studio 2008, and the ‘sys.configurations’ error
Here you are, just trying to get some work done by connecting to a SQL Azure instance using Microsoft SQL Server Management Studio (hereafter “SSMS”) 2008. But instead of a connection, all you get is a line of Microsoft free verse: Invalid object name ‘sys.configurations’. (Microsoft SQL Server, Error: 208) Googling around for help returns…
-
When Your DataMember Custom Property Names Aren’t Working
Let’s say you’re writing a WCF REST service, and in proper C# fashion, your object’s properties start with a capital letter. Then your service is being consumed by Objective-C code or javascript, which call for lowercase. Since WCF uses the DataContractJsonSerializer, you can set a different name for the property to serialize to: public class…