[MacRuby-devel] Size of the apps

2010-04-07 Thread Daniel Lopes
Hello, this is my first post here and I am new in the Apple Dev/MacRuby. I
don't know if this the right mailing list, I don't found any other in the
MacRuby site related to questions about development. So, if this mail isn't
appropriate here please let me know. Some days ago, in a sample app, I tried
to embed the MacRuby Framework to distribute the app as a standalone package
but the size of the app became huge. There is some effort to make the
embedded framework smaller or any tip/tricks that I should do to get small
apps? Or all my apps will have 34mb? (It's not a big problem, just to know).

Thanks.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Daniel Lopes  -  Area Criações
Design, Websites e Sistemas Web

http://www.areacriacoes.com.br/
http://www.cifrascash.com/
http://pomodo.areacriacoes.com.br/
http://egenial.com.br/cursorails

twitter: @danielvlopes
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
55 (31) 3077-4560  /  55 (31) 8808-8748  /  55 (31) 8737-7501
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] Garbage Collector in MacRuby

2010-04-10 Thread Daniel Lopes
Hello, I would like to know more about the garbage collector. In Obj-c even
when we have GC enabled we should set nil to the vars (which sometimes is
also useful in pure ruby). Correct me if I'm wrong but in MacRuby we can't
use GDB, right? We still able to use profile tools? I should set all vars to
nil or it will be treated like normal ruby code and I need set to nil only
the objects that I want to be released now?

Thanks.
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Garbage Collector in MacRuby

2010-04-10 Thread Daniel Lopes
Thanks to answer Laurent.

On Sat, Apr 10, 2010 at 9:47 PM, Laurent Sansonetti
wrote:

> Hi Daniel,
>
> MacRuby uses the Objective-C garbage collector, and also runs the
> Objective-C runtime in GC mode. It basically means that you can use Cocoa
> objects without the need to retain/release them, and they will be
> automatically collected at runtime once there is no reference to them
> anymore. This is also true for pure Ruby code.
>
> Please note that the collector is not deterministic and runs on its own
> thread(s) (and also collects memory from there). So, setting variables to
> nil or calling GC.start can help but there is no guarantee that the objects
> will be immediately freed.
>
> In general you should not care about these issues. Just don't think about
> managing memory and it should work fine. If you find a problematic case, let
> us know :-)
>
> Laurent
>
> On Apr 10, 2010, at 8:44 AM, Daniel Lopes wrote:
>
> > Hello, I would like to know more about the garbage collector. In Obj-c
> even when we have GC enabled we should set nil to the vars (which sometimes
> is also useful in pure ruby). Correct me if I'm wrong but in MacRuby we
> can't use GDB, right? We still able to use profile tools? I should set all
> vars to nil or it will be treated like normal ruby code and I need set to
> nil only the objects that I want to be released now?
> >
> > Thanks.
> > ___
> > MacRuby-devel mailing list
> > [email protected]
> > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Size of the apps

2010-04-14 Thread Daniel Lopes
Thanks Laurent, but I also think the size of apps in Mac dev is a big issue.

On Wed, Apr 14, 2010 at 10:35 AM, Gary Weaver  wrote:

