- Availability
- Introduced in Mac OS X v10.5.
Last Updated: 2009-08-12
|
Mac Dev Center
Mac OS X Reference Library Core Services Layer Publication Subscription Publication Subscription Framework Reference
|
PSEntry |
| Framework: | /System/Library/Frameworks/PubSub.framework |
| Inherits from: | |
| Declared In: | |
| See Also: |
A PSEntry is an entry in a feed object. Entry objects are acquired from the
associated feed object.
Most of the attributes for an entry are defined by the RSS 2.0 and Atom 1.0 specs.
Any attributes defined by those specs (or nonstandard extensions) that are not
natively supported by PSEntry can be retrieved from the entry objects' XMLRepresentation property.
Some PSEntry attributes are specific to the local copy of the entry,
such as isRead and receivedDate.
Since the values of the RSS and Atom attributes are derived from data received
from the server, they may be missing or incorrect. If you have the opportunity, use
attributes generated by the Publication Subscription framework, as it is more reliable.
For example, using updatedDate to find entries that have been modified
since a certain time would be unreliable. Use receivedDate instead. It
is not recommended that you subclass PSEntry.
Returns an array of the extension XML elements that are outside of the RSS or Atom standards.
extensionXMLElementsUsingNamespace: |
Returns an array of the extension XML elements that are outside of the RSS or Atom standards.
nameSpaceThe extension XML elements you want to receive. Pass nil to get all extension XML elements, regardless of their namespace.
An array containing the extension XML elements requested. Make sure to pass a namespace and not a namespace prefix
for the nameSpace parameter. For example, to retrieve the iTunes Podcast elements, use
extensionXMLElementsUsingNamespace:@"http://www.itunes.com/dtds/podcast-1.0.dtd", not
extensionXMLElementsUsingNamespace:@"itunes".
This method attempts to communicate with the PubSubAgent process and causes the agent
to launch if it is not already running. If PubSubAgent cannot be contacted, an exception
will be thrown with the name PSException. To avoid problems, you should
always be prepared to catch an exception thrown by this method.
The URL to an alternate version of the entry resource. (read-only)
An array of author objects representing the entry's authors. (read-only)
The authors of the entry as a string. (read-only)
The base URL for resolving relative links.(read-only)
The content of the entry. (read-only)
An array of author objects that contains the entry's contributors. (read-only)
A Boolean value indicating whether an entry still appears in its feed. (read-only)
The date that the entry was created. (read-only)
A guaranteed non-nil date for the entry, suitable for displaying or sorting. (read-only)
The date that the entry was published. (read-only)
The date that the entry was last modified. (read-only)
An array of enclosure objects of the enclosures of an entry. (read-only)
The feed the receiver belongs to. (read-only)
A Boolean value indicating whether or not the entry is flagged.
A string that uniquely identifies an entry. (read-only)
The date when the entry was created in the local Publication Subscription database. (read-only)
The date when the entry was updated in the local Publication Subscription database. (read-only)
A Boolean value indicating whether or not the entry is read.
The entry's copyright information. (read-only)
A string that contains the entry's summary. (read-only)
The entry's title. (read-only)
A string to display as the entry's title. (read-only)
The raw XML entry. (read-only)
alternateURL |
The URL to an alternate version of the entry resource. (read-only)
@property (
readonly,
retain) NSURL * alternateURL;
Traditionally, the alternate URL corresponds to the HTML version of an entry. The URL is parsed from the element in Atom and the element in RSS. This URL is often called a permalink.
authors |
An array of author objects representing the entry's authors. (read-only)
@property (
readonly,
retain) NSArray * authors;
The authors correspond to the The authors of the entry as a string. (read-only)
If there are multiple authors, they are comma-delimited.
The base URL for resolving relative links.(read-only)
The returned URL corresponds to the xml:base attribute on an Atom The content of the entry. (read-only)
Corresponds to the An array of author objects that contains the entry's contributors. (read-only)
Corresponds to the A Boolean value indicating whether an entry still appears in its feed. (read-only)
Typically, a feed contains 10-15 entries at a time, so as a new entry is added, the oldest entry "falls off." If the property returns NO, the entry has 'fallen off the bottom' of the feed but is still in the PubSub Database.
The date that the entry was created. (read-only)
The date corresponds to the A guaranteed non- This returns the entry's The date that the entry was published. (read-only)
The return value corresponds to the The date that the entry was last modified. (read-only)
The return value corresponds to the An array of enclosure objects of the enclosures of an entry. (read-only)
The enclosures correspond to the element in Atom and the The feed the receiver belongs to. (read-only)
A Boolean value indicating whether or not the entry is flagged.
Flagged status of an article is shared among all applications using the Publication Subscription framework. By default, this method returns A string that uniquely identifies an entry. (read-only)
This identifier can be used as a key to map between The date when the entry was created in the local Publication Subscription database. (read-only)
The date when the entry was updated in the local Publication Subscription database. (read-only)
A Boolean value indicating whether or not the entry is read.
Read status of an article is shared among all applications using the Publication Subscription framework. By default, this method returns The entry's copyright information. (read-only)
Corresponds to the A string that contains the entry's summary. (read-only)
Corresponds to the The entry's title. (read-only)
Corresponds to the A string to display as the entry's title. (read-only)
This property returns up to the first 100 characters
of the entry's summary, or content if there is no summary.
The raw XML entry. (read-only)
The raw XML is parsed into a DOM tree, and the
authorsForDisplay
@property (
readonly) NSString* authorsForDisplay;
Discussion
baseURL
@property (
readonly,
retain) NSURL * baseURL;
Discussion
XMLRepresentation.
content
@property (
readonly,
retain) PSContent * content;
Discussion
contributors
@property (
readonly,
retain) NSArray * contributors;
Discussion
current
@property (
readonly,
getter=isCurrent) BOOL current;
Discussion
dateCreated
@property (
readonly,
retain) NSDate * dateCreated;
Discussion
datePublished if the entry was not immediately published after being written. To get the local date and time when the entry was received by the user's machine, use the locateDateCreated method instead.
dateForDisplay
nil date for the entry, suitable for displaying or sorting. (read-only)
@property (
readonly,
retain) NSDate * dateForDisplay;
Discussion
datePublished if available, otherwise the dateUpdated; if neither appears in the feed, it falls back on the localDateCreated. Use this method if you need a guaranteed non-nil date, as in sorting or displaying in a table column.
datePublished
@property (
readonly,
retain) NSDate * datePublished;
Discussion
dateUpdated
@property (
readonly,
retain) NSDate * dateUpdated;
Discussion
localDateUpdated method.
enclosures
@property (
readonly,
retain) NSArray * enclosures;
Discussion
feed
@property (
readonly) PSFeed * feed;
flagged
@property (
getter=isFlagged,
setter=setFlagged:) BOOL flagged;
Discussion
NO.
identifier
@property (
readonly,
retain) NSString * identifier;
Discussion
PSEntry objects and your application's own data model objects.
This identifier is generated internally by the Publication Subscription framework by combining the identifier of the feed with the 'most unique' attribute of the entry. You should not make any assumptions about its format or size, as they may change.
(Although Atom defines a mandatory XMLRepresentation output if they need the Atom
localDateCreated
@property (
readonly,
retain) NSDate * localDateCreated;
localDateUpdated
@property (
readonly,
retain) NSDate * localDateUpdated;
read
@property (
getter=isRead,
setter=setRead:) BOOL read;
Discussion
NO.
rights
@property (
readonly,
retain) NSString * rights;
Discussion
summary
@property (
readonly,
retain) PSContent * summary;
Discussion
title
Discussion
titleForDisplay
@property (
readonly) NSString * titleForDisplay;
Discussion
XMLRepresentation
@property (
readonly) NSXMLElement * XMLRepresentation;
Discussion