Changeset 14246 for lang/objective-c

Show
Ignore:
Timestamp:
06/19/08 12:15:59 (5 months ago)
Author:
lyokato
Message:

lang/objective-c/Atompub: updated documents

Location:
lang/objective-c/Atompub
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/objective-c/Atompub/EXAMPLE.txt

    r13814 r14246  
    2424** simple example 
    2525 
     26*** build entry 
     27 
    2628AtomEntry *entry = [ AtomEntry entry ]; 
    2729// setter 
     
    4143AtomPerson *person = [ entry author ]; 
    4244NSString *authorName = [ person name ]; 
     45// convert to string NSString *entryXMLString = [ entry stringValue ];  
    4346 
    44 // convert to string 
    45 NSString *entryXMLString = [ entry stringValue ]; 
     47*** parse feed 
     48 
     49AtomFeed *feed = [ AtomFeed feedWithXMLString:@"<feed xmlns=\"\">...</feed>" ]; 
     50NSString *title = [ feed title ]; 
    4651 
    4752/******************************************* 
     
    117122 
    118123| REQUEST_TYPE | startUpdatingEntry:(AtomEntry *)entry withURL:(NSURL *)url 
    119 | CALLBACK     | clientDidUpdateEntry:(AtomClient *)client 
     124| CALLBACK     | clientDidUpdateEntry 
    120125 
    121126| REQUEST_TYPE | startUpdatingMedia:(NSData *)resource withURL:(NSURL *)url 
    122 | CALLBACK     | clientDidUpdateMedia:(AtomClient *)client 
     127| CALLBACK     | clientDidUpdateMedia 
    123128 
    124129| REQUEST_TYPE | startDeletingEntryWithURL:(NSURL *)url 
    125 | CALLBACK     | clientDidDeleteEntry:(AtomClient *)client 
     130| CALLBACK     | clientDidDeleteEntry 
    126131 
    127132| REQUEST_TYPE | startDeletingMediaWithURL:(NSURL *)url 
    128 | CALLBACK     | clientDidDeleteMedia:(AtomClient *)client 
     133| CALLBACK     | clientDidDeleteMedia 
    129134 
    130135 
     
    132137the callback (client:(AtompubClient *)client  didFailWithError:(NSError *)error ) will be invoked. 
    133138 
     139** Accessors 
     140 
     141You can access last request/response data through each accessors. 
     142 
     143- lastRequestURL 
     144- lastResponse 
     145- responseData 
     146 
     147- (void)client:(AtompubClient *)client didFailWithError:(NSError *)error { 
     148  NSURL *url = [ client lastRequestURL ]; 
     149  NSHTTPURLResponse *res = [ client lastResponse ]; 
     150  NSData *resData = [ client responseData ]; 
     151} 
     152 
  • lang/objective-c/Atompub/TASK.txt

    r14245 r14246  
    1010- change AtompubClient delegation object type: id -> NSObject <AtompubClientDelegate> * 
    1111- add KeyChain controller to each AtompubCredential class for both Mac OSX and iPhone OS 
    12  
     12- make this package one single framework.