> Laurent,
>
> Thanks! That is awesome!
>
> Will this reduce the footprint of HotCocoa apps as well?
>
> Thanks,
>
> Gary
>
>
> On Apr 9, 2010, at 8:27 PM, Laurent Sansonetti wrote:
>
> Hi Daniel,
>
> As Matt said, it is possible to trim out your .app bundle to only ship
> what's really needed. If you do not need the standard library and
> extensions, removing them might free some memory. I believe the min. size is
> about 20MB then (I'm not exactly certain though), for both 32-bit and 64-bit
> Intel architectures. Of course removing 32-bit will free another 10MB.
>
> There is an effort for the next release (0.7) to prepare a (much) smaller
> runtime used during static AOT compilation. The resulted binary would not
> contain LLVM code, and some Ruby features would also not be available. I
> estimate the binary size to then be a couple of MBs (maybe less), but this
> is an estimation :-)
>
> Laurent
>
> On Apr 7, 2010, at 8:50 AM, Daniel Lopes wrote:
>
> Hello, this is my first post here and I am new in the Apple Dev/MacRuby. I
> don't know if this the right mailing list, I don't found any other in the
> MacRuby site related to questions about development. So, if this mail isn't
> appropriate here please let me know. Some days ago, in a sample app, I tried
> to embed the MacRuby Framework to distribute the app as a standalone package
> but the size of the app became huge. There is some effort to make the
> embedded framework smaller or any tip/tricks that I should do to get small
> apps? Or all my apps will have 34mb? (It's not a big problem, just to know).
>
> Thanks.
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> Daniel Lopes  -  Area Criações
> Design, Websites e Sistemas Web
>
> http://www.areacriacoes.com.br/
> http://www.cifrascash.com/
> http://pomodo.areacriacoes.com.br/
> http://egenial.com.br/cursorails
>
> twitter: @danielvlopes
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> 55 (31) 3077-4560  /  55 (31) 8808-8748  /  55 (31) 8737-7501
>  ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Size of the apps

2010-04-14 Thread Daniel Lopes
Ops, sorry... small typo == isn't a big issue. Nobody cares for 10mb or 30mb
today.

On Wed, Apr 14, 2010 at 3:45 PM, Matt Aimonetti wrote:

> Daniel, can you explain why you think it's a big issue? Maybe we can help
> with some temporary solutions.
>
> - Matt
>
>
> On Wed, Apr 14, 2010 at 7:13 AM, Daniel Lopes wrote:
>
>> Thanks Laurent, but I also think the size of apps in Mac dev is a big
>> issue.
>>
>> On Wed, Apr 14, 2010 at 10:35 AM, Gary Weaver wrote:
>>
>>> Laurent,
>>>
>>> Thanks! That is awesome!
>>>
>>> Will this reduce the footprint of HotCocoa apps as well?
>>>
>>> Thanks,
>>>
>>> Gary
>>>
>>>
>>> On Apr 9, 2010, at 8:27 PM, Laurent Sansonetti wrote:
>>>
>>> Hi Daniel,
>>>
>>> As Matt said, it is possible to trim out your .app bundle to only ship
>>> what's really needed. If you do not need the standard library and
>>> extensions, removing them might free some memory. I believe the min. size is
>>> about 20MB then (I'm not exactly certain though), for both 32-bit and 64-bit
>>> Intel architectures. Of course removing 32-bit will free another 10MB.
>>>
>>> There is an effort for the next release (0.7) to prepare a (much) smaller
>>> runtime used during static AOT compilation. The resulted binary would not
>>> contain LLVM code, and some Ruby features would also not be available. I
>>> estimate the binary size to then be a couple of MBs (maybe less), but this
>>> is an estimation :-)
>>>
>>> Laurent
>>>
>>> On Apr 7, 2010, at 8:50 AM, Daniel Lopes wrote:
>>>
>>> Hello, this is my first post here and I am new in the Apple Dev/MacRuby.
>>> I don't know if this the right mailing list, I don't found any other in the
>>> MacRuby site related to questions about development. So, if this mail isn't
>>> appropriate here please let me know. Some days ago, in a sample app, I tried
>>> to embed the MacRuby Framework to distribute the app as a standalone package
>>> but the size of the app became huge. There is some effort to make the
>>> embedded framework smaller or any tip/tricks that I should do to get small
>>> apps? Or all my apps will have 34mb? (It's not a big problem, just to know).
>>>
>>> Thanks.
>>>
>>> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>>> Daniel Lopes  -  Area Criações
>>> Design, Websites e Sistemas Web
>>>
>>> http://www.areacriacoes.com.br/
>>> http://www.cifrascash.com/
>>> http://pomodo.areacriacoes.com.br/
>>> http://egenial.com.br/cursorails
>>>
>>> twitter: @danielvlopes
>>> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>>> 55 (31) 3077-4560  /  55 (31) 8808-8748  /  55 (31) 8737-7501
>>>  ___
>>> MacRuby-devel mailing list
>>> [email protected]
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>
>>>
>>> ___
>>> MacRuby-devel mailing list
>>> [email protected]
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>
>>>
>>>
>>> ___
>>> MacRuby-devel mailing list
>>> [email protected]
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>
>>>
>>
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>>
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Size of the apps

2010-04-15 Thread Daniel Lopes
I agree... and we also can dmg the app and probably it will be smaller than
the zip version.

On Thu, Apr 15, 2010 at 3:16 PM, Jakub Suder  wrote:

> On Thu, Apr 15, 2010 at 16:05, robert gleeson  wrote:
> > I agree, 100%, with Dave Baldwin. It would be nice to see the overall
> size
> > of a MacRuby application reduced to somewhere between 5-8MB because of
> the
> > reasons he listed. I don't think MacRuby can be a big player until we can
> > distribute smaller apps.
>
> I'm not saying it wouldn't be better if the app size was less than it
> is now, but IMHO it isn't that bad at at the moment. The app I write
> weighs 32 MB total (30 MB of that is MacRuby...), but after packing it
> into a zip it's only 11 MB. Looking at my "installers" directory,
> that's not a terribly big size - TextMate is about the same size,
> Adium is twice that, Skype is over 4 times more...
>
> Jakub Suder
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Size of the apps

2010-04-15 Thread Daniel Lopes
Can't agree more with Jordan. I just raised this question to know if I'm
doing something wrong or 32mb is the right size. I already read the sources
of MacRuby and I hope to help in near future (my C and ObjC isn't so good).

On Thu, Apr 15, 2010 at 4:25 PM, Jordan K. Hubbard  wrote:

> Folks, I think everyone needs to also put this into perspective.  We have a
> very finite amount of engineering resources to devote to MacRuby development
> (as anyone who has followed the mailing list for the last year or so already
> knows) and we don't even run Rails yet.  In the grander scheme of things, we
> have a lot more work to do in making MacRuby run *correctly* for all
> reasonable values of correctly before worrying about size and performance.
>  As the old saying goes, "first make it work, then make it work fast [or
> small]".  We're not quite at the stage where MacRuby fully works in all
> scenarios that Ruby 1.8 / Ruby 1.9 does, and that has to take priority here!
>   Simply chiming in with "Me too!  Me too!  Make it smaller!" is not
> particularly helpful here unless you're ALSO volunteering to do the
> engineering work involved.  Who's volunteering? :-)
>
> - Jordan
>
>
> On Apr 15, 2010, at 7:05 AM, robert gleeson wrote:
>
> I agree, 100%, with Dave Baldwin. It would be nice to see the overall size
> of a MacRuby application reduced to somewhere between 5-8MB because of the
> reasons he listed. I don't think MacRuby can be a big player until we can
> distribute smaller apps.
>
> Rob
>
> On 15 Apr 2010, at 09:35, Dave Baldwin wrote:
>
>
> On 14 Apr 2010, at 19:47, Daniel Lopes wrote:
>
> Ops, sorry... small typo == isn't a big issue. Nobody cares for 10mb or
> 30mb today.
>
>
> I disagree strongly.  I have not downloaded apps because their size seems
> way out of kilter with the functionality they offer.  Who wants to support
> gratuitous bloatware?
>
> Download size is important"
> 1.  Not everyone is on broadband.
> 2.  Many people do not download via a landline - i.e. use the mobile or
> cell network
> 3.  Many people have some cap on the amount they can download per month.
> 4.  If I am hosting the sale of an app I don't want to pay pay for more
> bandwidth than needed as there is a per purchase multiplier in there.
> 5.  If MacRuby has any aspirations to running on the iPhone OS then the
> available memory on these devices is limited so 30MB (or whatever) for a
> trivial app is way larger than the current sub MB these type of apps
> currently take.
>
> The size issue will go away if Apple includes MacRuby and its support
> frameworks as standard in the OS(es) but until these become the norm it is
> worth finding solutions to at least minimise the impact.
>
> Dave.
>
>
>
>
>
>
> On Wed, Apr 14, 2010 at 3:45 PM, Matt Aimonetti 
> wrote:
>
>> Daniel, can you explain why you think it's a big issue? Maybe we can help
>> with some temporary solutions.
>>
>> - Matt
>>
>>
>> On Wed, Apr 14, 2010 at 7:13 AM, Daniel Lopes wrote:
>>
>>> Thanks Laurent, but I also think the size of apps in Mac dev is a big
>>> issue.
>>>
>>> On Wed, Apr 14, 2010 at 10:35 AM, Gary Weaver wrote:
>>>
>>>> Laurent,
>>>>
>>>> Thanks! That is awesome!
>>>>
>>>> Will this reduce the footprint of HotCocoa apps as well?
>>>>
>>>> Thanks,
>>>>
>>>> Gary
>>>>
>>>>
>>>> On Apr 9, 2010, at 8:27 PM, Laurent Sansonetti wrote:
>>>>
>>>> Hi Daniel,
>>>>
>>>> As Matt said, it is possible to trim out your .app bundle to only ship
>>>> what's really needed. If you do not need the standard library and
>>>> extensions, removing them might free some memory. I believe the min. size 
>>>> is
>>>> about 20MB then (I'm not exactly certain though), for both 32-bit and 
>>>> 64-bit
>>>> Intel architectures. Of course removing 32-bit will free another 10MB.
>>>>
>>>> There is an effort for the next release (0.7) to prepare a (much)
>>>> smaller runtime used during static AOT compilation. The resulted binary
>>>> would not contain LLVM code, and some Ruby features would also not be
>>>> available. I estimate the binary size to then be a couple of MBs (maybe
>>>> less), but this is an estimation :-)
>>>>
>>>> Laurent
>>>>
>>>> On Apr 7, 2010, at 8:50 AM, Daniel Lopes wrote:
>>>>
>>>> Hello, t

[MacRuby-devel] Float bind and NSDecimalNumber

2010-04-17 Thread Daniel Lopes
Hello, I have a model Person with two accessors, one is initialized as
float. In Interface builder I did a bound between accessor and a TableColumn
(which one have a NumberFormatter). Everything ok but when I try store in
with NSKeyedArchiver.archivedDataWithRootObject it fails saying:

*Exception detected while handling key input.*

*can't convert NSDecimalNumber into Float*

 -[NSKeyedArchiver finalize]: warning: NSKeyedArchiver finalized without
having had -finishEncoding called on it.*

*
*

What I'm doing wrong? I should cast it or initialize the value as
NSDecimalNumber instead of float?


Thanks.
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Float bind and NSDecimalNumber

2010-04-18 Thread Daniel Lopes
Hi Laurent, I'm not sure it's a bug or I'm doing something wrong. Anyway,I
created a new bug with the project attached.

https://www.macruby.org/trac/ticket/656

On Sun, Apr 18, 2010 at 1:18 AM, Laurent Sansonetti
wrote:

> Hi Daniel,
>
> Could you reduce the problem into a simple Xcode project and attach it to a
> Trac bug? Would be easier for us to investigate :)
>
> Thanks,
>
> Laurent
>
> On Apr 17, 2010, at 8:11 PM, Daniel Lopes wrote:
>
> Hello, I have a model Person with two accessors, one is initialized as
> float. In Interface builder I did a bound between accessor and a TableColumn
> (which one have a NumberFormatter). Everything ok but when I try store in
> with NSKeyedArchiver.archivedDataWithRootObject it fails saying:
>
> *Exception detected while handling key input.*
> *can't convert NSDecimalNumber into Float*
>  -[NSKeyedArchiver finalize]: warning: NSKeyedArchiver finalized
> without having had -finishEncoding called on it.*
> *
> *
> What I'm doing wrong? I should cast it or initialize the value as
> NSDecimalNumber instead of float?
>
> Thanks.
>  ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] Security for licensing a MacRuby app

