[MacRuby-devel] Other private frameworks

2011-11-13 Thread Rob Ista
Hi, does anyone have experience embedding other frameworks or dylibs in an employed app? The "build for archive" runs fine but "archive" itself crashes complaint that "the application bundle was not found" but i assume that the other frameworks were not found or embedded. The app runs fine witho

[MacRuby-devel] anyone using WebKit to generate dialogs?

2011-11-13 Thread Rich Morin
Google SketchUp's WebDialog class allows Ruby plugins to generate, launch, and support interactive dialogs, using HTML and JavaScript. Basically, the plugin: * sets up some callback code * generates some HTML (etc) code * points SketchUp at the HTML SketchUp then puts up a window whose layout

[MacRuby-devel] Create new Core Data Instances

2011-11-13 Thread Timo Springmann
Hi List, I've successfully created a core data entity with some attributes. I'm displaying object in a NSTableView and I was able to add new instances by calling the entities array controller add: action. The last hour I tried to figure out how to add/create a core data entity in ruby code wit

Re: [MacRuby-devel] Create new Core Data Instances

2011-11-13 Thread Timo Springmann
A small step ahead... ... the following code seems to create an instance of MyEntity and sets the attribute 'attribute1' to the value 'Test'. entityDesc = NSEntityDescription.new entityDesc.setName("MyEntity") att = NSAttributeDescription.new att.setAttributeType(NSStringAttributeType) att.setN

Re: [MacRuby-devel] Some general MacRuby/Cocoa questions

2011-11-13 Thread Henry Maddocks
On 12/11/2011, at 9:21 PM, Timo Springmann wrote: > > I think one controller per window is fine. What I don't like about the code > is the windowNibName method. Do I really have to do it this way? Or is there > a better way to 'connect' my in IB designed window to my ruby contoller class? I'm

Re: [MacRuby-devel] anyone using WebKit to generate dialogs?

2011-11-13 Thread Michael Pitra
I have a similar approach in one of my applications: a WebKit view embedded in a custom window. All code is MacRuby except the custom window, I only managed to do this in pure Cocoa. The content of the WebKit view is then rendered by appending HTML content to a string. Michael - Ursprüng