January 30, 2012
Updates to Some Libraries
With changes that have been happening in my life, specifically going back to school to get a doctoral degree, I find that I am no longer able to support the full suite of QC libraries. The QuickConnect Hybrid framework will now be the only one I am supporting.
When I am done with the degree I will again be supporting the other libraries. There is only so much time in the day.
The other libraries, such as enterprise sync, QCJSON, QCNative, etc. are and will still be available for download from source forge.
Thank you,
Lee Barney
January 10, 2012
Current Beta
The latest release of QC is in beta stage and is proceeding apace. This beta includes optimizations of the communication layer between the JavaScript and the native sides for both iOS and Android. It is much more responsive but requires a large amount of testing since it is a major change.
Another change is the Xcode 4 template that easily allows you to easily create iOS and Android applications from the same project. This is in final dev-test.
Additionally there will be some new functionality that allows you to generate multiple views from within JavaScript, size them, and indicate where they should display on top of the base web view. Such views can be other web views, image views, document views, etc.
The time required by my work on my doctoral degree has slowed the release process but work continues. It just can’t be done quite as quickly as it was before I started the program.
VTM Developer Conference http://bit.ly/rwjFgk
I will be speaking at the Voices Android Developers Conference in February. I’d love to meet you there. Use this priority code ANDSP34 and save $200 + Early Bird price thru Jan 13
I’ll be speaking about hybrid application development.
August 16, 2011
QC DBSync version 1.3 available
For those of you needing a native database synchronization tool version 1.3 of QC DBSync is now available. It includes minor functionality and API upgrades on the iOS side, an example service written in PHP is included in the download.
QC Native 1.3 available
For those of you doing native, not hybrid JavaScript, development with QC I have uploaded a new version of QC Native. It rationalizes the differences between the Java and iOS versions making the APIs nearly identical. I have also updated the API Docs for Android, created API Docs for iOS, and included both in the downloads as well as the QC Family web site.
The download now includes a SimpleDB example for both Android and iOS. The example inserts values into the database, queries values from the database, and can do an HTTP GET. The iOS database interactions show how to use CoreData. I will soon (by the end of the month??) have an example using the Android ORM I’m developing.
Still working on that QC Hybrid release. It is getting really close. More on that later.
May 26, 2011
Command Line Building using Xcode
Most professional software development companies or professional software organizations within companies eventually need to be able to build their products from the command line as part of an automated build process. Usually this is proceeded by doing a pull from a software repository. Often such builds are done at night or during other off-time hours.
This posting will not cover the use of git or other repositories. It will cover the use of the terminal to build an Xcode project in Xcode 4. Most of this information has been gleaned from examining the man page of xcodebuild. You can see the help for xcodebuild if in the terminal you enter man xcodebuild.
Getting the version of xcode
Often in scripts a check of the compilation tool version is done to ensure correct compilation. This is done by calling xcodebuild -version
The example here lists the targets available in the File List project as well as the build configurations available.
April 12, 2011
JavaScript fixed length double
For those of you who are using monetary or other fixed length values in your app here is a little function to help you out. It accepts any numeric or string values and produces a string that can be used for further calculation as a number or displayed. If the number is shorter than the precision indicated the function will pad it with zero characters until it is the correct length.
Enjoy.
Call it like this: var fixedLengthFloat = toFixed(3.2, 10);
The function:
function toFixed(value, precision) {
if(isNaN(value)){
value = 0;
}
if(precision < 0){
precision = 0;
}
var power = Math.pow(10, precision || 0);
var result = String(Math.round(value * power) / power);
if(precision > 0){
if(result.indexOf(‘.’) == -1){
result += ‘.’;
for(var i = 0; i < precision; i++){
result += ’0′;
}
}
else{
var decimalPortion = result.substring(result.indexOf(‘.’)+1, result.length);
var placesMissing = precision – decimalPortion.length;
for(var i = 0; i < placesMissing; i++){
result += ’0′;
}
}
}
return result;
}
March 10, 2011
Xcode 4 and QuickConnect
Since Xcode 4 doesn’t allow custom templates I have been working on a way to make it easy for to use QuickConnect in your projects. I don’t have a solution yet but am working on it continuously.
I hope to have a solution very soon.
Lee
January 2, 2011
2010 Blog Stats.
Thought you might like to know.
Thanks for your support.
Lee
The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here’s a high level summary of its overall blog health:

The Blog-Health-o-Meter™ reads Wow.
Crunchy numbers
The Louvre Museum has 8.5 million visitors per year. This blog was viewed about 96,000 times in 2010. If it were an exhibit at The Louvre Museum, it would take 4 days for that many people to see it.
In 2010, there were 34 new posts, growing the total archive of this blog to 139 posts. There were 7 pictures uploaded, taking up a total of 765kb.
The busiest day of the year was July 6th with 439 views. The most popular post that day was UIWebView Example Code.
Where did they come from?
The top referring sites in 2010 were stackoverflow.com, quickconnect.sourceforge.net, quickconnectfamily.org, maniacdev.com, and swik.net.
Some visitors came searching, mostly for uiwebview example, quickconnect, uiwebview sample, android ajax, and uiwebview javascript callback.
Attractions in 2010
These are the posts and pages that got the most views in 2010.
UIWebView Example Code May 2008
12 comments
Calling Objective-C from JavaScript in an iPhone UIWebView August 2008
25 comments
QuickConnect iPhone: an iPhone UIWebView hybrid framework May 2008
24 comments
Android, WebView and AJAX February 2009
18 comments
iPhone Objective-C SQLite development June 2008
December 23, 2010
QuickConnect 1.6.4 Now Available
I have just posted the 1.6.4 version of QC on SourceForge. It includes some defect fixes and some minor additions, and a few big changes. QC 1.6.4 requires the iOS 4.2 SDK.
The big changes are regarding the native application templates. You can now use the same design to create Objective-C iPhone, iPad, and Universal iPhone/iPad apps that you have been using to create your hybrid applications.
These native iOS apps come ‘pre-threaded’. Every time you call handleRequest your command stack is executed on a worker thread. Any of your ViewControlObjects that you create for your control Stack are executed in the main thread since it is the only one that is allowed to update the User Interface. All other behavior is done on a worker thread and you don’t have to worry about how to set it up, make it go, or make it stop.
Just as with the hybrid apps you’ve been creating with QC all of your async calls to HTTP servers, portals, etc. are linearized for you. You never need to write another callback function!
In addition to making your remote HTTP calls easier all of the templates for native QuickConnect applications also include support for both direct SQLite access and CoreData.
With a little time working in Interface Builder and putting together some CoreData objects your app is up and running.
Examples are already in the download for all of these native iOS templates. Check them out and see how easy native iOS apps can be.
The next release will have native multi-threaded Android applications as well.
One other change is that the PHP template has been updated. Take a look at the example in the download.
Lee