2010-04-18 Thread Daniel Lopes
Hello, I'm looking for a way to license one app that I'm working on and I
found AquaticPrime. I would like to know if the use of this tool can be
interfered by MacRuby. How AquaticPrime changes the CoreFoundation, it can
be an issue? More about AquaticPrime: http://code.nimblehost.com/ If it can
cause some sort of problem with MacRuby I would like to know if you already
thought some way to secure a MacRuby app for licensing.

Thanks.
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Security for licensing a MacRuby app

2010-04-21 Thread Daniel Lopes

Hi Laurent,

I'm looking for some default way to add a serial and an activation  
process to a comercial mac ruby app.


I'm thinking in do that with rest webservice from a online rails app  
that talks with macruby app. This aquaticprime sounds very intrusive  
for me ( change the core foundation ?).


I asked if someone else here already have some experience in serial  
and activation proccess and if exists any framework for that.


Thanks.

Sent from my iPhone

On 20/04/2010, at 23:42, Laurent Sansonetti   
wrote:



Hi Daniel,

Sorry for the late reply.

On Apr 18, 2010, at 4:56 PM, Daniel Lopes wrote:

Hello, I'm looking for a way to license one app that I'm working on  
and I found AquaticPrime. I would like to know if the use of this  
tool can be interfered by MacRuby. How AquaticPrime changes the  
CoreFoundation, it can be an issue?


More about AquaticPrime: http://code.nimblehost.com/


I never heard of AquaticPrime and I don't know if it will cause  
problems with MacRuby. I guess the best way to know is to try :)


More importantly, what do you mean by "secure a MacRuby app"? Maybe  
what you are planning to do can be implemented differently without  
the need of a 3rd party package.


FYI, it is possible to compile all your Ruby code into machine code,  
to prevent trivial reverse engineering.


Laurent
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Security for licensing a MacRuby app

2010-04-21 Thread Daniel Lopes
Gary, take a look in this video: Embedding
MacRuby

You will see
that the xcode template target is just a shell command and you can call it
from terminal. You also be able to open the packaged file and remove things
that you don't need (like showed in video).


On Wed, Apr 21, 2010 at 11:18 AM, Gary Weaver  wrote:

> Laurent,
>
> That sounds cool!
>
> I read the section on compilation in
> http://www.macruby.org/blog/index.html but am curious- is there an easy
> way to compile an app completely (specifically a HotCocoa app) into machine
> code using macrake (similar to "macrake deploy") and not just on a
> file-by-file basis using macrubyc (rb file) -o t? If so, would like to try
> that to decrease the size of the entire HotCocoa app to be < 150MB possibly,
> while not requiring the runtime or anything else to be installed (so app is
> completely self-contained). Sorry to distract. Am just curious.
>
> Thanks!
> Gary
>
>
>
> On Apr 20, 2010, at 10:42 PM, Laurent Sansonetti wrote:
>
> > FYI, it is possible to compile all your Ruby code into machine code, to
> prevent trivial reverse engineering.
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] Lighthouse and GoogleGroup

2010-04-21 Thread Daniel Lopes
Hello, I would like to know why not use lighthouse for bug tracker, github
for source code and google groups for mailing list? These tools (MacOSforge,
Trac and etc) are required by Apple? I don't know if is just my opinion but
for me they are much worse than the other that I said above.

Thanks,
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Lighthouse and GoogleGroup

2010-04-22 Thread Daniel Lopes
Thanks to answer Matt,

I just asked because in my opinion these tools help bring more community
work, it's very clear Rails development for example. But if Apple hosts
everything it's just perfect :)

Another thing I would like to sugest is link the posts of Phusion blog in
MacRuby.org. I don't know who take care of the site but theses links are
really great and can help a lot of people:

Objective-C for Ruby developers, un not-so-petit interlude
(1/2)<http://blog.phusion.nl/2010/03/24/objective-c-for-ruby-developers-un-not-so-petit-interlude-1/>
Creating our very first Mac application with Ruby, how
exciting!<http://blog.phusion.nl/2010/03/12/creating-our-very-first-mac-application-with-ruby-how-exciting/>
A gentle introduction to
MacRuby<http://blog.phusion.nl/2010/03/12/a-gentle-introduction-to-macruby/>

Another link that I think is really usefull is this one:

http://public.me.com/johnmshea

But I don't know if the author agree to make this public.


On Thu, Apr 22, 2010 at 4:33 AM, Matt Aimonetti wrote:

> Thanks for the input Daniel,
>
> I think there are many reasons, first and foremost, this is an Apple
> project and they gracefully host the code, nightly builds and tools used.
> They also maintain the servers and the various apps used.
> Furthermore, lighthouse, github and google groups are not open source
> projects. Finally, all development is done on subversion and not git, so
> github could not be used anyway.
>
> I have to admit that I'm not a big fan of trac but it does what we need and
> if someone should complain that would be Laurent ;)
>
>
> - Matt
>
> On Wed, Apr 21, 2010 at 12:21 PM, Daniel Lopes wrote:
>
>> Hello, I would like to know why not use lighthouse for bug tracker, github
>> for source code and google groups for mailing list? These tools (MacOSforge,
>> Trac and etc) are required by Apple? I don't know if is just my opinion but
>> for me they are much worse than the other that I said above.
>>
>> Thanks,
>>
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>>
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Is this the appropriate place to discuss HotCocoa?

