Re: [MacRuby-devel] Mavericks and Macruby

2013-11-03 Thread Steve Clarke
In your Xcode build settings you need to have a User Defined setting: GCC_ENABLE_OBJC_GC = supported If that’s missing it could be the answer. But given my experience and comments from others I really wonder whether it’s worth the effort, as long as you can still fall back to a working version

Re: [MacRuby-devel] Mavericks and Macruby

2013-11-03 Thread Steve Clarke
The garbage collector is deprecated but it's still there in Mavericks. Steve On 3 Nov 2013, at 11:20, Stephen Horne wrote: > On 3 Nov 2013, at 0:32, Joshua Ballanco wrote: > >> I haven't had time to update to Mavericks yet, so I couldn't tell you for >> sure, but the "summary_indent=" error l

Re: [MacRuby-devel] Mavericks and Macruby

2013-11-02 Thread Steve Clarke
I've had that and other problems too. The standard library 'set' no longer works, though it's fairly easy to substitute NSMutableSet. I can't run one of my main apps on Mavericks. Is this the beginning of the end or even the end of the end for Macruby? On 2 Nov 2013, at 19:02, rob ista wrote:

Re: [MacRuby-devel] Xcode5

2013-10-23 Thread Steve Clarke
If you update Xcode it’s usually a good idea to reinstall macruby. That may fix the problem. Steve On 23 Oct 2013, at 18:42, Andres Santos wrote: > Hello guys, I just installed my xcode and it turns out it is the v5 and the > tutorial posted in macruby (which is awsome btw) seems to be not w

Re: [MacRuby-devel] Manage array of objects within object's class?

2013-05-18 Thread Steve Clarke
Hi Jeff, I'm no guru but I wouldn't put the methods for dealing with the collection into the model class. You could indeed have a class array (by using the @@prefix for your variable name) but you could not easily access it in a KVC compliant manner and therefore could not directly bind it to

Re: [MacRuby-devel] Using Virtus or SmartProperty as outlets?

2012-11-22 Thread Steve Clarke
I think that discussions about validation of user entered data need to consider how you provide feedback to the user on what happened. Have you thought about how validation errors are integrated with Cocoa frameworks? I don't know anything about Virtus or SmartProperties but I would be surpr

Re: [MacRuby-devel] Basic delayed email method

2012-10-23 Thread Steve Clarke
rafted email creating > this outgoing message actually makes a NEW draft in my Draft folder. It looks > like I would have to go and manually delete the draft that I am attempting to > copy in the method above. I believe there must be an easier way to do this. > This comes back to wh

Re: [MacRuby-devel] Basic delayed email method

2012-10-23 Thread Steve Clarke
d you figure all of this out. Are there some documents that > explain when it is appropriate to use things like "classForScriptingClass" > etc...? > > On Tue, Oct 23, 2012 at 9:49 AM, Steve Clarke wrote: > Hi Cliff, > > I've got something simple to work in Macr

Re: [MacRuby-devel] Basic delayed email method

2012-10-23 Thread Steve Clarke
extStorage] string], @"content", > nil]]; > /* add the object to the mail app */ > [[mail outgoingMessages] addObject: emailMessage]; > /* set the sender, show the message */ > emailMessage.sender = [self.fromField stringValue]; &g

Re: [MacRuby-devel] Basic delayed email method

2012-10-23 Thread Steve Clarke
> /* add the object to the mail app */ > [[mail outgoingMessages] addObject: emailMessage]; > /* set the sender, show the message */ > emailMessage.sender = [self.fromField stringValue]; > emailMessage.visible = YES; > > > Though it is not clear how this would translates over into macruby

Re: [MacRuby-devel] Basic delayed email method

2012-10-23 Thread Steve Clarke
mac/#samplecode/SBSendEmail/Introduction/Intro.html > > The sample they have looks a bit different from what you have. I haven't > tried it out myself, but their documentation seems quite thorough and was > updated only a year ago. > > > > > > On 2012-10-23,

Re: [MacRuby-devel] Basic delayed email method

2012-10-23 Thread Steve Clarke
Just had a closer look at what I did with sending mail and I think my earlier reply was probably wrong, or at least not helpful. I think the difficulty arises because there are some things that ScriptingBridge is unable to do. I could not find a way to create an outgoing message with Scriptin

Re: [MacRuby-devel] Basic delayed email method

2012-10-23 Thread Steve Clarke
Hi Cliff, I struggled with this too. I'm afraid I can't remember all the details, but I think that one key point is that you need to have an "outgoing message" to respond to send. You may need to add your draft message to the mail apps "outgoing messages" before it can be sent. Try something

