diff options
Diffstat (limited to 'Foundation/GTMHTTPFetcher.h')
-rw-r--r-- | Foundation/GTMHTTPFetcher.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Foundation/GTMHTTPFetcher.h b/Foundation/GTMHTTPFetcher.h index bd9c70e..fadd9b0 100644 --- a/Foundation/GTMHTTPFetcher.h +++ b/Foundation/GTMHTTPFetcher.h @@ -248,6 +248,7 @@ typedef NSUInteger GTMHTTPFetcherCookieStorageMethod; SEL failedSEL_; // should be implemented by delegate SEL receivedDataSEL_; // optional, set with setReceivedDataSelector id userData_; // retained, if set by caller + NSMutableDictionary *properties_; // more data retained for caller NSArray *runLoopModes_; // optional, for 10.5 and later NSMutableDictionary *fetchHistory_; // if supplied by the caller, used for Last-Modified-Since checks and cookies BOOL shouldCacheDatedData_; // if true, remembers and returns data marked with a last-modified date @@ -429,6 +430,13 @@ typedef NSUInteger GTMHTTPFetcherCookieStorageMethod; - (id)userData; - (void)setUserData:(id)theObj; +// properties are retained for the convenience of the caller +- (void)setProperties:(NSDictionary *)dict; +- (NSDictionary *)properties; + +- (void)setProperty:(id)obj forKey:(NSString *)key; // pass nil obj to remove property +- (id)propertyForKey:(NSString *)key; + // using the fetcher while a modal dialog is displayed requires setting the // run-loop modes to include NSModalPanelRunLoopMode // |