2010-04-23 Thread Daniel Lopes

Hotcocoa also don't came with macruby dmg anymore?

On 23/04/2010, at 01:23, Matt Aimonetti  wrote:

The project was moved outside of the MacRuby core and it's currently  
maintained by Rich Kilmer. It was moved to GitHub with the hope that  
the community will be more involved and take ownership over the  
project.


I'm sure Rich will be glad to merge in patches submitted by the  
community, if you have some free time and want to help, contact Rich.


- Matt

On Thu, Apr 22, 2010 at 4:38 PM, Matthew Ratzloff > wrote:
And if so, can someone tell me if this project is still in active  
development?  The last time it was updated was in January, and it  
seems the bugs have gone unread the last few months.


Thanks,

-Matt

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Lighthouse and GoogleGroup

2010-04-23 Thread Daniel Lopes

Thanks Laurent, I will update the site with this links.

Sent from my iPhone

On 22/04/2010, at 17:25, Laurent Sansonetti   
wrote:



Hi Daniel,

This is a recurrent question. Our opensource projects are hosted on  
macosforge. If we want to switch to new tools they must be installed  
there, and ideally, the other opensource projects would also need to  
embrace them. So this is a difficult decision, so far Trac seems to  
fit for most of us. I cannot hide the fact that I hate it though :-)


As for the website, if you're interested in updating it the source  
is in the Subversion repository. We have a manual here: http://www.macruby.org/documentation/website-contributions.html 
. Currently nobody is really taking care of it, I just make sure to  
sync some info when doing releases.


Laurent

On Apr 22, 2010, at 6:14 AM, Daniel Lopes wrote:


Thanks to answer Matt,

I just asked because in my opinion these tools help bring more  
community work, it's very clear Rails development for example. But  
if Apple hosts everything it's just perfect :)


Another thing I would like to sugest is link the posts of Phusion  
blog in MacRuby.org. I don't know who take care of the site but  
theses links are really great and can help a lot of people:


Objective-C for Ruby developers, un not-so-petit interlude (1/2)
Creating our very first Mac application with Ruby, how exciting!
A gentle introduction to MacRuby

Another link that I think is really usefull is this one:

http://public.me.com/johnmshea

But I don't know if the author agree to make this public.


On Thu, Apr 22, 2010 at 4:33 AM, Matt Aimonetti > wrote:

Thanks for the input Daniel,

I think there are many reasons, first and foremost, this is an  
Apple project and they gracefully host the code, nightly builds and  
tools used. They also maintain the servers and the various apps used.
Furthermore, lighthouse, github and google groups are not open  
source projects. Finally, all development is done on subversion and  
not git, so github could not be used anyway.


I have to admit that I'm not a big fan of trac but it does what we  
need and if someone should complain that would be Laurent ;)



- Matt

On Wed, Apr 21, 2010 at 12:21 PM, Daniel Lopes > wrote:
Hello, I would like to know why not use lighthouse for bug tracker,  
github for source code and google groups for mailing list?


These tools (MacOSforge, Trac and etc) are required by Apple? I  
don't know if is just my opinion but for me they are much worse  
than the other that I said above.



Thanks,

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel



___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] Blogs posts and another links in macruby website

2010-04-24 Thread Daniel Lopes
I just forked macruby website and want to add some new links in
documentation page. The problem is the website doesn't have a space for
that.
I'm thinking in create a new session inside
http://localhost:4331/documentation.html with the title "Misc" or "Another
Resources". My idea is share this links for now:

Objective-C for Ruby developers, un not-so-petit interlude
(1/2)
Creating our very first Mac application with Ruby, how
exciting!
A gentle introduction to
MacRuby
http://public.me.com/johnmshea

And keep adding new posts. What do you think?
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Blogs posts and another links in macruby website

2010-04-25 Thread Daniel Lopes
Hi John, first thanks for the examples. I'm using your code for my study in
MacRuby and your examples help me a lot. Not everything works, but just one
or another change and everything is perfect. What I'm doing is read the
Hillegass book and write all examples of book in MacRuby and many times your
version is very useful to understand what I should do.

I don't think you should delete this. Maybe when I finish the book I can
share my version (updated to MacRuby 0.6).

On Sun, Apr 25, 2010 at 3:30 AM, John Shea  wrote:

> Hi Daniel,
> the last one on the list (mine) has code which is getting very old and
> crusty now - developed on 0.4 - I am not sure the code is all that useful
> anymore - in fact i was just about to remove the examples.
>
> Feel free to take copies of course (very soon) - but I a doubt there is too
> much of interest that cannot be found elsewhere in a much more modern (and
> in much nicer ruby/macruby idiomatic) form.
>  Cheers,
> J
>
>
>
> On Sun, Apr 25, 2010 at 2:02 AM, Daniel Lopes wrote:
>
>> I just forked macruby website and want to add some new links in
>> documentation page. The problem is the website doesn't have a space for
>> that.
>> I'm thinking in create a new session inside
>> http://localhost:4331/documentation.html with the title "Misc" or
>> "Another Resources". My idea is share this links for now:
>>
>> Objective-C for Ruby developers, un not-so-petit interlude 
>> (1/2)<http://blog.phusion.nl/2010/03/24/objective-c-for-ruby-developers-un-not-so-petit-interlude-1/>
>> Creating our very first Mac application with Ruby, how 
>> exciting!<http://blog.phusion.nl/2010/03/12/creating-our-very-first-mac-application-with-ruby-how-exciting/>
>> A gentle introduction to 
>> MacRuby<http://blog.phusion.nl/2010/03/12/a-gentle-introduction-to-macruby/>
>> http://public.me.com/johnmshea
>>
>> And keep adding new posts. What do you think?
>>
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>>
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Blogs posts and another links in macruby website

2010-04-25 Thread Daniel Lopes
I think External resources is great. I will add that tomorrow and send the
changes to Matt via github.

