Prepares the specified image representation to receive drawing commands. (Deprecated in Mac OS X v10.6. Use the code fragment shown in the special considerations below.)
Original signature is '- (void)lockFocusOnRepresentation:(NSImageRep *)imageRepresentation'
Available in Mac OS X v10.0 and later.

C# | Visual Basic | Visual C++ |
[ObsoleteAttribute("Deprecated in Mac OS X v10.6. Use the code fragment shown in the special considerations below.")] public virtual void LockFocusOnRepresentation( NSImageRep imageRepresentation )
<ObsoleteAttribute("Deprecated in Mac OS X v10.6. Use the code fragment shown in the special considerations below.")> _ Public Overridable Sub LockFocusOnRepresentation ( _ imageRepresentation As NSImageRep _ )
[ObsoleteAttribute(L"Deprecated in Mac OS X v10.6. Use the code fragment shown in the special considerations below.")] public: virtual void LockFocusOnRepresentation( NSImageRep^ imageRepresentation )

- imageRepresentation (NSImageRep)
- An image representation belonging to the receiver, or nil if you want the receiver to choose which image representation to use.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)