Re: [MacRuby-devel] Quartz 2D Graphics problem
Bob,
No, I haven't. Perhaps I will get a chance later.
I have noticed some oddities with AppKit and OpenGL framework bridgesupport
files, but that will have to be the subject of another post.
Jim
On Oct 18, 2012, at 9:50 PM, Robert Carl Rice wrote:
Hi Jim,
Adding those frameworks didn't fix my BridgeSupport problem. Have you tried to
build your project with the most recent nightly build?
Thanks,
Bob Rice
On Oct 18, 2012, at 8:30 PM, Jim Getzen wrote:
> Aside from MacRuby and a couple of sound frameworks, it just uses Cocoa,
> CoreGraphics, and QuartzCore.
>
> Jim
>
>
> On Oct 18, 2012, at 7:45 PM, Robert Carl Rice wrote:
>
> Hi Jim,
>
> What frameworks do you included in your project?
>
> Thanks,
> Bob Rice
>
> On Oct 18, 2012, at 8:22 AM, Jim Getzen wrote:
>
>> A fairly recent project of mine makes the exact same context call in
>> drawRect. I just ran it again without a problem. My MacRuby is one of the
>> nightlies from 2-3 weeks ago.
>>
>> Jim
>>
>>
>> On Oct 18, 2012, at 12:30 AM, Robert Carl Rice wrote:
>>
>> Hi,
>>
>> I went back to working on an old project that uses core graphics and I'm
>> having problems getting it to run again.
>>
>> The following code gives me an error with the graphics context:
>>
>> def drawRect( rect )
>> return unless @controller
>>
>> begin
>> @context = NSGraphicsContext.currentContext.graphicsPort
>>
>> # Scale 15 min intervals to chart area
>> @xscale = bounds.size.width / 25.0
>> height = bounds.size.height
>> @yscale = height / 2.0
>> CGContextScaleCTM( @context, @xscale, @yscale )
>> CGContextTranslateCTM( @context, 0.5, 0.5 ) # Indent
>> from bounds
>>
>> # restore text size
>> CGContextSetTextMatrix( @context,
>> CGAffineTransformMakeScale( 1 / @xscale, 1 / @yscale ))
>> show_index( height )
>>
>> rescue => e
>> ErrorLog.instance.rescue_error( e )
>> end
>> end
>>
>> unrecognized runtime type `{CGContext=}'
>> /Users/robertrice/Library/Developer/Xcode/DerivedData/MacDriverLog-ebberjlfoqoqdzenjgqkdbkehuoj/Build/Products/Debug/MacDriverLog.app/Contents/Main_Window.bundle/Contents/Resources/RemarksIndexView.rb:55:in
>> `drawRect'
>> /Users/robertrice/Library/Developer/Xcode/DerivedData/MacDriverLog-ebberjlfoqoqdzenjgqkdbkehuoj/Build/Products/Debug/MacDriverLog.app/Contents/Resources/rb_main.rb:69:in
>> `'
>>
>> line 55 is the first line:
>> @context = NSGraphicsContext.currentContext.graphicsPort
>>
>> Has anything changed with regard to Quartz 2D drawing?
>>
>> Thanks,
>> Bob Rice
>>
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo/macruby-devel
>>
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo/macruby-devel
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo/macruby-devel
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo/macruby-devel
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macruby-devel
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macruby-devel
Re: [MacRuby-devel] Quartz 2D Graphics problem
10.8.2
Jim
On Oct 19, 2012, at 12:18 AM, Mark Rada wrote:
Hey Jim,
What version of OS X are you running things on?
On 2012-10-18, at 9:50 PM, Robert Carl Rice wrote:
> Hi Jim,
>
> Adding those frameworks didn't fix my BridgeSupport problem. Have you tried
> to build your project with the most recent nightly build?
>
> Thanks,
> Bob Rice
>
>
> On Oct 18, 2012, at 8:30 PM, Jim Getzen wrote:
>
>> Aside from MacRuby and a couple of sound frameworks, it just uses Cocoa,
>> CoreGraphics, and QuartzCore.
>>
>> Jim
>>
>>
>> On Oct 18, 2012, at 7:45 PM, Robert Carl Rice wrote:
>>
>> Hi Jim,
>>
>> What frameworks do you included in your project?
>>
>> Thanks,
>> Bob Rice
>>
>> On Oct 18, 2012, at 8:22 AM, Jim Getzen wrote:
>>
>>> A fairly recent project of mine makes the exact same context call in
>>> drawRect. I just ran it again without a problem. My MacRuby is one of the
>>> nightlies from 2-3 weeks ago.
>>>
>>> Jim
>>>
>>>
>>> On Oct 18, 2012, at 12:30 AM, Robert Carl Rice wrote:
>>>
>>> Hi,
>>>
>>> I went back to working on an old project that uses core graphics and I'm
>>> having problems getting it to run again.
>>>
>>> The following code gives me an error with the graphics context:
>>>
>>> def drawRect( rect )
>>> return unless @controller
>>>
>>> begin
>>> @context = NSGraphicsContext.currentContext.graphicsPort
>>>
>>> # Scale 15 min intervals to chart area
>>> @xscale = bounds.size.width / 25.0
>>> height = bounds.size.height
>>> @yscale = height / 2.0
>>> CGContextScaleCTM( @context, @xscale, @yscale )
>>> CGContextTranslateCTM( @context, 0.5, 0.5 ) # Indent
>>> from bounds
>>>
>>> # restore text size
>>> CGContextSetTextMatrix( @context,
>>> CGAffineTransformMakeScale( 1 / @xscale, 1 / @yscale ))
>>> show_index( height )
>>>
>>> rescue => e
>>> ErrorLog.instance.rescue_error( e )
>>> end
>>> end
>>>
>>> unrecognized runtime type `{CGContext=}'
>>> /Users/robertrice/Library/Developer/Xcode/DerivedData/MacDriverLog-ebberjlfoqoqdzenjgqkdbkehuoj/Build/Products/Debug/MacDriverLog.app/Contents/Main_Window.bundle/Contents/Resources/RemarksIndexView.rb:55:in
>>> `drawRect'
>>> /Users/robertrice/Library/Developer/Xcode/DerivedData/MacDriverLog-ebberjlfoqoqdzenjgqkdbkehuoj/Build/Products/Debug/MacDriverLog.app/Contents/Resources/rb_main.rb:69:in
>>> `'
>>>
>>> line 55 is the first line:
>>> @context = NSGraphicsContext.currentContext.graphicsPort
>>>
>>> Has anything changed with regard to Quartz 2D drawing?
>>>
>>> Thanks,
>>> Bob Rice
>>>
>>> ___
>>> MacRuby-devel mailing list
>>> [email protected]
>>> http://lists.macosforge.org/mailman/listinfo/macruby-devel
>>>
>>> ___
>>> MacRuby-devel mailing list
>>> [email protected]
>>> http://lists.macosforge.org/mailman/listinfo/macruby-devel
>>
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo/macruby-devel
>>
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo/macruby-devel
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo/macruby-devel
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macruby-devel
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macruby-devel
[MacRuby-devel] My new MacRuby Apps are now available in the App Store
Hi MacRuby! GlobalChat2, client and server, are now available in the Mac App Store https://itunes.apple.com/us/app/globalchat-2-pro/id566614902?ls=1&mt=12 https://itunes.apple.com/us/app/globalchat-server/id566163288?ls=1&mt=12 Source code is available here: https://github.com/jsilverMDX/GlobalChat2 iOS version coming to the iOS App Store. (gc2-ios) Windows and Android versions planned. Everything's in Ruby, MacRuby and Rubymotion so far. Thanks, Jonathan Silverman ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macruby-devel
Re: [MacRuby-devel] My new MacRuby Apps are now available in the App Store
Thats so cool! Do you plan on using Ruboto and IronRuby for Android and Windows? That would be pretty epic :) Sent from my iPhone On 19/10/2012, at 20:22, J Silver wrote: > Hi MacRuby! > > GlobalChat2, client and server, are now available in the Mac App Store > > https://itunes.apple.com/us/app/globalchat-2-pro/id566614902?ls=1&mt=12 > https://itunes.apple.com/us/app/globalchat-server/id566163288?ls=1&mt=12 > > Source code is available here: https://github.com/jsilverMDX/GlobalChat2 > > iOS version coming to the iOS App Store. (gc2-ios) > > Windows and Android versions planned. > > Everything's in Ruby, MacRuby and Rubymotion so far. > > Thanks, > Jonathan Silverman > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macruby-devel
Re: [MacRuby-devel] My new MacRuby Apps are now available in the App Store
Yes. Exactly. Hopefully they are far enough along when I get there that it is an easy port. On 19/10/2012 11:45, Mark Villacampa wrote: Thats so cool! Do you plan on using Ruboto and IronRuby for Android and Windows? That would be pretty epic :) Sent from my iPhone On 19/10/2012, at 20:22, J Silver wrote: Hi MacRuby! GlobalChat2, client and server, are now available in the Mac App Store https://itunes.apple.com/us/app/globalchat-2-pro/id566614902?ls=1&mt=12 https://itunes.apple.com/us/app/globalchat-server/id566163288?ls=1&mt=12 Source code is available here: https://github.com/jsilverMDX/GlobalChat2 iOS version coming to the iOS App Store. (gc2-ios) Windows and Android versions planned. Everything's in Ruby, MacRuby and Rubymotion so far. Thanks, Jonathan Silverman ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macruby-devel
Re: [MacRuby-devel] My new MacRuby Apps are now available in the App Store
congratulations! I remember when you first started this project. It's great to see it taken to completion! @colinta colinta.com github.com/colinta On Oct 19, 2012, at 12:22 PM, J Silver wrote: > Hi MacRuby! > > GlobalChat2, client and server, are now available in the Mac App Store > > https://itunes.apple.com/us/app/globalchat-2-pro/id566614902?ls=1&mt=12 > https://itunes.apple.com/us/app/globalchat-server/id566163288?ls=1&mt=12 > > Source code is available here: https://github.com/jsilverMDX/GlobalChat2 > > iOS version coming to the iOS App Store. (gc2-ios) > > Windows and Android versions planned. > > Everything's in Ruby, MacRuby and Rubymotion so far. > > Thanks, > Jonathan Silverman > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macruby-devel
Re: [MacRuby-devel] My new MacRuby Apps are now available in the App Store
thank you @colinta! :D On 19/10/2012 11:42, Colin Thomas-Arnold wrote: congratulations! I remember when you first started this project. It's great to see it taken to completion! @colinta colinta.com github.com/colinta On Oct 19, 2012, at 12:22 PM, J Silver wrote: Hi MacRuby! GlobalChat2, client and server, are now available in the Mac App Store https://itunes.apple.com/us/app/globalchat-2-pro/id566614902?ls=1&mt=12 https://itunes.apple.com/us/app/globalchat-server/id566163288?ls=1&mt=12 Source code is available here: https://github.com/jsilverMDX/GlobalChat2 iOS version coming to the iOS App Store. (gc2-ios) Windows and Android versions planned. Everything's in Ruby, MacRuby and Rubymotion so far. Thanks, Jonathan Silverman ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macruby-devel
Re: [MacRuby-devel] My new MacRuby Apps are now available in the App Store
True true. I hope on using native Ruby technologies to create a smarter Chat protocol that is less annoying but well prepared to displace IRC usage by coders. For example, the new version allows multi-line saying, which is what it sounds like: You can pretty much Ctrl+V any amount of code or text. Other main feature is the staple of GlobalChat, which is the default server side log-saving and auto scrollback. On 19/10/2012 11:45, Mark Villacampa wrote: Thats so cool! Do you plan on using Ruboto and IronRuby for Android and Windows? That would be pretty epic :) Sent from my iPhone On 19/10/2012, at 20:22, J Silver wrote: Hi MacRuby! GlobalChat2, client and server, are now available in the Mac App Store https://itunes.apple.com/us/app/globalchat-2-pro/id566614902?ls=1&mt=12 https://itunes.apple.com/us/app/globalchat-server/id566163288?ls=1&mt=12 Source code is available here: https://github.com/jsilverMDX/GlobalChat2 iOS version coming to the iOS App Store. (gc2-ios) Windows and Android versions planned. Everything's in Ruby, MacRuby and Rubymotion so far. Thanks, Jonathan Silverman ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macruby-devel
Re: [MacRuby-devel] My new MacRuby Apps are now available in the App Store
Congratulations on shipping! The idea of a new TCP level chat protocol is neat. On 2012-10-19, at 2:22 PM, J Silver wrote: > Hi MacRuby! > > GlobalChat2, client and server, are now available in the Mac App Store > > https://itunes.apple.com/us/app/globalchat-2-pro/id566614902?ls=1&mt=12 > https://itunes.apple.com/us/app/globalchat-server/id566163288?ls=1&mt=12 > > Source code is available here: https://github.com/jsilverMDX/GlobalChat2 > > iOS version coming to the iOS App Store. (gc2-ios) > > Windows and Android versions planned. > > Everything's in Ruby, MacRuby and Rubymotion so far. > > Thanks, > Jonathan Silverman > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macruby-devel
[MacRuby-devel] Basic delayed email method
Hi Everyone, I am fairly new to macruby and am having trouble finding some basic documentation to help me out. I would like to write a simple app that sends a delayed email based on Time from mac mail. I am thinking of something like this, time = Time.now + 3600 while true case time when Time.now #Send email end end Being able to respond to certain emails or send an email from a draft would be a huge benefit. Can anyone point me in the write direction to accomplish this? I am decently proficient in ruby but don't know where to start with MacRuby. Thanks everyone ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macruby-devel
Re: [MacRuby-devel] My new MacRuby Apps are now available in the App Store
Thank you Mark. I hope that the openness of it will truly help it topple IRC once and for all and encourage modability and usage and other programming fun. On 19/10/2012 14:52, Mark Rada wrote: Congratulations on shipping! The idea of a new TCP level chat protocol is neat. On 2012-10-19, at 2:22 PM, J Silver wrote: Hi MacRuby! GlobalChat2, client and server, are now available in the Mac App Store https://itunes.apple.com/us/app/globalchat-2-pro/id566614902?ls=1&mt=12 https://itunes.apple.com/us/app/globalchat-server/id566163288?ls=1&mt=12 Source code is available here: https://github.com/jsilverMDX/GlobalChat2 iOS version coming to the iOS App Store. (gc2-ios) Windows and Android versions planned. Everything's in Ruby, MacRuby and Rubymotion so far. Thanks, Jonathan Silverman ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macruby-devel
Re: [MacRuby-devel] Basic delayed email method
Busy looping for an hour would be really bad. I assume you would have a sleep
in there, but then you're still polling.
If you are using MacRuby, looking at the GCD API would be a good idea. You
could do something like this:
def schedule_email q
q.after(3600) do
# Send email
schedule_email q
end
end
schedule_email Dispatch::Queue.new("com.rosson.delayed.email")
NSRunLoop.currentRunLoop.run
As for actually sending emails, if you want to have things go through Apple
Mail you could use the ScriptingBridge framework which has a few tutorials
online (but for iTunes):
http://arstechnica.com/apple/2011/09/tutorial-os-x-automation-with-macruby-and-the-scripting-bridge/
AXElements is another option that I am biased in favour of; but it may not be
passive enough for your requirements.
HTH,
Mark
On 2012-10-19, at 6:12 PM, Cliff Rosson wrote:
> Hi Everyone,
>
> I am fairly new to macruby and am having trouble finding some basic
> documentation to help me out. I would like to write a simple app that sends a
> delayed email based on Time from mac mail.
>
> I am thinking of something like this,
>
> time = Time.now + 3600
> while true
> case time
> when Time.now
> #Send email
> end
> end
>
> Being able to respond to certain emails or send an email from a draft would
> be a huge benefit. Can anyone point me in the write direction to accomplish
> this? I am decently proficient in ruby but don't know where to start with
> MacRuby.
>
> Thanks everyone
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo/macruby-devel
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macruby-devel