For the examples, I can contribute with the new version of John code. My
idea is get all examples from Hilegass finished in two weeks. The only
problem is that I don't know if we can share this, maybe I should get in
touch with Hilegass and ask if I can share the examples of his book in
macruby version (I don't think he will be against it).

On Sun, Apr 25, 2010 at 5:55 PM, Laurent Sansonetti
wrote:

> It would be awesome to get the samples (esp. the small games) running with
> trunk. Then maybe we can add them into the MacRuby repository as sample
> code?
>
> Daniel, as for the section, what about "External Resources"? Maybe
> http://developer.apple.com/mac/articles/scriptingautomation/cocoaappswithmacruby.htmlcan
>  be added there too then.
>
> Laurent
>
> On Apr 25, 2010, at 7:37 AM, Daniel Lopes wrote:
>
> Hi John, first thanks for the examples. I'm using your code for my study in
> MacRuby and your examples help me a lot. Not everything works, but just one
> or another change and everything is perfect. What I'm doing is read the
> Hillegass book and write all examples of book in MacRuby and many times your
> version is very useful to understand what I should do.
>
> I don't think you should delete this. Maybe when I finish the book I can
> share my version (updated to MacRuby 0.6).
>
> On Sun, Apr 25, 2010 at 3:30 AM, John Shea  wrote:
>
>> Hi Daniel,
>> the last one on the list (mine) has code which is getting very old and
>> crusty now - developed on 0.4 - I am not sure the code is all that useful
>> anymore - in fact i was just about to remove the examples.
>>
>> Feel free to take copies of course (very soon) - but I a doubt there is
>> too much of interest that cannot be found elsewhere in a much more modern
>> (and in much nicer ruby/macruby idiomatic) form.
>>  Cheers,
>> J
>>
>>
>>
>> On Sun, Apr 25, 2010 at 2:02 AM, Daniel Lopes wrote:
>>
>>> I just forked macruby website and want to add some new links in
>>> documentation page. The problem is the website doesn't have a space for
>>> that.
>>> I'm thinking in create a new session inside
>>> http://localhost:4331/documentation.html with the title "Misc" or
>>> "Another Resources". My idea is share this links for now:
>>>
>>> Objective-C for Ruby developers, un not-so-petit interlude 
>>> (1/2)<http://blog.phusion.nl/2010/03/24/objective-c-for-ruby-developers-un-not-so-petit-interlude-1/>
>>> Creating our very first Mac application with Ruby, how 
>>> exciting!<http://blog.phusion.nl/2010/03/12/creating-our-very-first-mac-application-with-ruby-how-exciting/>
>>> A gentle introduction to 
>>> MacRuby<http://blog.phusion.nl/2010/03/12/a-gentle-introduction-to-macruby/>
>>> http://public.me.com/johnmshea
>>>
>>> And keep adding new posts. What do you think?
>>>
>>> ___
>>> MacRuby-devel mailing list
>>> [email protected]
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>
>>>
>>
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Blogs posts and another links in macruby website

2010-04-26 Thread Daniel Lopes
Me too, but I will send a message to him to ask.

On Mon, Apr 26, 2010 at 12:35 AM, Matt Aimonetti wrote:

> I'm almost sure the Hilegass's examples are copyrighted :(
>
> - Matt
>
>
> On Sun, Apr 25, 2010 at 7:01 PM, Daniel Lopes wrote:
>
>> I think External resources is great. I will add that tomorrow and send the
>> changes to Matt via github.
>>
>> For the examples, I can contribute with the new version of John code. My
>> idea is get all examples from Hilegass finished in two weeks. The only
>> problem is that I don't know if we can share this, maybe I should get in
>> touch with Hilegass and ask if I can share the examples of his book in
>> macruby version (I don't think he will be against it).
>>
>> On Sun, Apr 25, 2010 at 5:55 PM, Laurent Sansonetti <
>> [email protected]> wrote:
>>
>>> It would be awesome to get the samples (esp. the small games) running
>>> with trunk. Then maybe we can add them into the MacRuby repository as sample
>>> code?
>>>
>>> Daniel, as for the section, what about "External Resources"? Maybe
>>> http://developer.apple.com/mac/articles/scriptingautomation/cocoaappswithmacruby.htmlcan
>>>  be added there too then.
>>>
>>> Laurent
>>>
>>> On Apr 25, 2010, at 7:37 AM, Daniel Lopes wrote:
>>>
>>> Hi John, first thanks for the examples. I'm using your code for my study
>>> in MacRuby and your examples help me a lot. Not everything works, but just
>>> one or another change and everything is perfect. What I'm doing is read the
>>> Hillegass book and write all examples of book in MacRuby and many times your
>>> version is very useful to understand what I should do.
>>>
>>> I don't think you should delete this. Maybe when I finish the book I can
>>> share my version (updated to MacRuby 0.6).
>>>
>>> On Sun, Apr 25, 2010 at 3:30 AM, John Shea wrote:
>>>
>>>> Hi Daniel,
>>>> the last one on the list (mine) has code which is getting very old and
>>>> crusty now - developed on 0.4 - I am not sure the code is all that useful
>>>> anymore - in fact i was just about to remove the examples.
>>>>
>>>> Feel free to take copies of course (very soon) - but I a doubt there is
>>>> too much of interest that cannot be found elsewhere in a much more modern
>>>> (and in much nicer ruby/macruby idiomatic) form.
>>>>  Cheers,
>>>> J
>>>>
>>>>
>>>>
>>>> On Sun, Apr 25, 2010 at 2:02 AM, Daniel Lopes 
>>>> wrote:
>>>>
>>>>> I just forked macruby website and want to add some new links in
>>>>> documentation page. The problem is the website doesn't have a space for
>>>>> that.
>>>>> I'm thinking in create a new session inside
>>>>> http://localhost:4331/documentation.html with the title "Misc" or
>>>>> "Another Resources". My idea is share this links for now:
>>>>>
>>>>> Objective-C for Ruby developers, un not-so-petit interlude 
>>>>> (1/2)<http://blog.phusion.nl/2010/03/24/objective-c-for-ruby-developers-un-not-so-petit-interlude-1/>
>>>>> Creating our very first Mac application with Ruby, how 
>>>>> exciting!<http://blog.phusion.nl/2010/03/12/creating-our-very-first-mac-application-with-ruby-how-exciting/>
>>>>> A gentle introduction to 
>>>>> MacRuby<http://blog.phusion.nl/2010/03/12/a-gentle-introduction-to-macruby/>
>>>>> http://public.me.com/johnmshea
>>>>>
>>>>> And keep adding new posts. What do you think?
>>>>>
>>>>> ___
>>>>> MacRuby-devel mailing list
>>>>> [email protected]
>>>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>>>
>>>>>
>>>>
>>>> ___
>>>> MacRuby-devel mailing list
>>>> [email protected]
>>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>>
>>>>
>>> ___
>>> MacRuby-devel mailing list
>>> [email protected]
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>
>>>
>>>
>>> ___
>>> MacRuby-devel mailing list
>>> [email protected]
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>
>>>
>>
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>>
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] Aaron answer about convert the code of the Book to MacRuby

2010-05-03 Thread Daniel Lopes
Hello folks, Some days ago I sent a message here with the idea to convert
the Cocoa Programming For Mac OSX to MacRuby. Definitely MacRuby is a
fantastical project but we need more examples and places where people, like
me, could start your journey. I think if we have resources like this code
for Aaron's book (and also Aimonetti's book) will be much easier for people
to learn MacRuby or even learn pure Objc/Cocoa through MacRuby. I got in
touch with Aaron asking if I can convert all his examples to the current
version of MacRuby and share it with the community and his answer was:
"Sounds great! You have my permission to make and distribute a set of
solutions for "cocoa programming for mac OS x" in Ruby." My idea is place
all the code in github and share it in MacRuby site. What do you think?
Thanks
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Aaron answer about convert the code of the Book to MacRuby

2010-05-04 Thread Daniel Lopes
I already did all code up to chapter 11 but I think I lost the code of 2,3
and 4 chapters.

My code is in github: http://github.com/danielvlopes/HillegassMacRuby .
Could you fork it and send me a pull request with these chapters? (don't
forget to remove your build folders).

Thanks.

On Tue, May 4, 2010 at 6:05 PM, Christian Bryan wrote:

> Perhaps I can get you started. I have converted the examples up to chapter
> 7 (something I did whilst looking for a new job) but stopped at that point
> because the KVO bindings was not working correctly. Just tried it with
> MacRuby 0.6 and all is working again. I can donate my code if you wish and
> you could carry on with the RaiseMan examples.
>
> Regards
>
> Christian
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Aaron answer about convert the code of the Book to MacRuby

2010-05-05 Thread Daniel Lopes

You're right I back in the book and conclude the same.

Sent from my iPhone

On 05/05/2010, at 07:01, Christian Bryan  wrote:


Daniel,

	I have the RandomApp example from chapter 2, which I will add to  
the fork. Chapter 4 was about manual memory management using the  
retain/release mechanism and is not really applicable to a  
MacRubyist. Chapter 3 I skipped, probably due to realising that  
converting the LotteryEntry class and the 'main' function to  
idiomatic ruby would be far too trivial to worth bothering about.


Cheers

Christian

On 5 May 2010, at 00:24, Daniel Lopes wrote:

I already did all code up to chapter 11 but I think I lost the code  
of 2,3 and 4 chapters.


My code is in github: http://github.com/danielvlopes/ 
HillegassMacRuby . Could you fork it and send me a pull request  
with these chapters? (don't forget to remove your build folders).


Thanks.

On Tue, May 4, 2010 at 6:05 PM, Christian Bryan > wrote:
Perhaps I can get you started. I have converted the examples up to  
chapter 7 (something I did whilst looking for a new job) but  
stopped at that point because the KVO bindings was not working  
correctly. Just tried it with MacRuby 0.6 and all is working again.  
I can donate my code if you wish and you could carry on with the  
RaiseMan examples.


Regards

Christian
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Aaron answer about convert the code of the Book to MacRuby

2010-05-05 Thread Daniel Lopes
Hi Christian,

I did the merge. I also change the organization of folders... I'm currently
working on chapter 12.
http://github.com/danielvlopes/HillegassMacRuby

Thanks,


On Wed, May 5, 2010 at 12:22 PM, Matthew Ratzloff
wrote:

> Nice!  Good work.
>
> -Matt
>
> On Mon, May 3, 2010 at 11:48 AM, Daniel Lopes wrote:
>
>> Hello folks, Some days ago I sent a message here with the idea to convert
>> the Cocoa Programming For Mac OSX to MacRuby. Definitely MacRuby is a
>> fantastical project but we need more examples and places where people, like
>> me, could start your journey. I think if we have resources like this code
>> for Aaron's book (and also Aimonetti's book) will be much easier for people
>> to learn MacRuby or even learn pure Objc/Cocoa through MacRuby. I got in
>> touch with Aaron asking if I can convert all his examples to the current
>> version of MacRuby and share it with the community and his answer was:
>> "Sounds great! You have my permission to make and distribute a set of
>> solutions for "cocoa programming for mac OS x" in Ruby." My idea is place
>> all the code in github and share it in MacRuby site. What do you think?
>> Thanks
>>
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] "Cocoa Programming" examples in MacRuby?

