# generated by 'rake generate'
require 'cocoa/bindings/NSStream'
module Cocoa
  class NSOutputStream < Cocoa::NSStream
    attach_method :hasSpaceAvailable, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :initToBuffer, :args=>2, :names=>[:capacity], :types=>["*", "Q"], :retval=>"@"
    attach_method :initToFileAtPath, :args=>2, :names=>[:append], :types=>["@", "B"], :retval=>"@"
    attach_method :initToMemory, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :initWithURL, :args=>2, :names=>[:append], :types=>["@", "B"], :retval=>"@"
    attach_singular_method :outputStreamToBuffer, :args=>2, :names=>[:capacity], :types=>["*", "Q"], :retval=>"@"
    attach_singular_method :outputStreamToFileAtPath, :args=>2, :names=>[:append], :types=>["@", "B"], :retval=>"@"
    attach_singular_method :outputStreamToMemory, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_singular_method :outputStreamWithURL, :args=>2, :names=>[:append], :types=>["@", "B"], :retval=>"@"
    attach_method :write, :args=>2, :names=>[:maxLength], :types=>["*", "Q"], :retval=>"q"
  end
end
