Instance Property

prefix

Returns the prefix of the receiver’s name.

Declaration

@property(readonly, copy) NSString *prefix;

Return Value

A string containing the receiver’s prefix. This method returns an empty string if the receiver’s name is not qualified by a namespace.

Discussion

The prefix is the part of a namespace-qualified name that precedes the colon. For example, “acme” is the prefix in the qualified name “acme:chapter”.

See Also

Managing Namespaces

localName

Returns the local name of the receiver.

+ localNameForName:

Returns the local name from the specified qualified name.

+ prefixForName:

Returns the prefix from the specified qualified name.