2010-06-16 Thread Daniel Lopes
Right now i'm reading the entire book first and after that I will  
rollback to create the samples... Any help is very welcome.


Sent from my iPhone

On 16/06/2010, at 20:23, Matthew Ratzloff   
wrote:


Same idea, different book.  These examples are for "Cocoa  
Programming for Mac OS X".


http://github.com/danielvlopes/HillegassMacRuby

-Matt

On Wed, Jun 16, 2010 at 1:37 PM, Rich Morin  wrote:
I recently received my copy of

 "Cocoa Programming: A Quick-Start Guide for Developers"
 Daniel H. Steinberg (Edited by Dave Thomas)
 Pragmatic Programmers, 2010, ISBN 978-1-93435-630-2

I've gotten about 60 pages into the book and so far, I'm
quite impressed.  The writing is clean and comfortable;
the pace and subject selection seems just fine (for me :).

I'd be interested in having a set of MacRuby translations
for the ObjC code in the book.  Problem is, I don't know
enough MacRuby to write them.  However, I'd be willing to
set up some wiki pages, edit the supporting text, etc.

Would anyone here like to play "advance programmer" and
gain the glory and fame thereof?  If so, give me a shout
and we can work out the details...

-r
--
http://www.cfcl.com/rdmRich Morin
http://www.cfcl.com/rdm/resume [email protected]
http://www.cfcl.com/rdm/weblog +1 650-873-7841

Technical editing and writing, programming, system design
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] NSDatepicker inside NSTableView

2010-06-22 Thread Daniel Lopes
Hello, sorry to post it here, I don't think it's specific to MacRuby but I
can't get any answer in Apple Cocoa forum.

I'm doing a commercial app in MacRuby but my app need a datepicker inside a
table view. Force user to type data inside a formatter is pretty bad, so I
thought it will be much better if I place a NSDatepicker in my cell.

My tableview use bind to bring data from a core data entity and everything
works great in all columns (textfield and checkbox). But when I drop a
NSDatepickerCell inside my table column it doesn't work correctly.

The datepicker is always blank, if I already have a column in database with
date defined when I open it in Tableview the datepicker display the data but
don't let me change the value.

Someone have sugestion on what I should do?

Thanks a lot.
Daniel Lopes
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] testing?

2010-07-10 Thread Daniel Lopes
I'm very interested in your test solution Ryan but right now I did a small
break in MacRuby but as soon as finish what I'm doing now I will try it.

Also the ability to have Minitest/Minispec by default inside MacRuby is just
awesome. This idea will proceed?

Thanks for Minitest and the env for tests in MacRuby.

Daniel Lopes


On Fri, Jul 9, 2010 at 11:12 PM, Jordan K. Hubbard  wrote:

> I'm a sucker for trolls. ;-)
>
> On Jul 9, 2010, at 4:37 PM, Matt Aimonetti wrote:
>
> Jordan, Ryan was talking about Cocoa developers writing tests. He was
> trolling a little bit to get replies and it seems like it worked ;)
>
> - Matt
>
> On Fri, Jul 9, 2010 at 3:03 PM, Jordan K. Hubbard  wrote:
>
>>
>> On Jul 9, 2010, at 12:05 PM, Ryan Davis wrote:
>>
>> > So are you guys not testing your macruby code? I was hoping that the
>> ruby community would bring the testing culture to the cocoa world and make
>> it a better place. Having gotten no feedback/suggestions whatsoever on my
>> testing setup has me a bit wary.
>>
>> MacRuby runs a large number of specs, and improving the % of specs which
>> pass is a constant effort (we measure this frequently).  Or were you talking
>> about Cocoa developers integrating tests into their MacRuby apps?
>>
>> - Jordan
>>
>>
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] MacRuby 0.7 release notes