Re: [MacRuby-devel] Quartz 2D Graphics problem

2012-10-22 Thread Steve Clarke
Hi, While you can't mix and match within one file, I think you can have a Class that contains both Objective C methods and Macruby methods each defined in their own file. Objective C classes are open and the Macruby methods will be added to them. Steve On 21 Oct 2012, at 20:28, Colin Thom

Re: [MacRuby-devel] MacRuby, ApplesScript and Skype?

2012-05-30 Thread Steve Clarke
Hi Mike, I had a quick look at the skype scripting dictionary and it does appear that "sendCommand:scriptName:" is all that's on offer. I assume that ScriptingBridge has renamed the "send" comand like this to fit in with the way that mehods need to be called from Objective C. I don't know the

Re: [MacRuby-devel] Building MacRuby

2012-03-20 Thread Steve Clarke
Hi Erik, XCode 4.3 doesn't find rb_nibtool unless you have a symlink to it. Maybe you created a symlink with your 0.10 install and didn't redirect it to the 0.12 nibtool. I'm using 0.12 with the XCode 4.3.1 and it works fine. Steve On 19 Mar 2012, at 18:32, Erik Lundqvist wrote: > Thanks >

Re: [MacRuby-devel] NSUserDefaults and registerDefaults

2012-03-16 Thread Steve Clarke
Hi Erik, The following code works for me, though as far as I can see it's effectively the same as yours. The only difference might be that I run this code in rb_main.rb rather than after the app has finished launching. DBNAME_KEY='database_name' DEFAULTS = NSUserDefaults.standardUserDefaults

Re: [MacRuby-devel] Xcode: rb_nibtool no longer picking up actions

2012-02-24 Thread Steve Clarke
be named "sender" not > id_sender ? > > -Pkj > > On Feb 24, 2012, at 2:33 PM, Steve Clarke wrote: > >> Sorry- correction to previous post: When the Obj-C header is deleted IB does >> still show the action close_me. However it is flagged as an error saying

Re: [MacRuby-devel] Xcode: rb_nibtool no longer picking up actions

2012-02-24 Thread Steve Clarke
Sorry- correction to previous post: When the Obj-C header is deleted IB does still show the action close_me. However it is flagged as an error saying that close_me is not defined on AppDelegate. Steve On 24 Feb 2012, at 19:22, Steve Clarke wrote: > Here's the code. It couldn&

Re: [MacRuby-devel] Xcode: rb_nibtool no longer picking up actions

2012-02-24 Thread Steve Clarke
e sender. When I deleted the link from the sender the action was no longer shown. Hope this makes some sense. Steve On 24 Feb 2012, at 18:58, Matt Aimonetti wrote: > Can you show your code, was it working in 4.2? > > - Matt > > On Fri, Feb 24, 2012 at 10:57 AM, Steve Clarke

Re: [MacRuby-devel] Xcode: rb_nibtool no longer picking up actions

2012-02-24 Thread Steve Clarke
gt; } > > that code, while ruby 1.9.2/3 kosher, causes the nibtool to bomb. However, > > Dispatch::Job.new do > #some expensive op > end > > works just fine. Does your code use {'s or begin/end ? > > -Pkj > > > On Feb 24, 2012, at 1:36 PM, St

[MacRuby-devel] Xcode: rb_nibtool no longer picking up actions

2012-02-24 Thread Steve Clarke
I've been following the discussions about getting Xcode 4.3 to find rb_nibtool. The symlink works for me. However it seems to deal OK with outlets but is not working at all for received actions - even in the simplest cases. What may be interesting is that even before I installed 4.3 it stopp

Re: [MacRuby-devel] MacRuby scripting bridge speed

2011-12-24 Thread Steve Clarke
2011, at 18:43, Bernard Kenik wrote: > >> >> Message: 1 >> Date: Fri, 23 Dec 2011 13:04:19 + >> From: Steve Clarke >> To: "MacRuby development discussions." >> >> Subject: Re: [MacRuby-devel] MacRuby scripting bridge speed >>

Re: [MacRuby-devel] MacRuby scripting bridge speed

2011-12-23 Thread Steve Clarke
I have used macruby-appscript  and it works fine.  I had developed quiet a few apps with rb-appscript and I was able to get them all working with the macruby version.  A few things needed change but I was able to write apps that used either macruby or MRI versions of appscript.  Only a few methods

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Steve Clarke
Sounds like a good idea. How about screen size for starters? Steve On 19 Dec 2011, at 21:34, Jordan K. Hubbard wrote: > > On Dec 19, 2011, at 8:37 PM, Matt Aimonetti wrote: > >> When I tried the live video script, the items weren't properly located >> either. > > Given that "it works on m

