Changeset 14246 for lang/objective-c
- Timestamp:
- 06/19/08 12:15:59 (5 months ago)
- Location:
- lang/objective-c/Atompub
- Files:
-
- 2 modified
-
EXAMPLE.txt (modified) (4 diffs)
-
TASK.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/objective-c/Atompub/EXAMPLE.txt
r13814 r14246 24 24 ** simple example 25 25 26 *** build entry 27 26 28 AtomEntry *entry = [ AtomEntry entry ]; 27 29 // setter … … 41 43 AtomPerson *person = [ entry author ]; 42 44 NSString *authorName = [ person name ]; 45 // convert to string NSString *entryXMLString = [ entry stringValue ]; 43 46 44 // convert to string 45 NSString *entryXMLString = [ entry stringValue ]; 47 *** parse feed 48 49 AtomFeed *feed = [ AtomFeed feedWithXMLString:@"<feed xmlns=\"\">...</feed>" ]; 50 NSString *title = [ feed title ]; 46 51 47 52 /******************************************* … … 117 122 118 123 | REQUEST_TYPE | startUpdatingEntry:(AtomEntry *)entry withURL:(NSURL *)url 119 | CALLBACK | clientDidUpdateEntry :(AtomClient *)client124 | CALLBACK | clientDidUpdateEntry 120 125 121 126 | REQUEST_TYPE | startUpdatingMedia:(NSData *)resource withURL:(NSURL *)url 122 | CALLBACK | clientDidUpdateMedia :(AtomClient *)client127 | CALLBACK | clientDidUpdateMedia 123 128 124 129 | REQUEST_TYPE | startDeletingEntryWithURL:(NSURL *)url 125 | CALLBACK | clientDidDeleteEntry :(AtomClient *)client130 | CALLBACK | clientDidDeleteEntry 126 131 127 132 | REQUEST_TYPE | startDeletingMediaWithURL:(NSURL *)url 128 | CALLBACK | clientDidDeleteMedia :(AtomClient *)client133 | CALLBACK | clientDidDeleteMedia 129 134 130 135 … … 132 137 the callback (client:(AtompubClient *)client didFailWithError:(NSError *)error ) will be invoked. 133 138 139 ** Accessors 140 141 You 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 10 10 - change AtompubClient delegation object type: id -> NSObject <AtompubClientDelegate> * 11 11 - add KeyChain controller to each AtompubCredential class for both Mac OSX and iPhone OS 12 12 - make this package one single framework.
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)