Skip to content

Instantly share code, notes, and snippets.

@dje
Created January 24, 2010 23:18
Show Gist options
  • Save dje/285509 to your computer and use it in GitHub Desktop.
Save dje/285509 to your computer and use it in GitHub Desktop.
irb(main):001:0> framework 'Cocoa'
=> true
irb(main):002:0> NSOpenPanel.openPanel
Sun Jan 24 15:17:49 imac.local macruby[13149] <Error>: kCGErrorInvalidConnection: CGSGetCurrentCursorLocation: Invalid connection
Sun Jan 24 15:17:49 imac.local macruby[13149] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
Sun Jan 24 15:17:49 imac.local macruby[13149] <Error>: kCGErrorInvalidConnection: CGSGetCurrentCursorLocation: Invalid connection
=> #<NSOpenPanel:0x200274540>
irb(main):003:0> NSOpenPanel.openPanel
=> #<NSOpenPanel:0x2002fa220>
irb(main):004:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment