Instance Method

URLForResource:

Returns a URL for the given resource.

Declaration

- (NSURL *)URLForResource:(NSString *)resourceName;

Parameters

resourceName

A string that contains the name of the resource.

Return Value

The URL associated with the resource name. The app must return nil if the event is not handled.

Discussion

The resourceName parameter comes from a resource URL specified in certain elements. For example, badge src="resource://developer-resource"> contains the resource name, developer-resource.

See Also

Retrieving Resource Information

- imageForResource:

Returns the image for the given resource