Mac OS X Reference Library Apple Developer Connection spyglass button

DOMElement Additions Reference

Inherits from
DOMNode : DOMObject : WebScriptObject : NSObject
Conforms to
Framework
/System/Library/Frameworks/WebKit.framework
Availability
Available in Mac OS X v10.5 and later.
Declared in
DOMExtensions.h
Companion guides

Overview

Additions to the DOMElement class to retrieve the image of DOMHTMLImageElement objects.

Tasks

Getting Properties

Instance Methods

image

Returns an image associated with the receiver.

- (NSImage *)image

Discussion

Returns an NSImage for the receiver if it is a DOMHTMLImageElement object—a DOMHTMLObjectElement object with an image loaded or a DOMHTMLInputElement object of type image. Returns nil if there is an error loading the image or the element does not contain an image.

Availability
  • Available in Mac OS X v10.5 and later.
Declared In
DOMExtensions.h


Last updated: 2009-08-11

Did this document help you? Yes It's good, but... Not helpful...