Babis Papadopoulos
Babis Papadopoulos

Reputation: 71

xcode how to get NSString from NSURL

How can i get nsstring from NSURL from this panel to use it with another action too?

arxeio = myPanel.URL.lastPathComponent;

Upvotes: 0

Views: 3775

Answers (1)

Philipp Schlösser
Philipp Schlösser

Reputation: 5219

myPanel.URL.lastPathComponent is an NSString.

If you want the whole URL, use [myPanel.URL absoluteString].

Upvotes: 3

Related Questions