   // - (NSString *)stringByAppendingPathComponent:(NSString *)aString
 
   /// Returns a new string made by appending to the `String` a given string.
-  @available(*, unavailable, message="Use stringByAppendingPathComponent on NSString instead.")
+  @available(*, unavailable, message="Use URLByAppendingPathComponent on NSURL instead.")
   public func stringByAppendingPathComponent(aString: String) -> String {
     return _ns.stringByAppendingPathComponent(aString)
   }


  /// Returns a new string made by appending to the `String` an
  /// extension separator followed by a given extension.
  @available(*, unavailable, message="Use stringByAppendingPathExtension on NSString instead.")
  public func stringByAppendingPathExtension(ext: String) -> String? {
    // FIXME: This method can return nil in practice, for example when self is
    // an empty string.  OTOH, this is not documented, documentatios says that

  // @property NSString lastPathComponent;

  /// Returns the last path component of the `String`.
  @available(*, unavailable, message="Use lastPathComponent on NSURL instead.")
  public var lastPathComponent: String {
    return _ns.lastPathComponent
  }
