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
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
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:
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
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
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
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
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
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
> /* 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
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,
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
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
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
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
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
>
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
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
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&
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
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
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
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
>>
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
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
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
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
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
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
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
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
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
> 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
.
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
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
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
36 matches
Mail list logo