Mac Developer Library

Developer

PSEnclosure Class Reference

Options
Deployment Target:

On This Page

PSEnclosure

More...

Inheritance


Conforms To


Import Statement


Not Applicable @import PubSub;

Availability


Available in OS X v10.5 and later.
Deprecated in OS X v10.9.
  • URL URL (OS X v10.9) Property

    A URL to the enclosure's location. (read-only)

    Declaration

    Objective-C

    @property(readonly, retain) NSURL *URL

    Discussion

    The return value corresponds to the 'href' attribute of the <link rel="enclosure"> element in Atom and to the 'url' attribute of the <enclosure> element in RSS.

    Import Statement

    Availability

    Available in OS X v10.5 and later.

    Deprecated in OS X v10.9.

  • MIMEType MIMEType (OS X v10.9) Property

    The MIME type of the enclosure. (read-only)

    Declaration

    Objective-C

    @property(readonly, retain) NSString *MIMEType

    Discussion

    The MIME type corresponds to the 'type' attribute of the <link rel="enclosure"> element in Atom and to the 'type' attribute of the <enclosure> element in RSS.

    Import Statement

    Availability

    Available in OS X v10.5 and later.

    Deprecated in OS X v10.9.

  • length length (OS X v10.9) Property

    The length of the file in the enclosure. (read-only)

    Declaration

    Objective-C

    @property(readonly) long long length

    Discussion

    The return value is initially parsed from the length attribute of a <link rel="enclosure"> element in Atom and the length attribute of <enclosure> in RSS. If this attribute does not exist in the feed, the return value is 0. The value may change after downloading begins and the true length is received from the server.

    Import Statement

    Availability

    Available in OS X v10.5 and later.

    Deprecated in OS X v10.9.

  • entry entry (OS X v10.9) Property

    The entry with which the enclosure is linked. (read-only)

    Declaration

    Objective-C

    @property(readonly) PSEntry *entry

    Discussion

    The inverse of the enclosures property of the PSEntry class. An enclosure follows a one-to-one relationship and can only be linked to a single entry.

    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.

    Import Statement

    Availability

    Available in OS X v10.5 and later.

    Deprecated in OS X v10.9.

  • downloadedPath downloadedPath (OS X v10.9) Property

    The path to the downloaded enclosure. (read-only)

    Declaration

    Objective-C

    @property(readonly) NSString *downloadedPath

    Discussion

    The method returns nil unless the download has completed.

    Import Statement

    Availability

    Available in OS X v10.5 and later.

    Deprecated in OS X v10.9.