2010-10-02 Thread Daniel Lopes
Awesome, thanks a lot.

Sent from my iPhone

On 02/10/2010, at 01:44, Laurent Sansonetti  wrote:

> Hi guys,
> 
> MacRuby 0.7 is now ready to be released. I created a branch called "0.7" 
> which might host minor fixes, and I'm now working on preparing the release 
> and announcement post. It should now be released very soon, likely Monday (we 
> want to do more testing).
> 
> In the meantime, trunk becomes MacRuby 0.8, where the story continues!
> 
> Thanks to everyone working on this release, which closes a successful 5 
> months development cycle.
> 
> Following are the complete release notes, the upcoming announcement post will 
> be clearer :-)
> 
> Highlights:
> 
> * Better Ruby compatibility. Better C extensions support. This release has 
> about 90% of RubySpec coverage.
> * Better concurrency. Dispatch cache has been rewritten to be thread safe. 
> Fixed several race conditions and deadlocks. MacRuby can now handle a 
> significant number of concurrent HTTP requests through ControlTower. Fixes 
> and improvements in the Dispatch library.
> * Better Cocoa support. Reduced runtime overhead, fixed minor problems and 
> simplified the integration with Cocoa classes. C-style blocks are now 
> supported in MacRuby, assuming you install the new BridgeSupport preview 
> release. The sandbox(7) functionality is now exposed in the Sandbox class.
> * Better performance. MacRuby's kernel primitives are now pre-compiled into 
> LLVM bitcode and inlined later into the module. Fixed minor performance 
> regressions introduced in last release. Optimized codegen, instance variables 
> and multiple assignments. In JIT mode, cold paths are now interpreted and not 
> JIT compiled. Introduced a regression performance suite.
> * MacIRB has been rewritten from scratch. The new version (called DietRB) is 
> lighter and better implemented. It should be compatible with the old IRB.
> * Started working on static Ruby compilation, which generates executable 
> binaries embedding the MacRuby runtime, not making use of the JIT compiler or 
> BridgeSupport runtime metadata. This is a work in progress and we intend to 
> finish it in the next release.
> * Mac OS v10.5 (Leopard) is no longer supported. We require MacRuby users to 
> upgrade to Snow Leopard.
> 
> Other changes:
> 
> * Fixed clang/clang++ build.
> * Fixed a crash when trying to create a byte string out of an empty NSString.
> * Fixed a small typo in the compilation error message.
> * Fixed a bug when bridgesupport files for linked frameworks wouldn't be 
> loaded.
> * Fixed a crash when calling #to_json on a symbol.
> * Fixed a bug in Method#call which would incorrectly change the safe level.
> * Now filtering the symbols we expose in the macruby dylib.
> * Avoid calling xmalloc() with a zero size (fixes several performance 
> problems).
> * #sysread with a len argument must return a binary string, not UTF-8.
> * Allow Pointer objects of type 'c' to be passed as C-style char arrays.
> * Fixed a bug in NSString#== where an exception would occur if the operand 
> cannot be converted as a string.
> * Got rid of the NSNumber glue, it's useless since NSNumbers are always 
> converted.
> * In case we are in a .app with MacRuby.framework embedded inside, relocate 
> the load paths accordingly.
> * Deal with numeric escapes in regexps.
> * Symbol#to_proc now generates a Proc that can accept a variable number of 
> arguments.
> * Fixed minor bugs in symbol and enumeration.
> * Implemented of String#encode.
> * Fixed String#each_byte to return positive numbers.
> * Made NSObject#== and NSObject#eql? use -[NSObject isEqual:].
> * Fixed minor bugs in Array and implemented #rotate, #rotate!, #select!, 
> #keep_if, #sort_by!.
> * More robust runtime signature parsing, by dynamically allocating the 
> temporary buffer instead of using a static array (which might be too small 
> when parsing big signatures like in CoreAudio).
> * Be careful when compiling the struct #new method, some fields might be 
> large (ABI-wise) structures.
> * Fixed minor bugs in Dir, implemented #home.
> * Create symbols from the auto zone, allowing associative references to work 
> without emitting warnings/errors.
> * Fixed minor bugs in Enumerable and implemented #flat_map, #collect_concat, 
> #each_entry, #each_slice, #each_cons, #each_with_object.
> * Fixed a bug in the compilation of the alias keyword, some arguments can be 
> interpolated symbols (not literals).
> * Removed the sigbus/sigsegv signal handlers, let macruby crash immediately 
> to make the life of crashtracer easier.
> * Fixed minor bugs in Enumerator and implemented #each_with_object, 
> #with_object.
> * Fixed minor bugs in File and implemented #absolute_path and #size.
> * Backported latest net/http from ruby trunk.
> * Fixed minor bugs in Fixnum and implemented #magnitude.
> * Fixed minor bugs in Float and implemented #rationalize.
> * Added some missing MRI C-APIs.
> * Added support for the nkf extension.
> * Fixed a bug when pop

[MacRuby-devel] Fail to access kABFirstNameProperty

2011-01-15 Thread Daniel Lopes
Hello,

I'm playing with AddressBook framework but I can't figure how access the 
predefined constants.

For example, in my ViewControler I do like below but XCode can't find 
kABFirstNamePropery. I already added framework 'AddressBook' in my rb_main.rb:

  def awakeFromNib
notificationCenter = NSNotificationCenter.defaultCenter
notificationCenter.addObserver(self, 
   selector: "recordChanged:",
   name: 
ABPeoplePickerNameSelectionDidChangeNotification,
   object:peoplePicker)
  end
  
  def recordChanged(notification)
people = peoplePicker.selectedRecords
person = people.first
puts kABFirstNameProperty
  end


Anyone can help me with this issue?

Thanks in advance ;)___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Fail to access kABFirstNameProperty

2011-01-15 Thread Daniel Lopes
Thank Matt,

I thought there was any compatible layer or trick to make objc constants work 
as ruby constants. 

Thanks a lot again (and thanks for the book too).

On 16/01/2011, at 01:33, Matt Aimonetti wrote:

