Re: [MacRuby-devel] Understanding Pointer objects

2010-10-24 Thread Mark Rada
On 2010-10-24, at 9:34 PM, Laurent Sansonetti wrote: > Hi Mark, > > Matt already replied but I thought I would give more info. > > On Oct 23, 2010, at 10:04 PM, Mark Rada wrote: > >> Hi, >> >> I've been trying to play with using the Accessibility API to do some >> automated testing. >> >>>

Re: [MacRuby-devel] Understanding Pointer objects

2010-10-24 Thread Laurent Sansonetti
Hi Mark, Matt already replied but I thought I would give more info. On Oct 23, 2010, at 10:04 PM, Mark Rada wrote: > Hi, > > I've been trying to play with using the Accessibility API to do some > automated testing. > >> From what I have researched, I have to use some C functions that often ne

Re: [MacRuby-devel] Understanding Pointer objects

2010-10-24 Thread Laurent Sansonetti
Hi Caio, On Oct 24, 2010, at 11:09 AM, Caio Chassot wrote: > On 2010-10-24, at 05:06 , Matt Aimonetti wrote: > > Is there any difference if I do these instead: > >> pointer = Pointer.new_with_type("f") > > p = Pointer.new(:float) #<= new instead of new_with_type > >> pointer.assign(3.2) > >

Re: [MacRuby-devel] Confusing with The memory a macruby app used

2010-10-24 Thread Laurent Sansonetti
Hi, The memory used by a new MacRuby app depends on your environment, but it's indeed bigger than a default Objective-C app. If you start enabling garbage collection in the Objective-C app and create some objects, the rsize should then be the same as a normal MacRuby app (since the runtime itse

Re: [MacRuby-devel] Understanding Pointer objects

2010-10-24 Thread Mark Rada
Hey, Thanks for the response. It has helped, but I am still confused a bit by you stating that none of the types are supported but that I can still dereference a pointer. I have now been able to dereference some pointers, but not pointers to pointers. Is that what you meant? In these cases I

Re: [MacRuby-devel] Understanding Pointer objects

2010-10-24 Thread Caio Chassot
On 2010-10-24, at 05:06 , Matt Aimonetti wrote: Is there any difference if I do these instead: > pointer = Pointer.new_with_type("f") p = Pointer.new(:float) #<= new instead of new_with_type > pointer.assign(3.2) p[0] = 3.2 #<= #[]= instead of #assign I have used both successf

Re: [MacRuby-devel] Confusing with The memory a macruby app used

2010-10-24 Thread Matt Aimonetti
Yes it is - Matt Sent from my iPhone On Oct 24, 2010, at 6:26, 聂殿辉 wrote: > Hi: > I want to write an app with macruby , and want to make sure there's not > memory problem. I create an Macruby-Application with Xcode ,and lanuch it > ,using the Activity Monitor , it using about 44M memory ,and

[MacRuby-devel] Confusing with The memory a macruby app used

2010-10-24 Thread 聂殿辉
Hi: I want to write an app with macruby , and want to make sure there's not memory problem. I create an Macruby-Application with Xcode ,and lanuch it ,using the Activity Monitor , it using about 44M memory ,and create an ObjectivC-Application ,it only use 8M memory ,is it normal? thanks __

Re: [MacRuby-devel] Is CoreText Fully Support

2010-10-24 Thread 聂殿辉
thanks ,I tried the new BirdgeSupport, it works :-) 2010/10/18 Matt Aimonetti > Hopefully the new BridgeSupport will help you solve this issue. > > - Matt > > > On Thu, Oct 7, 2010 at 7:28 PM, dianhui nie wrote: > >> Ok. I'll do this later when i was home : ) >> >> On Oct 8, 2010, at 10:17 AM,

Re: [MacRuby-devel] Frameworks Help

2010-10-24 Thread Mario Steele
Hey Shaun, On Sun, Oct 24, 2010 at 1:14 AM, Shaun August wrote: > Hi Again, > > I have spent some time with Nick's tutorial and I am looking into wrapping > the framework I have been provided with and I have a few more questions. > > The framework I am working with is already compiled and not in

Re: [MacRuby-devel] Understanding Pointer objects

2010-10-24 Thread Matt Aimonetti
You can set pointers using: Pointer.new_with_type and using one of the following types: http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtTypeEncodings.html#//apple_ref/doc/uid/TP40008048-CH100-SW1 Note, that not none of the types are supported.