Re: [MacRuby-devel] RVM + Xcode 4

2011-12-09 Thread Steve Clarke
Hi, Try deleting the entry in red and then re-adding it from Library/ Frameworks. Steve On 9 Dec 2011, at 17:49, Rafael Felix wrote: > I've installed MacRuby using RVM, but in the xcode 4 the MacRuby Framework > has been marked as red, and I'm felling something is wrong. > > There's more setu

Re: [MacRuby-devel] Macruby dispatch problem

2011-11-25 Thread Steve Clarke
I think you just need require 'rubygems' before you require 'dispatch' Steve On 25 Nov 2011, at 17:59, François Boone wrote: > Hi, > > Once again, I don't if it's the appropriate forum to post this question. > > I have a problem with the dispatch gem on my mac. > > 1) Problem: > $ macirb

Re: [MacRuby-devel] symbol not found: _rb_str_freeze

2011-11-16 Thread Steve Clarke
Hi Jean-Denis, I can't answer your question directly but I may be able to help a bit. I also want to use mysql with `MacRuby. I tried mysql gem version 2.8.1 and hit problems I couldn't work around. I also tried ruby-mysql 2.9.4. I did get that to work after some mods, but it was very slow t

Re: [MacRuby-devel] brace yourselves, 0.11 is coming!

2011-10-22 Thread Steve Clarke
Hi, I installed 0.11 using the installer pkg. The install seemed to work fine. However, when I run my app I get a message that wasn't there with 0.10 or with an earlier build of 0.11. Here's the console message: Membership(4727,0x1043bf000) malloc: *** auto malloc[4727]: error: GC operation

Re: [MacRuby-devel] MacRuby and Scripting Bridge

2011-09-30 Thread Steve Clarke
Have you tried the macruby version of rb-appscript? I found it ran most of scripts without any change. I was also initially attracted to scripting bridge but had problems with it and subsequently read a few negative reports. On 30 Sep 2011, at 13:08, Naughty Nimitz wrote: > Hi all, > > As i

[MacRuby-devel] Unexpected results when using strings with encoding functions

2011-09-27 Thread Steve Clarke
Hi, I've just spent a long time being puzzled by the following behavior. I have a String (I thought). When I tried to use my_string.encode(..) I got a NoMethodError exception. I only finally realised what was happening when I subsequently did my_string.force_encoding(...). In this case

Re: [MacRuby-devel] macruby + gems

2011-09-20 Thread Steve Clarke
Hi Michael, I've encountered a few gems that use this encoding - prawn to name but one. All I do is edit the gem source to remove references to all the encodings I don't need - which is most! I don't know if it's possible to add the additional encoding to macruby? Steve On 20 Sep 2011, at 10

[MacRuby-devel] Fwd: macruby produces strings with encodings that differ from MRI

2011-09-18 Thread Steve Clarke
> Hi Steve, > > It would be nice to know what exactly in ruby-mysql causes the > problem. If you can reduce the problem to a simple code snippet or > point us to the ruby-mysql source code it would be great. > > Thanks > Laurent > > On Sun, Sep 18, 2011 at 8:38 AM, Steve

Re: [MacRuby-devel] macruby produces strings with encodings that differ from MRI

2011-09-17 Thread Steve Clarke
. Steve On 18 Sep 2011, at 06:07, Watson wrote: > Hi, > > Maybe related to http://www.macruby.org/trac/ticket/742. > MacRuby ignore magic-comment, and uses default encoding UTF8. > > Thanks. > > 2011/9/18 Steve Clarke : >> Code >> >> >&g

[MacRuby-devel] macruby produces strings with encodings that differ from MRI

2011-09-17 Thread Steve Clarke
Code ABC='ABC' puts "ABC[0] encoding is #{ABC[0].encoding}" puts "?\\xff encoding is #{?\xff.encoding}" Output MRI output ABC[0] encoding is US-ASCII ?\xff encoding is ASCII-8BIT macruby output ABC[0] encoding is UTF-8 ?\xff encoding is UTF-8 The encodings reported a

[MacRuby-devel] Experiences with m17N using PostgreSQL with macruby

2011-08-24 Thread Steve Clarke
I want to use PostgreSQL with macruby. At first I couldn't make this work. I eventually had some success and learned quite a lot on the way. I'm not sure whether I found a bug in macruby but it certainly behaves differently from ruby 1.9.2-p290 installed from macports. The latter worked wit