martinrybak / SQLClient

Native Microsoft SQL Server client for iOS
http://objcsharp.wordpress.com/2013/10/15/an-open-source-sql-server-library-for-ios/
MIT License
124 stars 51 forks source link

Update SQLClient.m #13

Closed nhgrif closed 10 years ago

nhgrif commented 10 years ago

Using instancetype as the sharedInstance return type prevents having to cast this return for direct use of the properties and methods. For example, with this change, the following is possible: [SQLClient sharedInstance].timeout = 3; Without the change, you'd have to first save it to a variable or do the following ((SQLClient*)[SQLClient sharedInstance]).timeout = 3;