I may have come across a KVO-related bug in MacRuby. In my project I
have an Objective-C subclass of NSObject that uses @property and
@synthesize to set up instance variable accessors.
In the init method I set a key-value observer for one of those
variables ('text') using:
[self addObserver
Is there a way to expose some c structs and functions from a custom
Objective-C framework to MacRuby?
For instance, in my framework I have a 3-D point struct, such as:
typedef struct {
CGFloat x, y, z;
} JPoint3;
In addition, I have creation functions such as 'JPoint3Make(x, y, z)'
e
John, thanks for the ideas.
Currently, I am using a simple Obj-C class with methods instead of a
struct and functions. That works OK, but it is not the best solution,
especially in those cases where the framework would be used by Obj-C
code instead of MacRuby code and where speed is a conce
OK, I decided to devote a little time to see if I could make any
headway with BridgeSupport. It doesn't seem too terribly complicated,
but I have run into a problem.
My framework is called ZenGL, so I first created a struct in ZenGL.h
based on NSPoint:
typedef struct _ZPoint {
floa
Hi Laurent,
First, why does the Foundation.xml use the elements "function_retval"
and "function_arg" instead of just "retval" and "arg"?
Second, I used the xml you suggested, but I now get this error:
`ZPointMake': unrecognized octype `{_ZPoint="x"f"y"f}' (RuntimeError)
I have read the man p
Laurent,
OK, it has taken me awhile to get back to this issue again, but yes,
you were exactly right, I needed to look at the newer BridgeSupport
format in /System/Library/Frameworks...
It works great now. Thanks for the help!
Jim
Hi Jim,
You're probably looking at an old BridgeSupport
Development seems to have slowed to a crawl, as has the mailing list activity.
Has RubyMotion has sucked all the oxygen away from MacRuby? Or perhaps the main
contributors are just busy right now?
Can anyone share some insight?
___
MacRuby-devel mailin
Cheers,
Josh
On Saturday, September 22, 2012 at 5:29 PM, Jim Getzen wrote:
> Development seems to have slowed to a crawl, as has the mailing list activity.
>
> Has RubyMotion has sucked all the oxygen away from MacRuby? Or perhaps the
> main contributors are just busy right no
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
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:
>
idn'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.
>
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
&
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
Hi David,
You might check out this Stack Overflow entry to see if it solves your problem:
http://stackoverflow.com/questions/2695671/nswindowcontroller-windowdidload-not-called
Jim
On Nov 29, 2012, at 6:50 PM, david kramf wrote:
Hi,
In the copied below code only the awakeFromNib is execute
I am developing a basic MacRuby OpenGL library and I am avoiding the deprecated
fixed-function pipeline in favor of OpenGL 3.2+ core functionality.
The problem is Apple's OpenGL framework has two primary header files: gl.h and
gl3.h. In Objective-C, I can just do: #import to access OpenGL
3.2
15 matches
Mail list logo