LJEntrySummary



Abstract

Represents an entry summary.

Discussion

Rather than downloading an entire entry, the LiveJournal server permits the downloading of entry summaries, which consist of the entry's subject, if it has one, or the first few characters of the entry's text. The number of characters is determined by the [LJJournal setEntrySummaryLength:] method.

Methods

description

Abstract: Obtain a string containing the entry's date, time, and summary text.
- (NSString *)description; 

Returns a string of the format: "YYYY-MM-DD HH:MM:SS: Summary text...". Calls descriptionWithFormat: with the format string "%Y-%m-%d %H:%M:%S: %%@".


descriptionWithFormat:

Abstract: Obtain a string containing the entry's date, time, and summary text.
- (NSString *)descriptionWithFormat:(NSString *)format; 

Returns a string based on the format string. The format is first passed to [NSCalendarDate descriptionWithCalendarFormat:] to fill in date fields, then to [NSString stringWithFormat:] with the summary text as the argument. Therefore, you can use any of the escape codes from NSCalendarDate to include the date fields, but you must use %%@ (two percent signs) to include the summary text.


getEntry

Abstract: Obtain the entry the receiver summarizes.
- (LJEntry *)getEntry; 


summary

Abstract: Obtain the entry's summary text.
- (NSString *)summary; 


(Last Updated 2/17/2003)