Author: fmui
Date: Wed Dec 26 20:11:38 2012
New Revision: 1426004
URL: http://svn.apache.org/viewvc?rev=1426004&view=rev
Log:
CMS commit to chemistry by fmui
Modified:
chemistry/site/trunk/content/objective-c/objectivecmis.mdtext
chemistry/site/trunk/content/resources/site.css
Modified: chemistry/site/trunk/content/objective-c/objectivecmis.mdtext
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/objective-c/objectivecmis.mdtext?rev=1426004&r1=1426003&r2=1426004&view=diff
==============================================================================
--- chemistry/site/trunk/content/objective-c/objectivecmis.mdtext (original)
+++ chemistry/site/trunk/content/objective-c/objectivecmis.mdtext Wed Dec 26
20:11:38 2012
@@ -24,7 +24,6 @@ Notice: Licensed to the Apache Softwa
Apache Chemistry ObjectiveCMIS is a CMIS client library for Objective-C
language.
The library is primarily targeted at iOS application development and aims to
provide an interoperability API to CMIS based repositories.
-
However, as the base library is built on the Foundation.framework it can be
used for developing Mac OSX applications as well.
@@ -35,7 +34,6 @@ TBD
### Get ObjectiveCMIS code
* binary distribution
-
* source code distribution
@@ -44,13 +42,10 @@ TBD
The ObjectiveCMIS library is distributed as a ZIP file containing
* the library: _libObjectiveCMIS.a_
-
* public header files: contained in the _ObjectiveCMIS_ folder
-
* documentation: provided as a docset (generated using appledocs).
-
### Minimum Requirements
The library is making use of Objective-C automated reference counting (ARC).
Therefore the library is compatible with iOS SDK v5.x or later.
@@ -65,7 +60,6 @@ The easiest way to include the Objective
Then go to the 'File' menu in XCode and select the 'Add Files toâ¦' option.
Add the headers and library files contained in the ZIP distribution to your
project:
* Make sure that the library is included in the list of frameworks/libraries.
Select the build target and go to Build Phases. libObjectiveCMIS.a should be
listed in the Link Binary with Libraries option.
-
* The CMIS headers should be included in the 'Copy Headers' section of Build
Phases for your build target.
@@ -75,7 +69,7 @@ Then go to the 'File' menu in XCode and
### Block based structure
-ObjectiveCMIS calls to CMIS repositories are asynchronous. Callback handling
is facilitated utilising _block_ structures available in Objective-C. Further
information on the use of blocks in Objective-C can be found directly at
[http://developer.apple.com/library/ios/#documentation/cocoa/Conceptual/Blocks/Articles/00_Introduction.html]
+ObjectiveCMIS calls to CMIS repositories are asynchronous. Callback handling
is facilitated utilising _block_ structures available in Objective-C. Further
information on the use of blocks in Objective-C can be found directly at
[http://developer.apple.com/library/ios/#documentation/cocoa/Conceptual/Blocks/Articles/00_Introduction.html](http://developer.apple.com/library/ios/#documentation/cocoa/Conceptual/Blocks/Articles/00_Introduction.html).
### At the Beginning - There is a CMIS Session
@@ -86,37 +80,22 @@ The code snippet below demonstrates how
CMISSessionParameters *params = [[CMISSessionParameters alloc]
initWithBindingType:CMISBindingTypeAtomPub];
-
params.atomPubUrl = [NSURL URLWithString:cmisAtomPubLocation];
-
params.username = @"<yourusername>";
-
params.password = @"<yourpassword>";
-
params.repositoryId = self.repositoryId;
-
-
//Connect to session
[CMISSession connectWithSessionParameters:params
completionBlock:^(CMISSession *session, NSError *error){
-
if( nil == session )
-
{
-
- //do your error handling here
-
+ // do your error handling here
}
-
else
-
{
-
self.session = session;
-
}
-
}];
@@ -126,49 +105,28 @@ In the code above you may have noticed t
__block CMISSessionParameters *params = [[CMISSessionParameters alloc]
initWithBindingType:CMISBindingTypeAtomPub];
-
params.atomPubUrl = [NSURL URLWithString:cmisAtomPubLocation];
-
params.username = @"<yourusername>";
-
params.password = @"<yourpassword>";
[CMISSession arrayOfRepositories:params completionBlock:^(NSArray *repos,
NSError *error){
-
if(nil == repos)
-
{
-
// error handling
-
}
-
else
-
{
-
CMISRepositoryInfo repoInfo = [repos objectAtIndex:0];
-
params.repositoryId = repoInfo.identifier;
-
[CMISSession connectWithSessionParameters:params
completionBlock:^(CMISSession *session, NSError *sessionError){
-
if(nil == session)
-
{
-
+ // do your error handling here
}
-
else
-
{
-
self.session = session;
-
}
-
}];
-
}
-
}];
Modified: chemistry/site/trunk/content/resources/site.css
URL:
http://svn.apache.org/viewvc/chemistry/site/trunk/content/resources/site.css?rev=1426004&r1=1426003&r2=1426004&view=diff
==============================================================================
--- chemistry/site/trunk/content/resources/site.css (original)
+++ chemistry/site/trunk/content/resources/site.css Wed Dec 26 20:11:38 2012
@@ -1624,7 +1624,8 @@ div.code.panel .codehilite {
table.projectbox-table {
text-align: center;
table-layout: fixed;
- width: 620px;
+ width: 630px;
+ border-style: none;
}
td.projectbox-table {
@@ -1638,7 +1639,7 @@ td.projectbox-table:hover {
.projectbox-table-big {
font-size: 150%;
- fonz-weigth: bold;
+ font-weigth: bold;
}