> Actually I realized I didn't put the full Address Book example online yet, 
> but this section shows how to use method missing to write a nicer wrapper for 
> the AddressBook framework:
> 
> http://ofps.oreilly.com/titles/9781449380373/ch03.html#_method_missing
> 
> I hope it helps,
> 
> - Matt
> 
> On Sat, Jan 15, 2011 at 7:26 PM, Matt Aimonetti  
> wrote:
> Constants in Ruby start by an uppercase, rename kABFirstNamePropery => 
> KABFirstNamePropery
> 
> Also I have an address book example in my book you can see freely online.
> 
> - Matt
> 
> Sent from my iPhone
> 
> On Jan 15, 2011, at 19:24, Daniel Lopes  wrote:
> 
>> Hello,
>> 
>> I'm playing with AddressBook framework but I can't figure how access the 
>> predefined constants.
>> 
>> For example, in my ViewControler I do like below but XCode can't find 
>> kABFirstNamePropery. I already added framework 'AddressBook' in my 
>> rb_main.rb:
>> 
>>   def awakeFromNib
>> notificationCenter = NSNotificationCenter.defaultCenter
>> notificationCenter.addObserver(self, 
>>selector: "recordChanged:",
>>name: 
>> ABPeoplePickerNameSelectionDidChangeNotification,
>>object:peoplePicker)
>>   end
>>   
>>   def recordChanged(notification)
>> people = peoplePicker.selectedRecords
>> person = people.first
>> puts kABFirstNameProperty
>>   end
>> 
>> 
>> Anyone can help me with this issue?
>> 
>> Thanks in advance ;)
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> 
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] Issues with Notifications in MacRuby

2011-01-16 Thread Daniel Lopes
Hello,

I'm playing with notification in MacRuby but I don't know the behavior of the 
same thing in Objc is a little diferent. I believe the problem could be 
something related to Macruby's XCode template that don't do something that the 
normal cocoa do.

The app is really simple and I just created a new MacRuby app:

1º added the AddressBook framework in the target
2º in rb_main.rb I added:  framework 'AddressBook'
3º in Interface build I dropped an ABPeoplePicker
4º created an new class called PeoplePickerViewController
5º made an NSObject in IB and set the class to my new controller
6º made an outlet to the ABPeoplePicker
7º add awakeFromNib and register an observer for notification.

Everything goes and compile but the selector registered in notification is not 
called when user interact with ABPeoplePicker. I followed the same steps in 
pure Objc app and everything worked very well.

Here is my Ruby code:

https://gist.github.com/782006 (and the app http://cl.ly/42CZ)

Here is my Objc code:

https://gist.github.com/782007

Probably is something that I don't know how to do in MacRuby and is different 
from Objc. Someone could help?

Thanks a lot.___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] MacRuby Book discount

2011-01-17 Thread Daniel Lopes
Awesome, I just bought my copy  :)

On 17/01/2011, at 17:54, Matt Aimonetti wrote:

> Thanks for your support. Let me know if you are stumbling upon things that 
> you would like to see covered but are missing from the TOC.
> 
> Also, what are you building with MacRuby?
> 
> - Matt
> 
> Sent from my iPhone
> 
> On Jan 17, 2011, at 11:14, Joel Reymont  wrote:
> 
>> Bought the book although I barely browsed the free HTML version. 
>> 
>> I figure it's a worthwhile investment, seeing how my livelihood depends on 
>> MacRuby now :-).
>> 
>> On Jan 17, 2011, at 6:34 PM, Matt Aimonetti wrote:
>> 
>>> O'Reilly is running a special today and my MacRuby: Definitive Guide - 
>>> Early Release - ebook (PDF, mobi & ePub) is for sale for only $15.99 with 
>>> the following code: DDMRD
>>> 
>>> http://oreil.ly/eij2QS
>> 
>> ---
>> http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
>> 
>> 
>> 
>> 
>> 
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] IDE and TextEditor

2011-01-17 Thread Daniel Lopes
Hello everybody,

I'm spending more and more time with macruby but I'm not very happy with XCode 
yet. The IDE is pretty good but I didn't found a good theme that colorizes Ruby 
syntax in the right way. I don't consider TextMate and Vim because for 
frameworks like Cocoa I think autocomplete and integration with docs is really 
important.

What do you guys use for edit MacRuby code?


___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] what are you building with macruby?

2011-01-17 Thread Daniel Lopes
I'm working on Taks Manager that we plan to release in alpha in 1 or 2 months.

When we finish I will send an email here.

On 17/01/2011, at 18:19, Matt Aimonetti wrote:

> Wow this is awesome!
> We are working on redesigning the MacRuby website and I'd like to feature 
> MacRuby apps on the homepage, so make sure to let us know when you release 
> your apps.
> 
> Anyone else building awesome MacRuby apps? Care to share?
> 
> - Matt
> 
> Sent from my iPhone
> 
> On Jan 17, 2011, at 12:06, Joel Reymont  wrote:
> 
>> On Jan 17, 2011, at 7:54 PM, Matt Aimonetti wrote:
>> 
>>> Also, what are you building with MacRuby?
>> 
>> Since Matt asked...
>> 
>> - A trading platform.
>> 
>> - A protocol reverse-engineering interface to my USB hardware bus analyzer.
>> 
>> - User-space interface for a consumer electronics device that uses MacFUSE 
>> provide a virtual file system by accessing Amazon EC2 servers.
>> 
>> - Cocoa user interfaces to the above.
>> 
>> - User-space USB drivers if I can figure out how to wrap -portions- of IOKit.
>> 
>> And anything else I can come up with since MacRuby is so awesome for 
>> bootstrapping and prototyping!
>> 
>> All of the above except the trading platform are for my clients.
>> 
>> Note also that I'm well-versed with C++, Lisp, OCaml, etc. but still want to 
>> use MacRuby ;-)
>> 
>> ---
>> http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
>> 
>> 
>> 
>> 
>> 
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] MacRuby Book discount

2011-01-18 Thread Daniel Lopes
I don't like read full books in computer screen but the version for iPad solves 
this problem :) . I'm in the middle of the book and is really good, worth every 
cent.

On 18/01/2011, at 14:08, Matt Aimonetti wrote:

> Thanks a lot, it's been quite challenging to keep up with trunk, to find an 
> interesting way to explain MacRuby & Cocoa and to not lose motivation. Thank 
> you guys for the kind words, it means a lot to me.
> 
> - Matt
> 
> Sent from my iPhone
> 
> On Jan 18, 2011, at 3:49, Alistair Holt  wrote:
> 
>> I've happily purchased a copy, thanks Matt! You've done a great job. I've 
>> been reading the online version as you've been writing it and have found it 
>> to be a really excellent book.
>> 
>> - Alistair Holt
>> 
>> 
>> 
>> On 17 January 2011 18:34, Matt Aimonetti  wrote:
>> O'Reilly is running a special today and my MacRuby: Definitive Guide - Early 
>> Release - ebook (PDF, mobi & ePub) is for sale for only $15.99 with the 
>> following code: DDMRD
>> 
>> http://oreil.ly/eij2QS
>> 
>> The book is also available in HTML format for free. If you've enjoyed the 
>> free version, please consider leaving a review on the page above to show 
>> your support to myself & to my publisher. 
>> 
>> Thanks,
>> 
>> - Matt
>> 
>> Sent from my iPhone
>> 
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>> 
>> 
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel