Hi,
I have my app working again after converting my Quartz2D drawing to ObjC. Not
as difficult as I had anticipated and now I've learned some ObjC.
So now some of my classes have three files with extensions .h, .m and .rb. It's
easy to reference the ObjC property accessor methods from MacRuby.
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
yup, you can't mix and match within one file.
@colinta
colinta.com
github.com/colinta
On Oct 21, 2012, at 1:22 PM, Robert Carl Rice wrote:
> Hi,
>
> Actually, I already have PBSerialPort m & h files by Paolo Bosetti dropped
> into my project and it works fine. I was wondering is a class co
Hi,
Actually, I already have PBSerialPort m & h files by Paolo Bosetti dropped into
my project and it works fine. I was wondering is a class could have both
Objective C and Ruby code but from this discussion I gather the class must be
either MacRuby or ObjC. Is this correct?
Thanks,
Bob Rice
You don't need to make a framework or bundle to add Obj-C code to your project.
I've been able to just add a .h/.m files directly to the project and call the
Obj-C classes contained therein from my MacRuby code, just as if those classes
were part of a framework.
What you can't do, of course, is
Adding some Objective-C code could be done with a framework as suggested, or by
creating a bundle. The bundle process is essentially the same as creating a C
extension for Ruby. Any MacRuby project with a C extension could be used as an
example:
https://github.com/pieter/macruby-bundle-example
You can certainly compile a group of stuff as a framework, and add that
framework to your project, but I've never tried to just toss in .h/.m files and
access them from macruby.
Can anyone touch on that? I'm interested to hear what can be done there...
AFA translating your code into Obj-C...
Hi Mark,
Unfortunately, I am not very familiar with objective C syntax. Is it easy to
mix objective C statements with MacRuby?
For example, How would code the @context =
NSGraphicsContext.currentContext.graphicsPort in objective C?
Thanks,
Bob Rice
On Oct 18, 2012, at 1:49 AM, Mark Rada wrote
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 th
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 fi
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
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,
> CoreGrap
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 fai
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 wee
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
It seems as though the BridgeSupport definition of CGContextRef is missing. At
this point, I'm not sure where it should be coming from, documentation
indicates ApplicationServices.framework, but it's not in there.
On Mountain Lion, we have a similar problem with some CoreGraphics definitions
mi
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
17 matches
Mail list logo