Re: [MacRuby-devel] hotcocoa virus

2011-03-31 Thread Gary Weaver
  If it is a bug in HotCocoa, than it may be a bug (or at least
undesired functionality if it freezes your Mac) in MacRuby or
OS X, so you might want to dig deeper and provide more info
    on version (and where you got it, since it is in various
places in GitHub) of HotCocoa.

Thanks!
Gary


On 3/29/11 5:27 PM, Vincenzo Piombo wrote:

Hi all,
 I was trying to add drag & drop capabilities to a hotcocoa
program and stumbled into a problem that really puzzles me:
a macruby program can freeze your mac !

I uploaded the buggy fragment here:
https://gist.github.com/893300

    Don't run it unless you are prepared to reboot your machine
the hard way, don't even "Force quit" works.
In the instructions I say to launch it twice, but every drag
& drop with any app  after the crash freezes the app.


    I'm using macruby 0.9, tried 0.10 but hotcocoa does not work
with it (but this is another story !)

Hope someone can tell me if I did something wrong or found a
bug somewhere.

Enzp






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





___________
MacRuby-devel mailing list
[email protected]
<mailto:[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] hotcocoa virus

2011-03-31 Thread Joshua Ballanco
otcocoa
>> https://github.com/jamis/hotcocoa
>>
>> Gary
>>
>>
>>
>> On 3/30/11 5:32 PM, Vincenzo Piombo wrote:
>>
>> Gary,
>> "Virus" was joke of course, however I changed the name on gist.
>> I doubt it is a hotcocoa issue, but as soon as I have some time will try
>> to replicate it with an IB version.
>>
>>  What do you mean by "where you got it" ?  The code is mine, I was trying
>> to do something along the lines of this
>> http://www.nongnu.org/gstutorial/en/ch13s04.html.
>>
>>
>>  By the way, do you know where can I find a working drag&drop macruby
>> example ?
>>
>>  Enzo
>>
>>  On Wed, Mar 30, 2011 at 11:17 PM, Gary Weaver wrote:
>>
>>>  Enzo,
>>>
>>> It might be a translation issue, but I wouldn't call that a virus (it
>>> doesn't replicate, it is just something that freezes your computer). I
>>> wouldn't call it "Virus" in the gist either, if I were you.
>>>
>>> If it is a bug in HotCocoa, than it may be a bug (or at least undesired
>>> functionality if it freezes your Mac) in MacRuby or OS X, so you might want
>>> to dig deeper and provide more info on version (and where you got it, since
>>> it is in various places in GitHub) of HotCocoa.
>>>
>>> Thanks!
>>>  Gary
>>>
>>>
>>> On 3/29/11 5:27 PM, Vincenzo Piombo wrote:
>>>
>>> Hi all,
>>>  I was trying to add drag & drop capabilities to a hotcocoa program and
>>> stumbled into a problem that really puzzles me: a macruby program can freeze
>>> your mac !
>>>
>>>  I uploaded the buggy fragment here: https://gist.github.com/893300
>>>
>>>  Don't run it unless you are prepared to reboot your machine the hard
>>> way, don't even "Force quit" works.
>>> In the instructions I say to launch it twice, but every drag & drop with
>>> any app  after the crash freezes the app.
>>>
>>>
>>>  I'm using macruby 0.9, tried 0.10 but hotcocoa does not work with it
>>> (but this is another story !)
>>>
>>>  Hope someone can tell me if I did something wrong or found a bug
>>> somewhere.
>>>
>>>  Enzp
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> 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] [MacRuby] #181: hotcocoa command with Macruby 0.3, patches attached

2008-12-18 Thread MacRuby
#181: hotcocoa command with Macruby 0.3, patches attached
+---
 Reporter:  sandor.szu...@… |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  critical|   Milestone:  MacRuby 0.3  
Component:  MacRuby |Keywords:   
+---
 Hi,

 the hotcocoa commandline program doesn't work as expected.

 I get the following:

 {{{
 $ hotcocoa test
 
/Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa/template.rb:14:in
 `initialize:': No such file or directory - test/Rakefile (Errno::ENOENT)
 from
 
/Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa/template.rb:14:in
 `open'
 from
 
/Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa/template.rb:14:in
 `block in copy_to'
 from
 
/Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa/template.rb:9:in
 `each'
 from
 
/Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa/template.rb:9:in
 `copy_to'
     from /usr/local/bin/hotcocoa:23:in `'
 zsh: exit 1 hotcocoa test
 }}}

 Fix is attached.

 regards sandor
 --
 P.S. maybe the default priority souldn't be "blocker"

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/181>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] [MacRuby] #305: boilerplate hotcocoa project crashes

2009-08-08 Thread MacRuby
#305: boilerplate hotcocoa project crashes
+---
 Reporter:  craft...@…  |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  blocker |   Milestone:  MacRuby 0.5  
Component:  MacRuby |Keywords:  hotcocoa crash   
+---

Comment(by d...@…):

 Thanks, patch works.

 But same thing with LayoutOptions, Hotcocoa:: must be added for running an
 new skeleton hotcocoa app

 view.rb, line 39:

 {{{
   @layout = LayoutOptions.new(self, options)
 }}}

 to

 {{{
   @layout = HotCocoa::LayoutOptions.new(self, options)
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/305#comment:5>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] 0.5 status... good to go!

2010-01-31 Thread Matt Aimonetti
Hans, you seem to be on version 0.6 (trunk), please open a ticket against
0.6 as this is not a problem in 0.5 and therefore should not delay the
release:

$ macruby -ve "p MACRUBY_REVISION"
MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64]
"svn revision 3380 from
http://svn.macosforge.org/repository/ruby/MacRuby/branches/0.5";

$ sudo macgem install hotcocoa
Password:
Successfully installed hotcocoa-0.5.1
1 gem installed

Thanks,

- Matt



On Sun, Jan 31, 2010 at 6:01 PM, Hans-Georg Höhne
wrote:

> On Sun, Jan 31, 2010 at 11:50 PM, Laurent Sansonetti <
> [email protected]> wrote:
>
>> On Jan 31, 2010, at 2:35 PM, Laurent Sansonetti wrote:
>>
>>  - HotCocoa support is back! Also, HotCocoa is no longer developed in the
>>> MacRuby repository but on GitHub:http://github.com/richkilmer/hotcocoa.
>>> We hope that by being on GitHub, HotCocoa will evolve faster. Be sure to do
>>> a 'macrake install hotcocoa'.
>>>
>>
>> And I obviously meant: macgem install hotcocoa :-)
>>
>>
>>  Laurent
>>
>
> I can't install hotcocoa,
> Hans-Georg
>
> hg$ macruby -ve "p MACRUBY_REVISION"
> MacRuby version 0.6 (ruby 1.9.0) [universal-darwin10.0, x86_64]
> "svn revision 3385 from
> http://svn.macosforge.org/repository/ruby/MacRuby/trunk";
> hg$ macgem -v
> 1.3.5
> hg$ macgem install hotcocoa
> ERROR: While executing gem ... (TypeError)
> incompatible marshal file format (can't be read)
> format version 4.8 required; 31.139 given
> incompatible marshal file format (can't be read)
> format version 4.8 required; 31.139 given (TypeError)
>
>
>
> _______________
> 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] HotCocoa Tutorial ?

2009-04-07 Thread Matt Aimonetti
Salut Stéphane,

 I'd like to tackle documentation of HotCocoa when I come back from
vacation, I believe there was some talk about generating documentation
automatically but nothing concrete yet. We could def. at least add links to
the cocoa documentation in the hotcocoa mapping source.

However, having a 'getting started' guide for HotCocoa would be awesome. Now
that you have more experience, would you be interested in writing something?
Don't worry about typos or syntax, people can help out.

- Matt


2009/4/7 Stéphane Wirtel 

> Hi,
>
> With HotCocoa, I have created my first small application ;-) but I would
> like to know
> if the HotCocoa tutorial will come soon, because the first problem to learn
> HotCocoa is
> the missing documentation.
>
> So I have read the examples of MacRuby, but without explainations about the
> lib and config directories,
> it's not easy to understand the structure of a HotCocoa application.
>
> Thank you so much for MacRuby and HotCocoa
>
> Regards,
>
> Stephane
>
>
> ___
> 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] HotCocoa Tutorial ?

2009-04-08 Thread Matt Aimonetti
I'll be in Panamá for a few days, but I'll look at that when I'll come  
back next week. If you feel more comfortable writing your article in  
French, I'd be glad to get it translated.


-Matt

Sent from my iPhone

On Apr 8, 2009, at 2:19, Stéphane Wirtel   
wrote:



Hi Matt,

I can try to write something. Yesterday, I began to read the source  
code of the main examples from the macruby package.


During this week, I will continue to read and understand HotCocoa  
and after that, I should make a proposal on the mailing list.


Tell me if you are interested,

Stephane

On 08 Apr 2009, at 05:57, Matt Aimonetti wrote:


Salut Stéphane,

I'd like to tackle documentation of HotCocoa when I come back from  
vacation, I believe there was some talk about generating  
documentation automatically but nothing concrete yet. We could def.  
at least add links to the cocoa documentation in the hotcocoa  
mapping source.


However, having a 'getting started' guide for HotCocoa would be  
awesome. Now that you have more experience, would you be interested  
in writing something? Don't worry about typos or syntax, people can  
help out.


- Matt


2009/4/7 Stéphane Wirtel 
Hi,

With HotCocoa, I have created my first small application ;-) but I  
would like to know
if the HotCocoa tutorial will come soon, because the first problem  
to learn HotCocoa is

the missing documentation.

So I have read the examples of MacRuby, but without explainations  
about the lib and config directories,

it's not easy to understand the structure of a HotCocoa application.

Thank you so much for MacRuby and HotCocoa

Regards,

Stephane


_______________
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


Stéphane Wirtel
[email protected]



_______________
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] HotCocoa Tutorial ?

2009-04-08 Thread Stéphane Wirtel

Hi Matt,

I can try to write something. Yesterday, I began to read the source  
code of the main examples from the macruby package.


During this week, I will continue to read and understand HotCocoa and  
after that, I should make a proposal on the mailing list.


Tell me if you are interested,

Stephane

On 08 Apr 2009, at 05:57, Matt Aimonetti wrote:


Salut Stéphane,

 I'd like to tackle documentation of HotCocoa when I come back from  
vacation, I believe there was some talk about generating  
documentation automatically but nothing concrete yet. We could def.  
at least add links to the cocoa documentation in the hotcocoa  
mapping source.


However, having a 'getting started' guide for HotCocoa would be  
awesome. Now that you have more experience, would you be interested  
in writing something? Don't worry about typos or syntax, people can  
help out.


- Matt


2009/4/7 Stéphane Wirtel 
Hi,

With HotCocoa, I have created my first small application ;-) but I  
would like to know
if the HotCocoa tutorial will come soon, because the first problem  
to learn HotCocoa is

the missing documentation.

So I have read the examples of MacRuby, but without explainations  
about the lib and config directories,

it's not easy to understand the structure of a HotCocoa application.

Thank you so much for MacRuby and HotCocoa

Regards,

Stephane


___________
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


Stéphane Wirtel
[email protected]



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


Re: [MacRuby-devel] [MacRuby] #305: boilerplate hotcocoa project crashes

2009-08-08 Thread MacRuby
#305: boilerplate hotcocoa project crashes
+---
 Reporter:  craft...@…  |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  blocker |   Milestone:  MacRuby 0.5  
Component:  MacRuby |Keywords:  hotcocoa crash   
+---

Comment(by craft...@…):

 Further update. It appears that including HotCocoa into global namespace
 fixes the issue, must be some scoping related problem in HotCocoa when
 accessing the LayoutView class.

 Cheers,

 Marcus

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/305#comment:2>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] smaller macruby apps?

2010-02-26 Thread Gary Weaver

Looks like Isaac already added this option to HotCocoa:
http://github.com/richkilmer/hotcocoa/issues#issue/7
http://github.com/isaac/hotcocoa/commit/3c3db96fa8b9228c2ef7b65a65122ff0a53142dc

(add "stdlib: false" to config/build.yml)

but looks like that hasn't been released yet (not in HotCocoa 0.5.1 from 
what I can tell)?


Is there possibility of a release for HotCocoa soon that might contain 
Isaac's fix?


Also saw a related ticket in MacRuby, not for HotCocoa but for embed 
target ( http://www.macruby.org/trac/ticket/361 ) that was fixed in 0.5, 
and it was mentioned that further improvements would be made in the near 
future to reduce the size of embedded macruby apps.


Are there plans to include improvements in embedded app size as part of 
MacRuby also for 0.6 (I don't know whether those would help HotCocoa app 
size or not in addition to Isaac's fix, but just curious)?


Thanks!
Gary


Gary Weaver wrote:
In the MacRuby tutorial ( 
http://www.macruby.org/documentation/tutorial.html ) there is a brief 
section about Embedding MacRuby in Your Application, and when you use 
HotCocoa's macrake deploy, it includes the framework also. However, 
the smallest resulting app in MacRuby 0.5/HotCocoa 0.5.1 is roughly 
150MB in size, which is much, much larger than the average small 
application on a Mac.


Isaac Kearse noted a way to get around this in his post "Packaging A 
HotCocoa Application" ( 
http://isaac.kearse.co.nz/2010/02/01/packaging-hotcocoa/ ). I was just 
thinking, it would be nice if the same or similar method could be 
added to HotCocoa's deploy and/or possibly documented in the MacRuby 
tutorial as an alternative?


Thanks!
Gary

___________
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] #169: [HotCocoa] status_item mapping doesn't appear to work

2008-11-29 Thread MacRuby
#169: [HotCocoa] status_item mapping doesn't appear to work
+---
 Reporter:  [EMAIL PROTECTED] |   Owner:  [EMAIL PROTECTED] 
   
 Type:  defect  |  Status:  new   
 Priority:  minor   |   Milestone:
Component:  MacRuby |Keywords:
+---

Comment(by [EMAIL PROTECTED]):

 The code works if either:
 * "include HotCocoa" is done not in a class, but at the top level (it's
 probably why this was not seen earlier). It works because then all the
 HotCocoa methods become available to '''all''' objects
 * you add "include HotCocoa" in HotCocoa::Mappings::Mapper as
 alloc_with_options is run on an instance of HotCocoa::Mappings::Mapper

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/169#comment:4>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] [MacRuby] #305: boilerplate hotcocoa project crashes

2009-08-07 Thread Vincent Isambart

Hi,

When creating a boilerplate hotcocoa project, running macrake builds  
the

project and creates the resultant foo.app file, however this .app file
crashes and fails to start.
(...)
Any thoughts how to remedy?
Work around: move the 'include HotCocoa' from the Application class to  
the toplevel


require 'hotcocoa'
include HotCocoa
class Application

instead of

require 'hotcocoa'
class Application
  include HotCocoa

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


Re: [MacRuby-devel] 0.5 status... good to go!

2010-01-31 Thread Hans-Georg Höhne
On Sun, Jan 31, 2010 at 11:50 PM, Laurent Sansonetti
wrote:

> On Jan 31, 2010, at 2:35 PM, Laurent Sansonetti wrote:
>
>  - HotCocoa support is back! Also, HotCocoa is no longer developed in the
>> MacRuby repository but on GitHub:http://github.com/richkilmer/hotcocoa.
>> We hope that by being on GitHub, HotCocoa will evolve faster. Be sure to do
>> a 'macrake install hotcocoa'.
>>
>
> And I obviously meant: macgem install hotcocoa :-)
>
>
>  Laurent
>

I can't install hotcocoa,
Hans-Georg

hg$ macruby -ve "p MACRUBY_REVISION"
MacRuby version 0.6 (ruby 1.9.0) [universal-darwin10.0, x86_64]
"svn revision 3385 from
http://svn.macosforge.org/repository/ruby/MacRuby/trunk";
hg$ macgem -v
1.3.5
hg$ macgem install hotcocoa
ERROR: While executing gem ... (TypeError)
incompatible marshal file format (can't be read)
format version 4.8 required; 31.139 given
incompatible marshal file format (can't be read)
format version 4.8 required; 31.139 given (TypeError)
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] Using HotCocoa inside a MacRuby project?

2010-06-03 Thread Gabriel Gilder
Hi all,
I'm currently working on a MacRuby project and wanted to use HotCocoa for
the window layout features (i.e. circumvent Interface Builder).

However, if I include the following lines in rb_main.rb:
require 'rubygems'
require 'hotcocoa'

I get this error:
rb_main.rb:9:in `': uninitialized constant
MRAReferenceRenderer::KASTargetCurrent (NameError)

I'm using MacRuby 0.6 and HotCocoa 0.5.1.

Anybody know if it is possible to use HotCocoa within a MacRuby project?

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


[MacRuby-devel] HotCocoa Tutorial ?

2009-04-07 Thread Stéphane Wirtel

Hi,

With HotCocoa, I have created my first small application ;-) but I  
would like to know
if the HotCocoa tutorial will come soon, because the first problem to  
learn HotCocoa is

the missing documentation.

So I have read the examples of MacRuby, but without explainations  
about the lib and config directories,

it's not easy to understand the structure of a HotCocoa application.

Thank you so much for MacRuby and HotCocoa

Regards,

Stephane


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


Re: [MacRuby-devel] [MacRuby] #391: HotCocoa on_notification method stopped functioning in MacRuby 0.5 under Snow Leopard

2009-10-29 Thread MacRuby
#391: HotCocoa on_notification method stopped functioning in MacRuby 0.5 under
Snow Leopard
--+-
 Reporter:  tre...@…  |   Owner:  lsansone...@…   
 Type:  defect|  Status:  new 
 Priority:  blocker   |   Milestone:  
Component:  MacRuby   |Keywords:  HotCocoa on_notification
--+-

Comment(by hoffm...@…):

 # OS X 10.6.1
 # MacRuby 0.5 beta 1
 # MacRuby macruby_nightly-2009-10-28-1306.pkg

 # Simple script:

 require 'hotcocoa'
 include HotCocoa

 application do
  on_notification :named => 'NSWindowDidResizeNotification' do |
  notification|
puts "A window resized!"
  end
 end

 # ERROR LOG:
 # 2009-10-29 13:54:05.667 macruby[11291:903]
 __CFServiceControllerBeginPBSLoadForLocalizations timed out while talking
 to pbs

 regards,

 Robert

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/391#comment:3>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] Packaging a HotCocoa application without the standard library

2010-02-01 Thread isaac kearse
Thanks Matt,

Rich has already pulled in one my patches.

I opened up an issue to discuss embedding MacRuby without the standard
library here: http://github.com/richkilmer/hotcocoa/issues#issue/7

Cheers,
Isaac

On Mon, Feb 1, 2010 at 1:15 PM, Matt Aimonetti wrote:

> Thanks for the posts Isaac. HotCocoa is primarily maintained by Rich Kilmer
> and I am sure he would appreciate patches/suggestions and help.
> Your stopwatch example was great, thanks again.
>
> - Matt
>
> On Sun, Jan 31, 2010 at 12:55 PM, isaac kearse wrote:
>
>> Hey Guys,
>>
>> Just wrote a few blog posts about a HotCocoa app I just released, and how
>> I packaged it up:
>>
>> http://isaac.kearse.co.nz/2010/01/31/stopwatch/
>> http://isaac.kearse.co.nz/2010/02/01/packaging-hotcocoa/
>>
>> Interested in getting feedback about the way I embedded MacRuby & HotCocoa
>> in this app. (also feedback about the app is welcome)
>>
>> I was thinking about patching HotCocoa to enable this out of the box
>> because at the moment it seems to copy across the MacRuby framework instead
>> of using macruby_deploy.
>>
>> Cheers,
>> Isaac
>>
>> _______
>> 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] [MacRuby] #624: assigning a layout_view to a layout_view in a block and then assigning it to a window.view: fails

2010-02-25 Thread MacRuby
#624: assigning a layout_view to  a layout_view in a block and then assigning it
to a window.view: fails
+---
 Reporter:  pontus.stromd...@…  |   Owner:  lsansone...@…   

 Type:  defect  |  Status:  new 

 Priority:  minor   |   Milestone:  MacRuby 0.6 

Component:  MacRuby |Keywords:  hotcocoa layout_view 
setFrame superclass
+---
 I built MacRuby from the trunk and started a hotcocoa app that I've been
 working. I got this little thing:

 
/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/hotcocoa-0.5.1.1/lib/hotcocoa/layout_view.rb:321:in
 `setFrame:': super: no superclass method `setFrame' for
 # (NoMethodError)

 So far I've tracked the problem to the following:

 if I do this, (assume that I have the code from the start method in the
 hotcocoa tutorial)

 win.view = layout_view do |view1|
 view1 << layout_view
 end

 then I get the error above. (see first trace below)

 if I do this instead

 win.view = layout_view
 view2 = layout_view
 win.view << view2

 everything is well, except for some NSLock thing (see second trace below).
 This does not happen with 0.5. I used both the hotcocoa 0.5.1 gem
 as well as the current master from dj2. Running snow leopard on a macbook
 pro.

 pontus> macruby -v
 MacRuby version 0.6 (ruby 1.9.0) [universal-darwin10.0, x86_64]


 === First trace ===
 pontus> macruby test.rb
 2010-02-25 11:41:22.388 macruby[73985:903] *** -[NSLock unlock]: lock
 ( '(null)') unlocked when not locked
 2010-02-25 11:41:22.391 macruby[73985:903] *** Break on _NSLockError() to
 debug.
 
/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/hotcocoa-0.5.1.1/lib/hotcocoa/layout_view.rb:321:in
 `setFrame:': super: no superclass method `setFrame' for
 # (NoMethodError)
 from
 
/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/hotcocoa-0.5.1.1/lib/hotcocoa/layout_view.rb:260:in
 `frame=:'
 from
 
/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/hotcocoa-0.5.1.1/lib/hotcocoa/layout_view.rb:372:in
 `block'
 from
 
/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/hotcocoa-0.5.1.1/lib/hotcocoa/layout_view.rb:364:in
 `relayout!'
 from
 
/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/hotcocoa-0.5.1.1/lib/hotcocoa/layout_view.rb:326:in
 `setFrameSize:'
 from
 
/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/hotcocoa-0.5.1.1/lib/hotcocoa/layout_view.rb:321:in
 `setFrame:'
 from
 
/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/hotcocoa-0.5.1.1/lib/hotcocoa/mappings/window.rb:71:in
 `view=:'
 from
 /Users/pontus/Workcopies/spike/macruby/setFrame_Fail/test.rb:9:in `block'
     from
 
/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/hotcocoa-0.5.1.1/lib/hotcocoa/mapper.rb:43:in
 `block'
 from
 /Users/pontus/Workcopies/spike/macruby/setFrame_Fail/test.rb:7:in `block'
 from
 
/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/hotcocoa-0.5.1.1/lib/hotcocoa/mappings/application.rb:8:in
 `handle_block:'
 from
 
/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/hotcocoa-0.5.1.1/lib/hotcocoa/mapper.rb:43:in
 `block'
 from
 /Users/pontus/Workcopies/spike/macruby/setFrame_Fail/test.rb:1:in `'
 pontus> macruby test.rb

 === Second trace ===

 2010-02-25 11:42:41.826 macruby[73989:903] *** -[NSLock unlock]: lock
 ( '(null)') unlocked when not locked
 2010-02-25 11:42:41.828 macruby[73989:903] *** Break on _NSLockError() to
 debug.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/624>
MacRuby <http://macruby.org/>

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


[MacRuby-devel] Using hotcocoa to create a project

2011-08-14 Thread Jeremy Smith
Hi,

when I try to create a project using hotcocoa as described in the MacRuby
Postie tutorial http://www.macruby.org/hotcocoa/getting_started.html

 $ hotcocoa Postie

I get this error:

/Users/jeremysmith/.rvm/gems/ruby-1.9.2-p180/gems/hotcocoa-0.5.1/lib/hotcocoa/template.rb:20:in
`gsub!': invalid byte sequence in UTF-8 (ArgumentError)

Any ideas?

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


Re: [MacRuby-devel] 0.5 status... good to go!

2010-01-31 Thread Laurent Sansonetti

On Jan 31, 2010, at 2:35 PM, Laurent Sansonetti wrote:

- HotCocoa support is back! Also, HotCocoa is no longer developed in  
the MacRuby repository but on GitHub:http://github.com/richkilmer/ 
hotcocoa. We hope that by being on GitHub, HotCocoa will evolve  
faster. Be sure to do a 'macrake install hotcocoa'.


And I obviously meant: macgem install hotcocoa :-)

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


Re: [MacRuby-devel] Should the HotCocoa example on the home page run on 0.5 beta 2?

2009-12-22 Thread Laurent Sansonetti
This is unfortunately a well-known problem. Full HotCocoa support is  
expected for the next (and hopefully last) beta.


Stay tuned :)

Laurent

On Dec 19, 2009, at 3:13 AM, B. Ohr wrote:



I found the same error yesterday while debugging one of my broken  
HotCocoa Apps.



Am 19.12.2009 um 07:10 schrieb Jeremy Voorhis:

I've just installed the latest MacRuby beta binaries on my new  
macbook, and this happens:


Jeremy-Voorhiss-MacBook-Pro:~ jvoorhis$ cat test.rb
require 'hotcocoa'
include HotCocoa
application do |app|
 win = window :size => [100,50]
 b = button :title => 'Hello'
 b.on_action { puts 'World!' }
 win << b
end
Jeremy-Voorhiss-MacBook-Pro:~ jvoorhis$ macruby --version
MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64]
Jeremy-Voorhiss-MacBook-Pro:~ jvoorhis$ macruby test.rb
2009-12-18 22:06:45.181 macruby[76926:903] *** -[NSLock unlock]:  
lock ( '(null)') unlocked when not locked
2009-12-18 22:06:45.184 macruby[76926:903] *** Break on _NSLockError 
() to debug.
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/ 
1.9.0/hotcocoa/mappings/application.rb:9:in `handle_block:':  
undefined method `on_action' for 0:NSButton (NoMethodError)

from core:in `application:'
from test.rb:2:in `'

I've hardly used HotCocoa at all. This might have already been  
covered in some other thread that I wasn't paying attention to. If  
not, I can file something in trac.


Thanks,

Jeremy
___
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] [MacRuby] #209: HotCocoa problems in trunk (with patch)

2009-01-16 Thread MacRuby
#209: HotCocoa problems in trunk (with patch)
+---
 Reporter:  vincent.isamb...@…  |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  major   |   Milestone:   
Component:  MacRuby |Keywords:   
+---
 HotCocoa does not work in the latest trunk because of the fix in the
 namespacing issue.
 Attached a patch to fix HotCocoa.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/209>
MacRuby <http://macruby.org/>

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


[MacRuby-devel] [MacRuby] #247: Hotcocoa Graphics tests don't run

2009-04-28 Thread MacRuby
#247: Hotcocoa Graphics tests don't run
+---
 Reporter:  dave.bald...@…  |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  major   |   Milestone:   
Component:  MacRuby |Keywords:  Hotcocoa Graphics
+---
 macruby image.rb

 generates errors: NameError: uninitialized constant
 HotCocoa::Graphics::Canvas::Graphics

 fixed by changing line

 include HotCocoa::Graphics

 to

 include HotCocoa

 include HotCocoa::Graphics

 Tests now run but give diff errors on image files.  Visually they look the
 same.

 SameNameError problem also exists in
 drawing.rb
 rope.rb
 text.rb

 drawing.rb gives an error:
 ": CGPDFContextEndPage: Don't nest calls to this function -- the
 results will not be what you expect."

 color.rb gives an error on one color conversion - looks like the tolerance
 needs to be widened a bit.

 I made a simple edit to iterate.rb to generate a pdf instead of a png (by
 changing Canvas.for_image to Canvas.for_pdf, and the OUTFILE extension to
 pdf but Preview fails to open it as the pdf file was invalid.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/247>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] Packaging a HotCocoa application without the standard library

2010-01-31 Thread Matt Aimonetti
Thanks for the posts Isaac. HotCocoa is primarily maintained by Rich Kilmer
and I am sure he would appreciate patches/suggestions and help.
Your stopwatch example was great, thanks again.

- Matt

On Sun, Jan 31, 2010 at 12:55 PM, isaac kearse wrote:

> Hey Guys,
>
> Just wrote a few blog posts about a HotCocoa app I just released, and how I
> packaged it up:
>
> http://isaac.kearse.co.nz/2010/01/31/stopwatch/
> http://isaac.kearse.co.nz/2010/02/01/packaging-hotcocoa/
>
> Interested in getting feedback about the way I embedded MacRuby & HotCocoa
> in this app. (also feedback about the app is welcome)
>
> I was thinking about patching HotCocoa to enable this out of the box
> because at the moment it seems to copy across the MacRuby framework instead
> of using macruby_deploy.
>
> Cheers,
> Isaac
>
> _______
> 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] status and prospects of HotCocoa?

2010-06-10 Thread dan sinclair
I've got a few tutorials and github apps that I've written with HotCocoa. I 
kinda stopped poking at it as I wasn't sure what the future held and decided to 
switch to straight up MacRuby/Cocoa for my last app.

Tutorials
* http://everburning.com/news/heating-up-with-hotcocoa-part-i/
* http://everburning.com/news/heating-up-with-hotcocoa-part-ii/
* http://everburning.com/news/heating-up-with-hotcocoa-part-iii/
* http://everburning.com/news/heating-up-with-hotcocoa-on-github/
* http://everburning.com/news/download-and-xml-parsing-with-hotcocoa/
* http://everburning.com/news/toolbars-with-hotcocoa/
* http://everburning.com/news/hotcocoa-and-core-data/

Github
* http://github.com/dj2/SilverLining   (Amazon EC2 Instance Browser)
* http://github.com/dj2/Rife (Start of a news reader)
* http://github.com/dj2/Postie (The app from the heating up 
tutorials)


dan


On 2010-06-10, at 2:05 PM, Gary Weaver wrote:

> These posts are a bit old now but:
> 
> Lots of examples linked to in this:
> * http://stufftohelpyouout.blogspot.com/2010/03/hotcocoamacruby-links.html
> 
> Some lame stuff I did in a few days:
> * 
> http://stufftohelpyouout.blogspot.com/2010/02/hotcocoa-app-to-track-time-on-tasks.html
> * 
> http://stufftohelpyouout.blogspot.com/2010/02/create-custom-icon-of-your-hotcocoa-app.html
> * 
> http://stufftohelpyouout.blogspot.com/2010/02/create-macruby-hotcocoa-app.html
> 
> This helped me get started in addition to the tutorial:
> * http://isaac.kearse.co.nz/2010/02/01/packaging-hotcocoa/
> (note: Isaac provided a patch to MacRuby to help with the file size thing)
> 
> The current story I think is that Rich Kilmer:
> http://wiki.github.com/richkilmer/hotcocoa/
> got pulled into other things and didn't have much time to keep it going, so 
> others have forked it I think:
> http://github.com/richkilmer/hotcocoa/network
> 
> Dan Sinclair had the most recent work on his branch of it but that was last 
> updated March 23, 2010:
> http://github.com/dj2/hotcocoa
> 
> I'm hoping Rich, Dan, and everyone else that is interested will continue work 
> on it. It was pretty cool!
> 
> Gary
> 
> 
> On 6/10/10 1:48 PM, Rich Morin wrote:
>> I'm curious about the status of HotCocoa.  Although it seems
>> like a very cool piece of technology, the activity level and
>> documentation status seem pretty minimal.  For example:
>> 
>>  *  http://www.macruby.org/trac/wiki/HotCocoaStatus shows
>> about thirty "partial" mappings; the rest are "unknown".
>> 
>>  *  http://www.macruby.org/trac/wiki/HotCocoaTutorial just
>> says "TODO".
>> 
>>  *  "MacRuby: The Definitive Guide" doesn't mention HotCocoa
>> in the Table of Contents.
>> 
>> If some folks here are using HotCocoa, I'd love to see some
>> examples, howtos, etc!
>> 
>> -r
>> 
> 
> ___
> 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] #305: boilerplate hotcocoa project crashes

2009-08-08 Thread MacRuby
#305: boilerplate hotcocoa project crashes
+---
 Reporter:  craft...@…  |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  blocker |   Milestone:  MacRuby 0.5  
Component:  MacRuby |Keywords:  hotcocoa crash   
+---

Comment(by craft...@…):

 Patch attached, searched for LayoutView that was not scoped within the
 HotCocoa module - with the patch applied the boilerplate code works as
 expected. Hope the patch is all ok, etc.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/305#comment:4>
MacRuby <http://macruby.org/>

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


[MacRuby-devel] [MacRuby] #206: HotCocoa: Mapped methods not available in subclass

2009-01-14 Thread MacRuby
#206: HotCocoa: Mapped methods not available in subclass
---+
 Reporter:  flat...@…  |   Owner:  lsansone...@…
 Type:  defect |  Status:  new  
 Priority:  blocker|   Milestone:  MacRuby 1.0  
Component:  MacRuby|Keywords:  hotcocoa 
---+
 I'm trying to build a custom NSBox in a MacRuby X-Code project. This is my
 code:

 {{{

 require 'hotcocoa'

 # make sure that this file is loaded.
 require 'hotcocoa/mappings/color'

 class MyBox < NSBox

   include HotCocoa::Behaviors

   def initWithFrame(frame)
 super
 setDefaults
   end

   def awakeFromNib
 setDefaults
   end

   def setDefaults
 setBoxType :NSBoxCustom
 setBorderType :NSLineBorder
 borderWidth = 2.0
 setBorderColor(color :red => 0.29, :green => 0.26, :blue => 0.55)
   end

 end
 }}}

 results in

 {{{

 MyBox.rb:18:in `setDefaults': undefined method `color' for
 # (NoMethodError)
 from .../.../My.app/Contents/Resources/MyBox.rb:7:in
 `initWithFrame'
 from
 .../.../MyApp/build/Release/My.app/Contents/Resources/rb_main.rb:24:in
 `NSApplicationMain'
 from
 .../.../MyApp/build/Release/My.app/Contents/Resources/rb_main.rb:24:in
 `'


 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/206>
MacRuby <http://macruby.org/>

_______
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 Gary Weaver
Isaac please forgive me for mispelling your name. I type too quickly sometimes!


On Apr 21, 2010, at 3:46 PM, Gary Weaver wrote:

> Daniel,
> 
> Thanks for sharing! Getting a MacRuby app down to 4.4 MB is definitely cool.
> 
> I'm in the minority here because I developed my HotCocoa app only with a text 
> editor (TextMate) and HotCocoa 0.5.1/MacRuby 0.5. I'm looking forward to 
> being able to continue to develop like that in the future, so solutions that 
> solely use macrake and things I could do in TextMate are what I'd be 
> interested in, and I'd bet that at least some of the community coming from 
> the Ruby/Rails side are probably in the same boat (would rather at least 
> start of more simply). And I completely understand that almost everyone who's 
> into MacRuby at the moment doesn't do much without xcode.
> 
> Have you tried doing this with a HotCocoa app?
> 
> I know that Isaas Kearse did some time back as noted here:
> http://isaac.kearse.co.nz/2010/02/01/packaging-hotcocoa/
> and he submitted a patch to HotCocoa here:
> http://github.com/richkilmer/hotcocoa/issues#issue/7
> http://github.com/isaac/hotcocoa/commit/3c3db96fa8b9228c2ef7b65a65122ff0a53142dc
> via a new config variable called stdlib. Setting it to false will not bundle 
> the standard library into the app.
> He provides an example project that uses this setting here:
> http://github.com/isaac/SafariRSS
> 
> But, with the standard library a HotCocoa MacRuby app is ~150MB at minimum 
> (MacRuby 0.5/HotCocoa 0.5.1 on Snow Leopard).
> 
> I don't want anyone to be distracted from making MacRuby itself better, but I 
> was just thinking that if there is an easy enough way to compile MacRuby to 
> machine code, perhaps someone could work on a way to get HotCocoa apps down 
> to size as well via similar mechanism. It would be nice to have a compiled 
> version of my HotCocoa app, including the standard library, such that it is a 
> much smaller size. I understand that this is very likely not a small task.
> 
> Basically it would be nice if, once people started having time to worry about 
> such things, more time was spent on HotCocoa to make it better, and a small 
> part of that might be making the generated app size smaller without having to 
> exclude the standard library.
> 
> Hope this helps!
> Gary
> 
> 
> On Apr 21, 2010, at 12:47 PM, Daniel Lopes wrote:
> 
>> 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 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] HotCocoa Part I

2008-11-12 Thread Eloy Duran

Hi Rich,

That seems like a sensible list to me.
Thanks for the info!

- Eloy

On Nov 12, 2008, at 4:10 PM, Richard Kilmer wrote:



On Nov 12, 2008, at 9:16 AM, Richard Kilmer wrote:


All,

As the main author of HotCocoa let me chime in on what I see its  
main purpose is.


In a nutshell here is my 5 second primary definition:

"HotCocoa is an idiomatic Ruby API that simplifies the  
configuration and wiring together of complex ObjC/Cocoa classes."


I realize this will not be all things to all people, and that some  
may not see the much value in this. I do, and I think that HotCocoa  
should NOT try and be all things to all people.  Let me even get  
more specific.  I don't think that HotCocoa should strive to  
contain simplifications for all frameworks in Cocoa.


If core audio needs to be simplified though a wonderful Ruby API  
then it should be done with a wonderful Ruby API, but that is not  
HotCocoa, its a core audio MacRuby library.  Something that uses  
HotCocoa could also use that wonderfully simplified core audio  
library.  To try and say every simplified use of ObjC frameworks is  
included in HotCocoa creates a truly unwieldy beast.


In ObjC/Cocoa here are the common patterns I see that can be  
simplified with HotCocoa:


* Instance configuration
* Delegation
* KVO
* Object wiring/containment/etc
* Data sources
* App building


One addition I forgot to mention:

* Layout management




I will follow up with an email that explains these in more detail  
and provides examples.


Best,

Rich

_______
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] Using HotCocoa inside a MacRuby project?

2010-06-08 Thread Gabriel Gilder
I figured out what was going on here — the error was actually caused by
having a framework (appscript) with a missing BridgeSupport folder. Not sure
why hotcocoa was triggering this problem, but in any case now that I have
the correct framework loaded everything seems to be fine. Sorry for the
bother!

-Gabriel


On Thu, Jun 3, 2010 at 4:32 PM, Gabriel Gilder wrote:

> Hi all,
> I'm currently working on a MacRuby project and wanted to use HotCocoa for
> the window layout features (i.e. circumvent Interface Builder).
>
> However, if I include the following lines in rb_main.rb:
> require 'rubygems'
> require 'hotcocoa'
>
> I get this error:
> rb_main.rb:9:in `': uninitialized constant
> MRAReferenceRenderer::KASTargetCurrent (NameError)
>
> I'm using MacRuby 0.6 and HotCocoa 0.5.1.
>
> Anybody know if it is possible to use HotCocoa within a MacRuby project?
>
> Thanks,
> -Gabriel
>
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Hotcocoa documentation

2010-10-02 Thread Rob Gleeson

Interface Builder? :-)

Rob



On 2 Oct 2010, at 13:48, Michael Sokol wrote:

> Thank you for the answer, I feel a bit disappointed though... I loved the 
> simplicity of Hotcocoa.
> 
> Is there any other library/layer on top of Macruby that helps simplifying the 
> creation of UI?
> 
> Michael
> 
> On Sat, Oct 2, 2010 at 3:14 AM, Felix Holmgren  
> wrote:
> Ok, interesting to hear at least that it wasn't deemed unworkable or
> somehow a faulty approach.
> 
> /F
> 
> 2010/10/2 Vincent Isambart :
> >
> >> Is there some information somewhere about why Hotcocoa was dropped? If
> >> not, a few words of explanation here would be appreciated! Hotcocoa
> >> does stand out as a pretty nifty gadget, although I can imagine it's a
> >> lot of work to maintain it.
> >
> >
> > I don't think there's information about it anywhere, but only because 
> > there's nothing much to say.
> >
> > HotCocoa was started by Rich Kilmer, and I can't speak for him but from 
> > what I saw he's very busy and doesn't have time to work on HotCocoa. In 
> > fact most of the work he did on HotCocoa was done when he was attending 
> > various conferences.
> >
> > And well after Rich stopped working on it no one decided to continue 
> > working on it, that's pretty much it. As Laurent said it's opensource, it's 
> > on Github so if anyone wants to work on it, just fork it!
> >
> > There was a time when HotCocoa was included in MacRuby, but there's no 
> > reason to continue including something that's not maintained anymore, and 
> > there's already enough work to do on MacRuby itself.
> ___
> 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] [MacRuby] #169: [HotCocoa] status_item mapping doesn't appear to work

2008-11-29 Thread MacRuby
#169: [HotCocoa] status_item mapping doesn't appear to work
+---
 Reporter:  [EMAIL PROTECTED] |   Owner:  [EMAIL PROTECTED] 
   
 Type:  defect  |  Status:  new  
 Priority:  minor   |   Milestone:   
Component:  MacRuby |Keywords:   
+---
 I'm porting a little single file rubycocoa app to check out hotcocoa but
 ran into a little problem with the code below:

 {{{
 require 'hotcocoa'

 class Application
   include HotCocoa

   def start
 application :name => "MacMenu" do |app|
   app.delegate = self
   @item = status_item
   [EMAIL PROTECTED] = status_bar.statusItemWithLength 
NSVariableStatusItemLength
   @item.title = "MacMenu"
 end
   end
 end

 Application.new.start

 }}}

 The @item = status_item call causes the following error:

 {{{
 
/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.0/hotcocoa/mappings/status_item.rb:6:in
 `alloc_with_options': undefined local variable or method `status_bar' for
 # (NameError)
 from
 
/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.0/hotcocoa/mapper.rb:48:in
 `block in map_method'
 from hotcocoa_menu_test.rb:9:in `block in start'
 from
 
/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.0/hotcocoa/mappings/application.rb:9:in
 `call'
 from
 
/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.0/hotcocoa/mappings/application.rb:9:in
 `handle_block'
 from
 
/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.0/hotcocoa/mapper.rb:67:in
 `block in map_method'
 from hotcocoa_menu_test.rb:7:in `start'
 from hotcocoa_menu_test.rb:16:in `'
 }}}

 Using the commented out line instead everything is fine.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/169>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] [MacRuby] #305: boilerplate hotcocoa project crashes

2009-08-07 Thread MacRuby
#305: boilerplate hotcocoa project crashes
+---
 Reporter:  craft...@…  |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  blocker |   Milestone:  MacRuby 0.5  
Component:  MacRuby |Keywords:  hotcocoa crash   
+---

Comment(by lsansone...@…):

 I noticed this problem, it looks like HotCocoa is not yet working with
 experimental^Wtrunk yet!

 This looks like yet another constant lookup problem.

 Any help to reduce this problem into a small ruby expression would be
 welcome :-)

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/305#comment:1>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] I don't normally plug the mailing list, but when I do it's for gemaholics

2011-06-20 Thread Mark Rada
Except for the horrendous performance hit with MacRuby, I think more gems is 
generally a better thing.

I wouldn't say HotCocoa is dead, though as Josh mentioned, I think its best 
uses have changed---there is still a lot of useful stuff in HotCocoa and the 
project is still be maintained (more or less).

At a high level, I think a lot of MacRuby gems would probably fit with what 
HotCocoa was trying to do (simplify the initialization and configuration of 
Cocoa objects), but at a technical level adding more mini-languages is probably 
not the best idea. 

Though, I have been able to move most of one of my other MacRuby gems into 
HotCocoa as a mapping, it was an easy fit since they operated similarly, and I 
was able to shed some complexity. I suspect that at least mynu could be 
mirrored in HotCocoa as well since there are already some similarities in how 
HotCocoa maps NSMenu.

That is just my two cents, though.



Mark Rada
[email protected]



On 2011-06-20, at 2:16 AM, Robert Lowe wrote:

> Ah, I understand.
> 
> I think rubygems is still the best source:
> 
> Try searching for `macruby`:
> 
> https://rubygems.org/search?utf8=%E2%9C%93&query=macruby
> 
> (For instance: mac_bacon is an awesome testing framework I just found, it 
> even supports loading nib files!)
> 
> Regards,
> - Rob
> 
> On 2011-06-20, at 1:58 AM, Joshua Ballanco wrote:
> 
>> I was thinking more in the vein of HotCocoa as a library full of Cocoa 
>> conveniences for MacRuby rather than HotCocoa as an Xcode replacement for 
>> app development. I feel like Rich originally started HotCocoa figuring it 
>> would replace Xcode, but I think that as time has progressed that is maybe a 
>> less needed goal that was originally thought?
>> 
>> Unfortunately, I have not had enough time to be as involved in HotCocoa as I 
>> would have liked. There is certainly nothing wrong with keeping these as 
>> independent gems. I do, however, think it might be useful to collect MacRuby 
>> specific gems (especially those that make app development easier) in a 
>> central list somewhere…
>> 
>> - Josh
>> 
>> On Sunday, June 19, 2011 at 7:17 PM, Robert Lowe wrote:
>> 
>>> Thanks!
>>> 
>>> I have not considered it. I think most developers are moving towards using 
>>> MacRuby and Xcode 4.
>>> 
>>> I don't see the need, maybe I'm misinformed. You can always just require 
>>> them as needed.
>>> 
>>> Can you think of a use case for it?
>>> 
>>> Regards,
>>> - Rob
>>> 
>>> On 2011-06-19, at 7:10 PM, Joshua Ballanco wrote:
>>> 
>>>> Very cool stuff, Rob!
>>>> 
>>>> Have you considered potentially merging Hotkeys and mynu into HotCocoa?
>>>> 
>>>> - Josh
>>>> 
>>>> On Friday, June 17, 2011 at 3:09 PM, Robert Lowe wrote:
>>>> 
>>>>> Hi guys,
>>>>> 
>>>>> Hope you enjoy em! All of these are on rubygems now:
>>>>> 
>>>>> Wrapping NSMXL (Credit to Wilson Lee / kourge): 
>>>>> https://github.com/RobertLowe/ayril
>>>>> 
>>>>> Global Hotkeys: 
>>>>> https://github.com/RobertLowe/hotkeys
>>>>> 
>>>>> Systembar Menu DSL: 
>>>>> https://github.com/RobertLowe/mynu
>>>>> 
>>>>> It should be noted that these all work fine from inside xcode 4 too.
>>>>> 
>>>>> If you find any edge cases let me know, I'll gladly take care of them. 
>>>>> I'm still new to the macruby community / cocoa.
>>>>> 
>>>>> Transmission over,
>>>>> - Rob
>>>>> 
>>>>> ___
>>>>> MacRuby-devel mailing list
>>>>> [email protected] 
>>>>> (mailto:[email protected])
>>>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>> 
>>>> 
>>>> _______
>>>> MacRuby-devel mailing list
>>>> [email protected] 
>>>> (mailto:[email protected])
>>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>> 
>>> ___
>>> MacRuby-devel mailing list
>>> [email protected] 
>>> (mailto:[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] #247: Hotcocoa Graphics tests don't run

2010-01-04 Thread MacRuby
#247: Hotcocoa Graphics tests don't run
+---
 Reporter:  dave.bald...@…  |Owner:  lsansone...@…
 Type:  defect  |   Status:  closed   
 Priority:  major   |Milestone:  MacRuby 0.5  
Component:  MacRuby |   Resolution:  fixed
 Keywords:  Hotcocoa Graphics   |  
+---
Changes (by lsansone...@…):

  * status:  new => closed
  * resolution:  => fixed
  * milestone:  => MacRuby 0.5


Comment:

 HotCocoa/graphics/demo.rb as of r3180 works as expected. I suspect this
 bug was fixed a long time ago, so I'm closing this entry. Let us know if
 it's still broken for you.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/247#comment:1>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] HotCocoa status update

2009-05-28 Thread Matt Aimonetti
Thanks Dan for all your great patches. Most of the discussion is done on
this list or on a one to one basis via IM (but we are trying to keep that to
a minimum tho).

- Matt

On Thu, May 28, 2009 at 11:09 PM, dan sinclair  wrote:

> I've been shooting around in the dark with HotCocoa for a few days. Adding
> things here and there. Is there a priority list of things to do, or
> everything is equally good?
>
> Is most HotCocoa discussion done on this list and in IRC?
>
> Thanks,
> dan
>
>
>
>
> On May 29, 2009, at 1:55 AM, Matt Aimonetti wrote:
>
>  Here is a quick update to let you know the progress made on HotCocoa in
>> trunk.
>>
>> * new MVC template. The template in HotCocoa 0.4 is great but as soon as
>> you try to build a rich/complicated GUI, you start having to build your own
>> "view" system. We spent some time designing a new templating solution for
>> HotCocoa. You will still be able to use the one file type approach provided
>> by 0.4, but we are trying to set some conventions for people in need of a
>> MVC approach.
>> Having well defined conventions makes delegation and code organization
>> easier.
>>
>> * Documentation app. We started working on a documentation app to provide
>> Cocoa and HotCocoa documentation. The source code is available at
>> http://github.com/mattetti/macruby-doc-app/ but will soon be moved to
>> trunk. To play with the app, you need to have the latest version of trunk
>> built on your machine. The application uses the Cocoa docsets and parses the
>> HotCocoa mappings to show available methods, delegations and cocoa doc.
>> Most of the basic functionalities are available, we are now going to spend
>> some time making the app look good and intuitive.
>>
>> * HotCocoa mappings. With more and more people using HotCocoa, mappings
>> are being improved and extended.
>>
>> Todos:
>>
>> * Better integration between Interface Builder and HotCocoa. Imagine
>> defining a startup view using Interface Builder and then manage everything
>> else using HotCocoa using the newly designed HotCocoa MVC conventions. We
>> have some ideas on how to do that in a transparent way but more experiments
>> are required.
>>
>> * Tests. We would like to see HotCocoa being better tested and also
>> provide a decent testing solution for developers.
>>
>> * Rucola integration. Rucola is a very interesting and inspiring RubyCocoa
>> project. We are looking forward to work closely with the Eloy Duran to offer
>> the same type of experience for MacRuby/HotCocoa.
>>
>> * Wrap commonly used obj-c libraries and document the process.
>>
>>
>> As usual, your help would be appreciated.
>>
>> - 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] Should the HotCocoa example on the home page run on 0.5 beta 2?

2009-12-19 Thread B. Ohr

I found the same error yesterday while debugging one of my broken HotCocoa Apps.


Am 19.12.2009 um 07:10 schrieb Jeremy Voorhis:

> I've just installed the latest MacRuby beta binaries on my new macbook, and 
> this happens:
> 
> Jeremy-Voorhiss-MacBook-Pro:~ jvoorhis$ cat test.rb 
> require 'hotcocoa'
> include HotCocoa
> application do |app|
>   win = window :size => [100,50]
>   b = button :title => 'Hello'
>   b.on_action { puts 'World!' }
>   win << b
> end
> Jeremy-Voorhiss-MacBook-Pro:~ jvoorhis$ macruby --version
> MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64]
> Jeremy-Voorhiss-MacBook-Pro:~ jvoorhis$ macruby test.rb 
> 2009-12-18 22:06:45.181 macruby[76926:903] *** -[NSLock unlock]: lock 
> ( '(null)') unlocked when not locked
> 2009-12-18 22:06:45.184 macruby[76926:903] *** Break on _NSLockError() to 
> debug.
> /Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/1.9.0/hotcocoa/mappings/application.rb:9:in
>  `handle_block:': undefined method `on_action' for 0:NSButton (NoMethodError)
>   from core:in `application:'
>   from test.rb:2:in `'
> 
> I've hardly used HotCocoa at all. This might have already been covered in 
> some other thread that I wasn't paying attention to. If not, I can file 
> something in trac.
> 
> Thanks,
> 
> Jeremy
> ___
> 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] hotcocoa/graphics

2009-12-04 Thread Laurent Sansonetti

Hi Juergen,

Currently MacRuby trunk doesn't run HotCocoa at 100%. We intend to  
fully support it in the next (and hopefully last) beta release.


Laurent

On Dec 3, 2009, at 8:10 AM, Juergen Dabel wrote:


Today I tried with the newest nightly build and I got:

dab:~ jdabel$ cd /Developer/Examples/Ruby/MacRuby/HotCocoa/graphics
dab:graphics jdabel$ macruby particle.rb
Segmentation fault
dab:graphics jdabel$ macruby demo.rb
2009-12-03 17:03:51.063 macruby[153:903] *** -[NSLock unlock]: lock  
( '(null)') unlocked when not locked
2009-12-03 17:03:51.065 macruby[153:903] *** Break on _NSLockError()  
to debug.
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/ 
1.9.0/hotcocoa/mappings/application.rb:9:in `handle_block:':  
undefined method `on_action' for 0:NSSlider (NoMethodError)

from core:in `application:'
from demo.rb:1:in `'
dab:graphics jdabel$

My Mac:
Modellname: MacBook
  Modell-Identifizierung:   MacBook5,1
  Prozessortyp: Intel Core 2 Duo
  Prozessorgeschwindigkeit: 2,4 GHz
  Anzahl der Prozessoren:   1
  Gesamtzahl der Kerne: 2
  L2-Cache: 3 MB
  Speicher:     4 GB

I would choose MacRuby for Hotcocoa!!!

Juergen Dabel
Schrobenhausen
Germany
___________
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] Experimental branch status

2009-05-28 Thread dan sinclair


2. Writing tutorials / sample code for MacRuby, since anyone who's  
new to the project needs a place to start.




Speaking of tutorials, I created a couple tutorials on getting started  
with HotCocoa. They're available at:


  http://everburning.com/news/heating-up-with-hotcocoa-part-i/
  http://everburning.com/news/heating-up-with-hotcocoa-part-iI/
  http://everburning.com/news/heating-up-with-hotcocoa-part-iII/
  http://everburning.com/news/heating-up-with-hotcocoa-on-github/


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


[MacRuby-devel] Packaging a HotCocoa application without the standard library

2010-01-31 Thread isaac kearse
Hey Guys,

Just wrote a few blog posts about a HotCocoa app I just released, and how I
packaged it up:

http://isaac.kearse.co.nz/2010/01/31/stopwatch/
http://isaac.kearse.co.nz/2010/02/01/packaging-hotcocoa/

Interested in getting feedback about the way I embedded MacRuby & HotCocoa
in this app. (also feedback about the app is welcome)

I was thinking about patching HotCocoa to enable this out of the box because
at the moment it seems to copy across the MacRuby framework instead of using
macruby_deploy.

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


Re: [MacRuby-devel] HotCocoa Part I

2008-11-12 Thread Richard Kilmer


On Nov 12, 2008, at 9:16 AM, Richard Kilmer wrote:


All,

As the main author of HotCocoa let me chime in on what I see its  
main purpose is.


In a nutshell here is my 5 second primary definition:

"HotCocoa is an idiomatic Ruby API that simplifies the configuration  
and wiring together of complex ObjC/Cocoa classes."


I realize this will not be all things to all people, and that some  
may not see the much value in this. I do, and I think that HotCocoa  
should NOT try and be all things to all people.  Let me even get  
more specific.  I don't think that HotCocoa should strive to contain  
simplifications for all frameworks in Cocoa.


If core audio needs to be simplified though a wonderful Ruby API  
then it should be done with a wonderful Ruby API, but that is not  
HotCocoa, its a core audio MacRuby library.  Something that uses  
HotCocoa could also use that wonderfully simplified core audio  
library.  To try and say every simplified use of ObjC frameworks is  
included in HotCocoa creates a truly unwieldy beast.


In ObjC/Cocoa here are the common patterns I see that can be  
simplified with HotCocoa:


* Instance configuration
* Delegation
* KVO
* Object wiring/containment/etc
* Data sources
* App building


One addition I forgot to mention:

* Layout management




I will follow up with an email that explains these in more detail  
and provides examples.


Best,

Rich

_______
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] HotCocoa subclassing NSView

2009-02-20 Thread Matt Aimonetti
Oops, I guess the email sent from my iphone never left my 'holy' device.

Rich, what do you think about adding a new HotCocoa CustomView mapping since
subclassing NSView seems to be pretty common.

- Matt

On Tue, Feb 17, 2009 at 10:47 AM, Richard Kilmer  wrote:

> They do inherit constants, custom methods, etc (see lib/hotcocoa/mapper.rb,
> NOTE: ugly file right now, is a target for refactor)
> They are modules and those modules are mixed in.
> Best,
>
> Rich
>
> On Feb 17, 2009, at 12:46 PM, Matt Aimonetti wrote:
>
> Thanks Rich, but if I do what you recommended, I guess I would not be able
> to use all the NSView extra stuff defined by the existing NSView mapping
> (constants, custom methods etc..).
>
> Wouldn't be better to make each mapping a mixin? That would allow us to
> reuse some default settings and subclassing a mapped class would give us all
> the mapping goodies.
>
> - Matt
>
>
>
> On Tue, Feb 17, 2009 at 4:33 AM, Richard Kilmer wrote:
>
>> This is how I would do it:
>>
>> class MyNewView < NSView
>>
>>  def drawRect(rect)
>>  end
>>
>> end
>>
>> HotCocoa::Mappings.map :my_new_view => :"MyNewView" do
>>  defaults :frame => DefaultEmptyRect, :layout => {}
>>
>>  def init_with_options(view, options)
>>view.initWithFrame options.delete(:frame)
>>  end
>> end
>>
>> Then in your code you can just use it like any HotCocoa mapped class:
>>
>> my_new_view :frame => [0,0,10,10]
>>
>> etc.
>>
>> -rich
>>
>>
>>
>> On Feb 17, 2009, at 4:15 AM, Matt Aimonetti wrote:
>>
>>  I'm working on a new HotCocoa sample and I need to subclass NSView to
>>> override drawRect and add few more methods.
>>> I would like to be able to reuse all the goodies from HotCocoa and the
>>> view helper, what's the best way to do that?
>>>
>>> -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
>
>
>
> ___
> 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] Hotcocoa documentation

2010-10-02 Thread Michael Sokol
Thank you for the answer, I feel a bit disappointed though... I loved the
simplicity of Hotcocoa.

Is there any other library/layer on top of Macruby that helps simplifying
the creation of UI?

Michael

On Sat, Oct 2, 2010 at 3:14 AM, Felix Holmgren wrote:

> Ok, interesting to hear at least that it wasn't deemed unworkable or
> somehow a faulty approach.
>
> /F
>
> 2010/10/2 Vincent Isambart :
> >
> >> Is there some information somewhere about why Hotcocoa was dropped? If
> >> not, a few words of explanation here would be appreciated! Hotcocoa
> >> does stand out as a pretty nifty gadget, although I can imagine it's a
> >> lot of work to maintain it.
> >
> >
> > I don't think there's information about it anywhere, but only because
> there's nothing much to say.
> >
> > HotCocoa was started by Rich Kilmer, and I can't speak for him but from
> what I saw he's very busy and doesn't have time to work on HotCocoa. In fact
> most of the work he did on HotCocoa was done when he was attending various
> conferences.
> >
> > And well after Rich stopped working on it no one decided to continue
> working on it, that's pretty much it. As Laurent said it's opensource, it's
> on Github so if anyone wants to work on it, just fork it!
> >
> > There was a time when HotCocoa was included in MacRuby, but there's no
> reason to continue including something that's not maintained anymore, and
> there's already enough work to do on MacRuby itself.
> ___________
> 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] new example + new HotCocoa mapping

2009-02-27 Thread Laurent Sansonetti

Very nice work Matt :)

Is there a way to easily generate a patch against MacRuby trunk  
somewhere from your github repository?


Laurent

On Feb 27, 2009, at 3:17 PM, Matt Aimonetti wrote:


And here is a quick video showing the end result: 
http://screencast.com/t/5nAHRHQjL

100% Ruby (Well... 100% MacRuby with HotCocoa).

 -Matt

On Fri, Feb 27, 2009 at 2:02 PM, Matt Aimonetti > wrote:
MacRuby/HotCocoa sample with download, progress bar, scroll view/ 
text view and new HotCocoa mapping:   http://bit.ly/hThh9


I added a new mapping for NSProgressIndicator and put a pretty  
realistic example of what you would do in real life:


1. download a file
2. show the progress
3. display the content of the download in a scroll view

I hope this will end up being useful for people wanting to get  
started with HotCocoa but don't really know where to start.


- 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


Re: [MacRuby-devel] [MacRuby] #206: HotCocoa: Mapped methods not available in subclass

2009-01-22 Thread MacRuby
#206: HotCocoa: Mapped methods not available in subclass
---+
 Reporter:  flat...@…  |   Owner:  lsansone...@…
 Type:  defect |  Status:  new  
 Priority:  blocker|   Milestone:  MacRuby 1.0  
Component:  MacRuby|Keywords:  hotcocoa 
---+

Comment(by eloy.de.en...@…):

 Hey Alexander,

 Is this still the case for you?

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/206#comment:1>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] [MacRuby] #305: boilerplate hotcocoa project crashes

2009-08-26 Thread MacRuby
#305: boilerplate hotcocoa project crashes
+---
 Reporter:  craft...@…  |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  blocker |   Milestone:  MacRuby 0.5  
Component:  MacRuby |Keywords:  hotcocoa crash   
+---

Comment(by isaackea...@…):

 This ticket has been resolved for me with changeset:2366

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/305#comment:7>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] HotCocoa subclassing NSView

2009-02-17 Thread Richard Kilmer

This is how I would do it:

class MyNewView < NSView

  def drawRect(rect)
  end

end

HotCocoa::Mappings.map :my_new_view => :"MyNewView" do
  defaults :frame => DefaultEmptyRect, :layout => {}

  def init_with_options(view, options)
view.initWithFrame options.delete(:frame)
  end
end

Then in your code you can just use it like any HotCocoa mapped class:

my_new_view :frame => [0,0,10,10]

etc.

-rich


On Feb 17, 2009, at 4:15 AM, Matt Aimonetti wrote:

I'm working on a new HotCocoa sample and I need to subclass NSView  
to override drawRect and add few more methods.
I would like to be able to reuse all the goodies from HotCocoa and  
the view helper, what's the best way to do that?


-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


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

2010-04-21 Thread Gary Weaver
Daniel,

Thanks for sharing! Getting a MacRuby app down to 4.4 MB is definitely cool.

I'm in the minority here because I developed my HotCocoa app only with a text 
editor (TextMate) and HotCocoa 0.5.1/MacRuby 0.5. I'm looking forward to being 
able to continue to develop like that in the future, so solutions that solely 
use macrake and things I could do in TextMate are what I'd be interested in, 
and I'd bet that at least some of the community coming from the Ruby/Rails side 
are probably in the same boat (would rather at least start of more simply). And 
I completely understand that almost everyone who's into MacRuby at the moment 
doesn't do much without xcode.

Have you tried doing this with a HotCocoa app?

I know that Isaas Kearse did some time back as noted here:
http://isaac.kearse.co.nz/2010/02/01/packaging-hotcocoa/
and he submitted a patch to HotCocoa here:
http://github.com/richkilmer/hotcocoa/issues#issue/7
http://github.com/isaac/hotcocoa/commit/3c3db96fa8b9228c2ef7b65a65122ff0a53142dc
via a new config variable called stdlib. Setting it to false will not bundle 
the standard library into the app.
He provides an example project that uses this setting here:
http://github.com/isaac/SafariRSS

But, with the standard library a HotCocoa MacRuby app is ~150MB at minimum 
(MacRuby 0.5/HotCocoa 0.5.1 on Snow Leopard).

I don't want anyone to be distracted from making MacRuby itself better, but I 
was just thinking that if there is an easy enough way to compile MacRuby to 
machine code, perhaps someone could work on a way to get HotCocoa apps down to 
size as well via similar mechanism. It would be nice to have a compiled version 
of my HotCocoa app, including the standard library, such that it is a much 
smaller size. I understand that this is very likely not a small task.

Basically it would be nice if, once people started having time to worry about 
such things, more time was spent on HotCocoa to make it better, and a small 
part of that might be making the generated app size smaller without having to 
exclude the standard library.

Hope this helps!
Gary


On Apr 21, 2010, at 12:47 PM, Daniel Lopes wrote:

> 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 mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] HotCocoa subclassing NSView

2009-02-17 Thread Richard Kilmer
They do inherit constants, custom methods, etc (see lib/hotcocoa/ 
mapper.rb, NOTE: ugly file right now, is a target for refactor)


They are modules and those modules are mixed in.

Best,

Rich

On Feb 17, 2009, at 12:46 PM, Matt Aimonetti wrote:

Thanks Rich, but if I do what you recommended, I guess I would not  
be able to use all the NSView extra stuff defined by the existing  
NSView mapping (constants, custom methods etc..).


Wouldn't be better to make each mapping a mixin? That would allow us  
to reuse some default settings and subclassing a mapped class would  
give us all the mapping goodies.


- Matt



On Tue, Feb 17, 2009 at 4:33 AM, Richard Kilmer   
wrote:

This is how I would do it:

class MyNewView < NSView

 def drawRect(rect)
 end

end

HotCocoa::Mappings.map :my_new_view => :"MyNewView" do
 defaults :frame => DefaultEmptyRect, :layout => {}

 def init_with_options(view, options)
   view.initWithFrame options.delete(:frame)
 end
end

Then in your code you can just use it like any HotCocoa mapped class:

my_new_view :frame => [0,0,10,10]

etc.

-rich



On Feb 17, 2009, at 4:15 AM, Matt Aimonetti wrote:

I'm working on a new HotCocoa sample and I need to subclass NSView  
to override drawRect and add few more methods.
I would like to be able to reuse all the goodies from HotCocoa and  
the view helper, what's the best way to do that?


-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


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


Re: [MacRuby-devel] [MacRuby] #144: require of hotcocoa fails on case sensitive file system

2009-02-23 Thread MacRuby
#144: require of hotcocoa fails on case sensitive file system
---+
 Reporter:  r...@… |Owner:  r...@…
 Type:  defect |   Status:  closed
 Priority:  trivial|Milestone:  MacRuby 0.4   
Component:  MacRuby|   Resolution:  fixed 
 Keywords:  hotcocoa   |  
---+
Changes (by lsansone...@…):

  * status:  new => closed
  * resolution:  => fixed
  * milestone:  => MacRuby 0.4


-- 
Ticket URL: <http://www.macruby.org/trac/ticket/144#comment:3>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] [MacRuby] #391: HotCocoa on_notification method stopped functioning in MacRuby 0.5 under Snow Leopard

2009-10-29 Thread MacRuby
#391: HotCocoa on_notification method stopped functioning in MacRuby 0.5 under
Snow Leopard
--+-
 Reporter:  tre...@…  |   Owner:  lsansone...@…   
 Type:  defect|  Status:  new 
 Priority:  blocker   |   Milestone:  
Component:  MacRuby   |Keywords:  HotCocoa on_notification
--+-

Comment(by mattaimone...@…):

 bug confirmed, I also added another example.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/391#comment:4>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] [MacRuby] #391: HotCocoa on_notification method stopped functioning in MacRuby 0.5 under Snow Leopard

2009-10-29 Thread MacRuby
#391: HotCocoa on_notification method stopped functioning in MacRuby 0.5 under
Snow Leopard
--+-
 Reporter:  tre...@…  |Owner:  lsansone...@…
 Type:  defect|   Status:  closed   
 Priority:  blocker   |Milestone:   
Component:  MacRuby   |   Resolution:  fixed
 Keywords:  HotCocoa on_notification  |  
--+-
Changes (by mattaimone...@…):

  * status:  new => closed
  * resolution:  => fixed


-- 
Ticket URL: <http://www.macruby.org/trac/ticket/391#comment:6>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] [MacRuby] #318: enable arbitrary properties in hotcocoa app Info.plist

2010-02-11 Thread MacRuby
#318: enable arbitrary properties in hotcocoa app Info.plist
---+
 Reporter:  isaackea...@…  |   Owner:  r...@…
 Type:  enhancement|  Status:  new   
 Priority:  minor  |   Milestone:  MacRuby 0.5   
Component:  MacRuby|Keywords:  hotcocoa  
---+
Changes (by lsansone...@…):

  * owner:  lsansone...@… => r...@…


Comment:

 Assigning to Rich for screening.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/318#comment:1>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] HotCocoa status update

2009-05-28 Thread dan sinclair
I've been shooting around in the dark with HotCocoa for a few days.  
Adding things here and there. Is there a priority list of things to  
do, or everything is equally good?


Is most HotCocoa discussion done on this list and in IRC?

Thanks,
dan



On May 29, 2009, at 1:55 AM, Matt Aimonetti wrote:

Here is a quick update to let you know the progress made on HotCocoa  
in trunk.


* new MVC template. The template in HotCocoa 0.4 is great but as  
soon as you try to build a rich/complicated GUI, you start having to  
build your own "view" system. We spent some time designing a new  
templating solution for HotCocoa. You will still be able to use the  
one file type approach provided by 0.4, but we are trying to set  
some conventions for people in need of a MVC approach.
Having well defined conventions makes delegation and code  
organization easier.


* Documentation app. We started working on a documentation app to  
provide Cocoa and HotCocoa documentation. The source code is  
available at  http://github.com/mattetti/macruby-doc-app/ but will  
soon be moved to trunk. To play with the app, you need to have the  
latest version of trunk built on your machine. The application uses  
the Cocoa docsets and parses the HotCocoa mappings to show available  
methods, delegations and cocoa doc.
Most of the basic functionalities are available, we are now going to  
spend some time making the app look good and intuitive.


* HotCocoa mappings. With more and more people using HotCocoa,  
mappings are being improved and extended.


Todos:

* Better integration between Interface Builder and HotCocoa. Imagine  
defining a startup view using Interface Builder and then manage  
everything else using HotCocoa using the newly designed HotCocoa MVC  
conventions. We have some ideas on how to do that in a transparent  
way but more experiments are required.


* Tests. We would like to see HotCocoa being better tested and also  
provide a decent testing solution for developers.


* Rucola integration. Rucola is a very interesting and inspiring  
RubyCocoa project. We are looking forward to work closely with the  
Eloy Duran to offer the same type of experience for MacRuby/HotCocoa.


* Wrap commonly used obj-c libraries and document the process.


As usual, your help would be appreciated.

- 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] [MacRuby] #214: hotcocoa timer mapping could have default :target => self

2009-01-20 Thread MacRuby
#214: hotcocoa timer mapping could have default :target => self
-+--
 Reporter:  drnicwilli...@…  |   Owner:  lsansone...@…
 Type:  enhancement  |  Status:  new  
 Priority:  minor|   Milestone:   
Component:  MacRuby  |Keywords:  hotcocoa 
-+--
 Can we have :target => self as a default if :selector is set?

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/214>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] [MacRuby] #144: require of hotcocoa fails on case sensitive file system

2009-02-23 Thread MacRuby
#144: require of hotcocoa fails on case sensitive file system
---+
 Reporter:  r...@… |   Owner:  r...@…
 Type:  defect |  Status:  new   
 Priority:  trivial|   Milestone:
Component:  MacRuby|Keywords:  hotcocoa  
---+

Comment(by mattaimone...@…):

 Already fixed, please close.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/144#comment:2>
MacRuby <http://macruby.org/>

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


[MacRuby-devel] [MacRuby] #271: [website] hotcocoa mappings tutorial paragraph wrapping

2009-05-29 Thread MacRuby
#271: [website] hotcocoa mappings tutorial paragraph wrapping
-+--
 Reporter:  d...@…|   Owner:  lsansone...@…
 Type:  enhancement  |  Status:  new  
 Priority:  trivial  |   Milestone:   
Component:  MacRuby  |Keywords:  website  
-+--
 Attached patch fixes the strange paragraph wrapping in parts of the
 HotCocoa mappings tutorial.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/271>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] [MacRuby] #248: HotCocoa Graphics - creates corrupt PDF files

2010-02-11 Thread MacRuby
#248: HotCocoa Graphics - creates corrupt PDF files
+---
 Reporter:  dave.bald...@…  |   Owner:  r...@…   
 Type:  defect  |  Status:  new  
 Priority:  blocker |   Milestone:   
Component:  MacRuby |Keywords:  HotCocoa Graphics PDF
+---
Changes (by lsansone...@…):

  * owner:  lsansone...@… => r...@…


Comment:

 Assigning to Rich for screening.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/248#comment:1>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] [MacRuby] #206: HotCocoa: Mapped methods not available in subclass

2010-02-11 Thread MacRuby
#206: HotCocoa: Mapped methods not available in subclass
---+
 Reporter:  flat...@…  |   Owner:  r...@…
 Type:  defect |  Status:  new   
 Priority:  blocker|   Milestone:
Component:  MacRuby|Keywords:  hotcocoa  
---+
Changes (by lsansone...@…):

  * owner:  lsansone...@… => r...@…


Comment:

 Assigning to Rich for screening.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/206#comment:3>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] new example + new HotCocoa mapping

2009-02-27 Thread Matt Aimonetti
Thanks Laurent, I'll check with git-svn and see what I can do to generate
proper svn patches from my repo.  (I also need to centralize everything in
my repo)

- Matt

On Fri, Feb 27, 2009 at 9:33 PM, Laurent Sansonetti
wrote:

> Very nice work Matt :)
>
> Is there a way to easily generate a patch against MacRuby trunk somewhere
> from your github repository?
>
> Laurent
>
> On Feb 27, 2009, at 3:17 PM, Matt Aimonetti wrote:
>
> And here is a quick video showing the end result:
> http://screencast.com/t/5nAHRHQjL
>
> 100% Ruby (Well... 100% MacRuby with HotCocoa).
>
>  -Matt
>
> On Fri, Feb 27, 2009 at 2:02 PM, Matt Aimonetti 
> wrote:
>
>> MacRuby/HotCocoa sample with download, progress bar, scroll view/text view
>> and new HotCocoa mapping:   http://bit.ly/hThh9
>>
>> I added a new mapping for NSProgressIndicator and put a pretty realistic
>> example of what you would do in real life:
>>
>> 1. download a file
>> 2. show the progress
>> 3. display the content of the download in a scroll view
>>
>> I hope this will end up being useful for people wanting to get started
>> with HotCocoa but don't really know where to start.
>>
>> - 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] [MacRuby] #305: boilerplate hotcocoa project crashes

2009-08-08 Thread MacRuby
#305: boilerplate hotcocoa project crashes
+---
 Reporter:  craft...@…  |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  blocker |   Milestone:  MacRuby 0.5  
Component:  MacRuby |Keywords:  hotcocoa crash   
+---

Comment(by craft...@…):

 Ok, good catch also - I've updated the patch to include that particular
 change also. Hope all good, etc.

 Cheers,

 M!

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/305#comment:6>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] [MacRuby] #535: hotcocoa, and NoMethodError with a prelude of error messages.

2010-01-04 Thread MacRuby
#535: hotcocoa, and NoMethodError with a prelude of error messages.
-+--
 Reporter:  r...@…|Owner:  lsansone...@…
 Type:  defect   |   Status:  closed   
 Priority:  blocker  |Milestone:  MacRuby 0.5  
Component:  MacRuby  |   Resolution:  duplicate
 Keywords:  hotcocoa |  
-+--
Changes (by lsansone...@…):

  * status:  new => closed
  * resolution:  => duplicate


Comment:

 Dup of #443

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/535#comment:1>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] [MacRuby] #144: require of hotcocoa fails on case sensitive file system

2008-11-09 Thread MacRuby
#144: require of hotcocoa fails on case sensitive file system
---+
 Reporter:  [EMAIL PROTECTED]  |Owner:  [EMAIL PROTECTED]
 Type:  defect |   Status:  new   
 Priority:  trivial|Milestone:
Component:  MacRuby|   Resolution:
 Keywords:  hotcocoa   |  
---+
Changes (by [EMAIL PROTECTED]):

  * owner:  [EMAIL PROTECTED] => [EMAIL PROTECTED]


-- 
Ticket URL: <http://www.macruby.org/trac/ticket/144#comment:1>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] [MacRuby] #214: hotcocoa timer mapping could have default :target => self

2009-03-01 Thread MacRuby
#214: hotcocoa timer mapping could have default :target => self
-+--
 Reporter:  drnicwilli...@…  |Owner:  lsansone...@…
 Type:  enhancement  |   Status:  closed   
 Priority:  minor|Milestone:   
Component:  MacRuby  |   Resolution:  wontfix  
 Keywords:  hotcocoa |  
-+--
Changes (by lsansone...@…):

  * status:  new => closed
  * resolution:  => wontfix


Comment:

 Closing.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/214#comment:3>
MacRuby <http://macruby.org/>

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


[MacRuby-devel] [MacRuby] #366: Hotcocoa 'demo' crashes

2009-10-07 Thread MacRuby
#366: Hotcocoa 'demo' crashes
+---
 Reporter:  dave.bald...@…  |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  blocker |   Milestone:   
Component:  MacRuby |Keywords:   
+---
 Using the nightly build from 6th October on Snow Leopard, Macbook pro (64
 bit).

 macrake in the hotcocoa demo directory brings up a window and then quits
 unexpectedly.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/366>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] [MacRuby] #300: HotCocoa toolbar doesn't always honour ordering of items

2010-02-11 Thread MacRuby
#300: HotCocoa toolbar doesn't always honour ordering of items
-+--
 Reporter:  d...@…|   Owner:  r...@…
 Type:  defect   |  Status:  new   
 Priority:  major|   Milestone:
Component:  MacRuby  |Keywords:  HotCocoa NSToolbar
-+--
Changes (by lsansone...@…):

  * owner:  lsansone...@… => r...@…


Comment:

 Assigning to Rich for screening.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/300#comment:1>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] hotcocoa virus

2011-03-31 Thread Vincenzo Piombo
Ok, thanks a lot, Gary: I will try them.

So no "official" repository is going to be put up ?

Enzo

On Thu, Mar 31, 2011 at 6:52 PM, Gary Weaver  wrote:

>  Enzo,
>
> What I meant is that there are various versions of HotCocoa on GitHub. You
> might want to try someone's repo that was updated more recently. The
> "official"/original version ( https://github.com/richkilmer/hotcocoa ) is
> probably the one you are using, but you can find a more recent one with
> patches, etc. by looking at its network in GitHub:
> https://github.com/richkilmer/hotcocoa/network
>
> for example, some more recent versions at time of writing are:
> https://github.com/gmanley/hotcocoa
> https://github.com/jamis/hotcocoa
>
> Gary
>
>
>
> On 3/30/11 5:32 PM, Vincenzo Piombo wrote:
>
> Gary,
> "Virus" was joke of course, however I changed the name on gist.
> I doubt it is a hotcocoa issue, but as soon as I have some time will try to
> replicate it with an IB version.
>
>  What do you mean by "where you got it" ?  The code is mine, I was trying
> to do something along the lines of this
> http://www.nongnu.org/gstutorial/en/ch13s04.html.
>
>
>  By the way, do you know where can I find a working drag&drop macruby
> example ?
>
>  Enzo
>
>  On Wed, Mar 30, 2011 at 11:17 PM, Gary Weaver wrote:
>
>>  Enzo,
>>
>> It might be a translation issue, but I wouldn't call that a virus (it
>> doesn't replicate, it is just something that freezes your computer). I
>> wouldn't call it "Virus" in the gist either, if I were you.
>>
>> If it is a bug in HotCocoa, than it may be a bug (or at least undesired
>> functionality if it freezes your Mac) in MacRuby or OS X, so you might want
>> to dig deeper and provide more info on version (and where you got it, since
>> it is in various places in GitHub) of HotCocoa.
>>
>> Thanks!
>>  Gary
>>
>>
>> On 3/29/11 5:27 PM, Vincenzo Piombo wrote:
>>
>> Hi all,
>>  I was trying to add drag & drop capabilities to a hotcocoa program and
>> stumbled into a problem that really puzzles me: a macruby program can freeze
>> your mac !
>>
>>  I uploaded the buggy fragment here: https://gist.github.com/893300
>>
>>  Don't run it unless you are prepared to reboot your machine the hard
>> way, don't even "Force quit" works.
>> In the instructions I say to launch it twice, but every drag & drop with
>> any app  after the crash freezes the app.
>>
>>
>>  I'm using macruby 0.9, tried 0.10 but hotcocoa does not work with it
>> (but this is another story !)
>>
>>  Hope someone can tell me if I did something wrong or found a bug
>> somewhere.
>>
>>  Enzp
>>
>>
>>
>>
>>
>> ___
>> 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 HotCocoa dead?

2011-03-24 Thread Michael Gehl
I'd like to second the question on HotCocoa status - is it dead, in limbo, 
quietly flourishing, ???

Mike

On Mar 23, 2011, at 7:38 PM, [email protected] wrote:

> 
> 
> Message: 3
> Date: Wed, 23 Mar 2011 22:52:42 +0100
> From: Vincenzo Piombo 
> To: [email protected]
> Subject: [MacRuby-devel] is hotcocoa dead ?
> Message-ID:
>   
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hello all,
>  I discovered macruby since a few weeks and I'm really enthusiast.
> I begun playing with it and really like the hotcocoa approach, but it seems
> stopped since more than a year, is it still maintained ?
> 
> Anyway, I think I found a bug in the hotcocoa canvas part: the text method
> draws at a very big size regardless of the chosen font. The problem is that
> the transformation matrix for the text is not set.
> 
> Here is the fix if anyone needs it:
> 
> module HotCocoa::Graphics
>  class Canvas
>def text(txt="A", x=0, y=0)
>  affine = CGContextGetCTM(@ctx)
>  CGContextSetTextMatrix (@ctx, affine);
>  txt = txt.to_s unless txt.kind_of?(String)
>  if @registration == :center
>width = textwidth(txt)
>x = x - width / 2
>y = y + @fsize / 2
>  end
>  CGContextShowTextAtPoint(@ctx, x, y, txt, txt.length)
>end
>  end
> end

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


Re: [MacRuby-devel] A Future for MacRuby

2011-12-22 Thread isaac kearse
Hi Jordan,

Are you aware that HotCocoa is being actively developed again?
https://github.com/HotCocoa/hotcocoa/blob/master/History.markdown

There is a good overview of contributions over time here:
https://github.com/HotCocoa/hotcocoa/graphs/impact

Cheers,
Isaac

On Wed, Dec 21, 2011 at 8:56 PM, Jordan K. Hubbard  wrote:
>
> On Dec 21, 2011, at 12:43 AM, David Frantz wrote:
>
> As to nibs well the whole thing is just very obtuse and frustrating to me.
>  Mind you my background is not the same as many here, being focused on
> industrial automation, but if find the use of nibs and Interface builder to
> be very taxing and not very object Oriented.  MacRuby would likely generate
> a lot more interest if they moved away from the interface builder approach
> to GUI development.    I know this will result in many arrows coming my way,
> but really folks lets be objective here IB is a very strange departure from
> most GUI development systems.
>
>
> That was essentially the goal of the HotCocoa project, but it seems that
> very few folks shared your concerns or your desire for XIB-less UI
> development since outside contributions (once Rich moved on to other things)
> have been extremely minimal.
>
> - 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


Re: [MacRuby-devel] has anyone else noticed hotcocoa/graphics is no longer working...

2009-12-02 Thread Matt Aimonetti
I believe I fixed this bug after 0.5 beta2, what version are you on?

- Matt

On Wed, Dec 2, 2009 at 3:51 PM, Tim Rand  wrote:

> Though the following code works on macruby 0.4 and mac OS 10.5.8, it no
> longer works for me since updating macruby and the OS:
>
> macruby -e 'require "hotcocoa/graphics"'
> -e:1:in `': private method `define_method' called for Class:Class
> (NoMethodError)
>
> I am running:
> OS 10.6.2
> MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64]
> (with ruby version 1.9.0)
>
> I don't see a define_method call anywhere in the source code in the
> /Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/1.9.0/hotcocoa/graphics.rb
> file.
>
> I just want to tinker with HotCocoa::Graphics.
> Any advice or explanation would be appreciated.
>
> Thanks,
> Tim
>
> ___
> 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] has anyone else noticed hotcocoa/graphics is no longer working...

2009-12-02 Thread Tim Rand
Though the following code works on macruby 0.4 and mac OS 10.5.8, it no
longer works for me since updating macruby and the OS:

macruby -e 'require "hotcocoa/graphics"'
-e:1:in `': private method `define_method' called for Class:Class
(NoMethodError)

I am running:
OS 10.6.2
MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64]
(with ruby version 1.9.0)

I don't see a define_method call anywhere in the source code in the
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/1.9.0/hotcocoa/graphics.rb
file.

I just want to tinker with HotCocoa::Graphics.
Any advice or explanation would be appreciated.

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


Re: [MacRuby-devel] [MacRuby] #391: HotCocoa on_notification method stopped functioning in MacRuby 0.5 under Snow Leopard

2009-10-18 Thread MacRuby
#391: HotCocoa on_notification method stopped functioning in MacRuby 0.5 under
Snow Leopard
--+-
 Reporter:  tre...@…  |   Owner:  lsansone...@…   
 Type:  defect|  Status:  new 
 Priority:  blocker   |   Milestone:  
Component:  MacRuby   |Keywords:  HotCocoa on_notification
--+-

Comment(by lsansone...@…):

 Could you try to reduce the problem to a script that doesn't require a 3rd
 party app to be installed?

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/391#comment:1>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] [MacRuby] #391: HotCocoa on_notification method stopped functioning in MacRuby 0.5 under Snow Leopard

2009-10-31 Thread MacRuby
#391: HotCocoa on_notification method stopped functioning in MacRuby 0.5 under
Snow Leopard
--+-
 Reporter:  tre...@…  |Owner:  lsansone...@…
 Type:  defect|   Status:  closed   
 Priority:  blocker   |Milestone:   
Component:  MacRuby   |   Resolution:  fixed
 Keywords:  HotCocoa on_notification  |  
--+-

Comment(by tre...@…):

 Workaround with instance variable works just fine. Thank you.

 And thanks to Robert for his help.

 Rgds
 Trevor Hills

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/391#comment:8>
MacRuby <http://macruby.org/>

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


[MacRuby-devel] [MacRuby] #650: Issues with passing procs/methods to #map

2010-04-07 Thread MacRuby
#650: Issues with passing procs/methods to #map
+---
 Reporter:  pthom...@…  |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  major   |   Milestone:   
Component:  MacRuby |Keywords:   
+---
 {{{
 %w{rubygems hotcocoa}.each { |i| require i }
 }}}

 This works fine on MacRuby. However,
 {{{
 %w{rubygems hotcocoa}.each(&method(:require))
 }}}
 does not work on MacRuby (it says that HotCocoa cannot be loaded), though
 this pattern works on 1.9.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/650>
MacRuby <http://macruby.org/>

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


[MacRuby-devel] [MacRuby] #763: HotCocoa does not work with MacRuby Trunk.

2010-06-27 Thread MacRuby
#763: HotCocoa does not work with MacRuby Trunk.
--+-
 Reporter:  watson1...@…  |   Owner:  lsansone...@…
 Type:  defect|  Status:  new  
 Priority:  blocker   |   Milestone:   
Component:  MacRuby   |Keywords:   
--+-
 I attach a script file that use a HotCocoa.
 This file has worked untill r4212 and has not worked since r4213.

 With r4213 runs:
 {{{
 $ macruby xml_parse_hotcocoa.rb
 interpreter: unrecognized call instruction: (ID: 67)
   %1 = call i64 @rb_singleton_class(i64 %0)   ;  [#uses=1]
 zsh: abort  macruby xml_parse_hotcocoa.rb
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/763>
MacRuby <http://macruby.org/>

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


[MacRuby-devel] Should the HotCocoa example on the home page run on 0.5 beta 2?

2009-12-18 Thread Jeremy Voorhis
I've just installed the latest MacRuby beta binaries on my new macbook, and
this happens:

Jeremy-Voorhiss-MacBook-Pro:~ jvoorhis$ cat test.rb
require 'hotcocoa'
include HotCocoa
application do |app|
  win = window :size => [100,50]
  b = button :title => 'Hello'
  b.on_action { puts 'World!' }
  win << b
end
Jeremy-Voorhiss-MacBook-Pro:~ jvoorhis$ macruby --version
MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64]
Jeremy-Voorhiss-MacBook-Pro:~ jvoorhis$ macruby test.rb
2009-12-18 22:06:45.181 macruby[76926:903] *** -[NSLock unlock]: lock
( '(null)') unlocked when not locked
2009-12-18 22:06:45.184 macruby[76926:903] *** Break on _NSLockError() to
debug.
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/1.9.0/hotcocoa/mappings/application.rb:9:in
`handle_block:': undefined method `on_action' for 0:NSButton (NoMethodError)
from core:in `application:'
from test.rb:2:in `'

I've hardly used HotCocoa at all. This might have already been covered in
some other thread that I wasn't paying attention to. If not, I can file
something in trac.

Thanks,

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


Re: [MacRuby-devel] status and prospects of HotCocoa?

2010-06-10 Thread isaac kearse
I have a few more articles here also: http://isaac.kearse.co.nz/

Rich Kilmer obviously doesn't have much time for HotCocoa right now, but he
has done some great work to get it this far and it would be cool if he could
chime in with a few words about his vision for the project.

I also vaguely remember some talk about integrating Rucola & HotCocoa a
while ago.  Did anything ever come of that?

Cheers,
Isaac

On Fri, Jun 11, 2010 at 11:04 AM, Matt Aimonetti wrote:

> Unless some people really embrace the project, fix the various issues and
> add a proper test suite, I don't know if HotCocoa will survive too long.
>
> However, it looks like enough people are interested in doing something with
> HotCocoa, I would suggest to fork the project (it's on github) and set a
> team of people to work on it.
>
> - Matt
>
>
> On Thu, Jun 10, 2010 at 3:41 PM, Rich Morin  wrote:
>
>> I folded some information from Dan and Gary into a wiki page:
>>
>>  https://www.macruby.org/trac/wiki/HotCocoaResources
>>
>> and tweaked the main page a bit:
>>
>>  https://www.macruby.org/trac/wiki/HotCocoa
>>
>> Contributions and corrections are solicited...
>>
>> -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


Re: [MacRuby-devel] status and prospects of HotCocoa?

2010-06-10 Thread Gary Weaver

These posts are a bit old now but:

Lots of examples linked to in this:
* http://stufftohelpyouout.blogspot.com/2010/03/hotcocoamacruby-links.html

Some lame stuff I did in a few days:
* 
http://stufftohelpyouout.blogspot.com/2010/02/hotcocoa-app-to-track-time-on-tasks.html
* 
http://stufftohelpyouout.blogspot.com/2010/02/create-custom-icon-of-your-hotcocoa-app.html
* 
http://stufftohelpyouout.blogspot.com/2010/02/create-macruby-hotcocoa-app.html


This helped me get started in addition to the tutorial:
* http://isaac.kearse.co.nz/2010/02/01/packaging-hotcocoa/
(note: Isaac provided a patch to MacRuby to help with the file size thing)

The current story I think is that Rich Kilmer:
http://wiki.github.com/richkilmer/hotcocoa/
got pulled into other things and didn't have much time to keep it going, 
so others have forked it I think:

http://github.com/richkilmer/hotcocoa/network

Dan Sinclair had the most recent work on his branch of it but that was 
last updated March 23, 2010:

http://github.com/dj2/hotcocoa

I'm hoping Rich, Dan, and everyone else that is interested will continue 
work on it. It was pretty cool!


Gary


On 6/10/10 1:48 PM, Rich Morin wrote:

I'm curious about the status of HotCocoa.  Although it seems
like a very cool piece of technology, the activity level and
documentation status seem pretty minimal.  For example:

   *  http://www.macruby.org/trac/wiki/HotCocoaStatus shows
  about thirty "partial" mappings; the rest are "unknown".

   *  http://www.macruby.org/trac/wiki/HotCocoaTutorial just
  says "TODO".

   *  "MacRuby: The Definitive Guide" doesn't mention HotCocoa
  in the Table of Contents.

If some folks here are using HotCocoa, I'd love to see some
examples, howtos, etc!

-r
   


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


Re: [MacRuby-devel] HotCocoa subclassing NSView

2009-02-18 Thread Matt Aimonetti
Thanks for clarifying, since subclassing NSView seems to be pretty  
common and writing a mapping is a bit combersome, maybe we could add a  
CustomView + mapping.


What do you think?

-Matt

Sent from  my iPhone

On Feb 17, 2009, at 10:47, Richard Kilmer  wrote:

They do inherit constants, custom methods, etc (see lib/hotcocoa/ 
mapper.rb, NOTE: ugly file right now, is a target for refactor)


They are modules and those modules are mixed in.

Best,

Rich

On Feb 17, 2009, at 12:46 PM, Matt Aimonetti wrote:

Thanks Rich, but if I do what you recommended, I guess I would not  
be able to use all the NSView extra stuff defined by the existing  
NSView mapping (constants, custom methods etc..).


Wouldn't be better to make each mapping a mixin? That would allow  
us to reuse some default settings and subclassing a mapped class  
would give us all the mapping goodies.


- Matt



On Tue, Feb 17, 2009 at 4:33 AM, Richard Kilmer  
 wrote:

This is how I would do it:

class MyNewView < NSView

 def drawRect(rect)
 end

end

HotCocoa::Mappings.map :my_new_view => :"MyNewView" do
 defaults :frame => DefaultEmptyRect, :layout => {}

 def init_with_options(view, options)
   view.initWithFrame options.delete(:frame)
 end
end

Then in your code you can just use it like any HotCocoa mapped class:

my_new_view :frame => [0,0,10,10]

etc.

-rich



On Feb 17, 2009, at 4:15 AM, Matt Aimonetti wrote:

I'm working on a new HotCocoa sample and I need to subclass NSView  
to override drawRect and add few more methods.
I would like to be able to reuse all the goodies from HotCocoa and  
the view helper, what's the best way to do that?


-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


___________
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] #305: boilerplate hotcocoa project crashes

2009-09-04 Thread MacRuby
#305: boilerplate hotcocoa project crashes
+---
 Reporter:  craft...@…  |Owner:  lsansone...@…
 Type:  defect  |   Status:  closed   
 Priority:  blocker |Milestone:  MacRuby 0.5  
Component:  MacRuby |   Resolution:  fixed
 Keywords:  hotcocoa crash  |  
+---
Changes (by lsansone...@…):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 It looks to me that this problem is fixed in trunk. Closing this ticket...
 let me know if it should be re-opened.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/305#comment:8>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] new example + new HotCocoa mapping

2009-02-27 Thread Matt Aimonetti
And here is a quick video showing the end result:
http://screencast.com/t/5nAHRHQjL

100% Ruby (Well... 100% MacRuby with HotCocoa).

 -Matt

On Fri, Feb 27, 2009 at 2:02 PM, Matt Aimonetti wrote:

> MacRuby/HotCocoa sample with download, progress bar, scroll view/text view
> and new HotCocoa mapping:   http://bit.ly/hThh9
>
> I added a new mapping for NSProgressIndicator and put a pretty realistic
> example of what you would do in real life:
>
> 1. download a file
> 2. show the progress
> 3. display the content of the download in a scroll view
>
> I hope this will end up being useful for people wanting to get started with
> HotCocoa but don't really know where to start.
>
> - Matt
>
___________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] hotcocoa/graphics

2009-12-03 Thread Juergen Dabel
Today I tried with the newest nightly build and I got:

dab:~ jdabel$ cd /Developer/Examples/Ruby/MacRuby/HotCocoa/graphics 
dab:graphics jdabel$ macruby particle.rb
Segmentation fault
dab:graphics jdabel$ macruby demo.rb
2009-12-03 17:03:51.063 macruby[153:903] *** -[NSLock unlock]: lock ( '(null)') unlocked when not locked
2009-12-03 17:03:51.065 macruby[153:903] *** Break on _NSLockError() to debug.
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/1.9.0/hotcocoa/mappings/application.rb:9:in
 `handle_block:': undefined method `on_action' for 0:NSSlider (NoMethodError)
from core:in `application:'
from demo.rb:1:in `'
dab:graphics jdabel$ 

My Mac:
Modellname: MacBook
  Modell-Identifizierung:   MacBook5,1
  Prozessortyp: Intel Core 2 Duo
  Prozessorgeschwindigkeit: 2,4 GHz
  Anzahl der Prozessoren:   1
  Gesamtzahl der Kerne: 2
  L2-Cache: 3 MB
  Speicher:     4 GB

I would choose MacRuby for Hotcocoa!!!

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


[MacRuby-devel] HotCocoa app doesn't run on Macs without installation of macruby

2010-08-01 Thread Michal
Hi guys,

I've just started development of the new Mac OS X app and I'd like to use 
MacRuby + HotCocoa. I want the app to run on computers which do not have 
MacRuby installed so I need to embed MacRuby into app package.  If I do not use 
HotCocoa and I build app using Xcode it works great and users without installed 
MacRuby can run the app. However if I create new app using hotcocoa  
and then I do macrake deploy users without installed MacRuby cannot run the app 
- it's crashing.  I reopened issue 
http://www.macruby.org/trac/ticket/281because it looks like it's related. 
Anyhone encountered this problem? Any solutions, please?

Thank you and have a great day!

Michal





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


[MacRuby-devel] [MacRuby] #316: Constant missing exception when running macrake deploy in a hotcocoa project

2009-08-24 Thread MacRuby
#316: Constant missing exception when running macrake deploy in a hotcocoa
project
---+
 Reporter:  isaackea...@…  |   Owner:  lsansone...@…
 Type:  defect |  Status:  new  
 Priority:  minor  |   Milestone:  MacRuby 0.5  
Component:  MacRuby|Keywords:   
---+
 To reproduce this issue create a boiler plate hotcocoa project and cd into
 it and run "macrake deploy"

 Attached is a patch that fixes the issue for me.

 Below is the output from the terminal when running "macrake deploy
 --trace"

 {{{
 isaac:~/src/hotcocoa isaac$ macrake deploy --trace

 ** Invoke deploy (first_time)
 ** Invoke clean (first_time)
 ** Execute clean
 ** Execute deploy

 rake aborted!
 uninitialized constant HotCocoa::ApplicationBuilder::NSFileManager
 0:in `rake_original_const_missing:'
 0:in `const_missing:'
 0:in `current_macruby_version'
 0:in `current_macruby_path'
 0:in `copy_framework'
 0:in `deploy'
 0:in `build'
 0:in `build:'
 0:in `each'
 0:in `execute:'
 0:in `synchronize'
 0:in `invoke_with_call_chain:'
 0:in `invoke'
 0:in `invoke_task:'
 0:in `each'
 0:in `standard_exception_handling'
 0:in `top_level'
 0:in `standard_exception_handling'
 0:in `run'
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/316>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] Hotcocoa documentation

2010-10-01 Thread Laurent Sansonetti
Hi Michael,

On Oct 1, 2010, at 7:07 PM, Michael Sokol wrote:

> Hello
> 
> I just discovered Macruby and Hotcocoa, and I must say that I'm very excited 
> about it. Hotcocoa is nothing short of amazing and I love the ease with which 
> you can build a Mac application using Ruby.
> 
> The only problem I have though, is that I didn't find a real documentation 
> showing hotcocoa API. I'm using the examples, but it's very limited. I was 
> wondering if any API documentation exists, and if not, what is the best way 
> to know each methods available and their parameters?

I am afraid HotCocoa is no longer actively developed neither maintained (I 
recommend to avoid using it). The project lives on github now and people 
willing to help should do it there.

http://github.com/richkilmer/hotcocoa

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


Re: [MacRuby-devel] HotCocoa subclassing NSView

2009-02-17 Thread Matt Aimonetti
Thanks Rich, but if I do what you recommended, I guess I would not be able
to use all the NSView extra stuff defined by the existing NSView mapping
(constants, custom methods etc..).

Wouldn't be better to make each mapping a mixin? That would allow us to
reuse some default settings and subclassing a mapped class would give us all
the mapping goodies.

- Matt



On Tue, Feb 17, 2009 at 4:33 AM, Richard Kilmer  wrote:

> This is how I would do it:
>
> class MyNewView < NSView
>
>  def drawRect(rect)
>  end
>
> end
>
> HotCocoa::Mappings.map :my_new_view => :"MyNewView" do
>  defaults :frame => DefaultEmptyRect, :layout => {}
>
>  def init_with_options(view, options)
>view.initWithFrame options.delete(:frame)
>  end
> end
>
> Then in your code you can just use it like any HotCocoa mapped class:
>
> my_new_view :frame => [0,0,10,10]
>
> etc.
>
> -rich
>
>
>
> On Feb 17, 2009, at 4:15 AM, Matt Aimonetti wrote:
>
>  I'm working on a new HotCocoa sample and I need to subclass NSView to
>> override drawRect and add few more methods.
>> I would like to be able to reuse all the goodies from HotCocoa and the
>> view helper, what's the best way to do that?
>>
>> -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] MacRuby-devel Digest, Vol 35, Issue 3

2011-01-02 Thread Brad Hutchins
"*However, please be aware that as of today, it is not possible to submit,
on the AppStore (the iOS AppStore), an application that has been written
using MacRuby :-(.*"

. . . Yet . . .

On Sun, Jan 2, 2011 at 1:31 PM,
wrote:

> Send MacRuby-devel mailing list submissions to
>    [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> or, via email, send a message with subject or body 'help' to
>[email protected]
>
> You can reach the person managing the list at
>[email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of MacRuby-devel digest..."
>
>
> Today's Topics:
>
>   1. Re: Hotcocoa or not? (Thibault Martin-Lagardette)
>   2. Re: Hotcocoa or not? (Buddy Lindsey, Jr.)
>   3. Re: Hotcocoa or not? (Henry Maddocks)
>   4. Re: Hotcocoa or not? (Benjamin Almeida)
>   5. Re: Hotcocoa or not? (Jordan K. Hubbard)
>
>
> ------
>
> Message: 1
> Date: Sun, 2 Jan 2011 17:03:02 +0100
> From: Thibault Martin-Lagardette 
> To: "MacRuby development discussions."
>
> Subject: Re: [MacRuby-devel] Hotcocoa or not?
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi Buddy,
>
> I would advise to use the "regular" way, aka using Xcode, Interface Builder
> etc.
> I could think of two reasons for that:
> 1/ HotCocoa is, as far as I know, not maintained anymore
> 2/ By using Interface Builder, you'll learn more about writing Cocoa apps,
> wether it is in MacRuby or Objective-C :-)
>
> However, please be aware that as of today, it is not possible to submit, on
> the AppStore (the iOS AppStore), an application that has been written using
> MacRuby :-(.
> Sincerely,
> --
> Thibault Martin-Lagardette
>
>
>
> On Jan 1, 2011, at 05:09, Buddy Lindsey, Jr. wrote:
>
> > All,
> >
> > I am just starting with MacRuby and am kind of confused. There seems to
> be 2 ways to do GUI development. Hotcocoa or Pure Cocoa API. My confusion is
> on which one is best I like hotcocoa because it seems fairly straight
> forward on doing GUI stuff, the little I have looked at it, but seems to
> rely on Cocoa API where there aren't any mappings. However, I can use
> interface builder and xcode more easily going with the pure cocoa api. I
> also am very confused when doing anything with interface builder so I am
> leaning toward hotcocoa.
> >
> > As a note on my background. I just got my first mac in July and started
> doing anything with ruby [on rails] in August. I come from a web development
> background so desktop apps are a bit new to me.
> >
> > Anyone have any advice, comments, and or words of wisdom all they way
> around? My goals is to make a fairly simple app I can put into the AppStore.
> >
> > Thanks
> > Buddy
> >
> > ---
> > Buddy Lindsey
> > http://www.buddylindsey.com
> > http://www.twitter.com/buddylindsey
> > ___
> > MacRuby-devel mailing list
> > [email protected]
> > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110102/f2e83909/attachment-0001.html
> >
>
> --
>
> Message: 2
> Date: Sun, 2 Jan 2011 13:22:02 -0600
> From: "Buddy Lindsey, Jr." 
> To: "MacRuby development discussions."
>
> Subject: Re: [MacRuby-devel] Hotcocoa or not?
> Message-ID:
>
> 
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Ahh, okay. I think i'll proceed with doing it the regular way.
>
> I was actually hoping to submit to the Mac AppStore. I hope they allow on
> there if it is a self contained app.
>
> Thanks for the reply
> Buddy
>
> ---
> Buddy Lindsey
> http://www.buddylindsey.com
> http://www.twitter.com/buddylindsey
>
>
> On Sun, Jan 2, 2011 at 10:03 AM, Thibault Martin-Lagardette  gmail.com> wrote:
>
> > Hi Buddy,
> >
> > I would advise to use the "regular" way, aka using Xcode, Interface
> Builder
> > etc.
> > I could think of two reasons for that:
> > 1/ HotCocoa is, as far as I know, not maintained anymore

Re: [MacRuby-devel] hotcocoa virus

2011-03-31 Thread Gary Weaver

Enzo,

What I meant is that there are various versions of HotCocoa on GitHub. 
You might want to try someone's repo that was updated more recently. The 
"official"/original version ( https://github.com/richkilmer/hotcocoa ) 
is probably the one you are using, but you can find a more recent one 
with patches, etc. by looking at its network in GitHub:

https://github.com/richkilmer/hotcocoa/network

for example, some more recent versions at time of writing are:
https://github.com/gmanley/hotcocoa
https://github.com/jamis/hotcocoa

Gary


On 3/30/11 5:32 PM, Vincenzo Piombo wrote:

Gary,
"Virus" was joke of course, however I changed the name on gist.
I doubt it is a hotcocoa issue, but as soon as I have some time will 
try to replicate it with an IB version.


What do you mean by "where you got it" ?  The code is mine, I was 
trying to do something along the lines of this 
http://www.nongnu.org/gstutorial/en/ch13s04.html.



By the way, do you know where can I find a working drag&drop macruby 
example ?


Enzo

On Wed, Mar 30, 2011 at 11:17 PM, Gary Weaver <mailto:[email protected]>> wrote:


Enzo,

It might be a translation issue, but I wouldn't call that a virus
(it doesn't replicate, it is just something that freezes your
computer). I wouldn't call it "Virus" in the gist either, if I
were you.

If it is a bug in HotCocoa, than it may be a bug (or at least
undesired functionality if it freezes your Mac) in MacRuby or OS
X, so you might want to dig deeper and provide more info on
version (and where you got it, since it is in various places in
GitHub) of HotCocoa.

Thanks!
Gary


On 3/29/11 5:27 PM, Vincenzo Piombo wrote:

    Hi all,
 I was trying to add drag & drop capabilities to a hotcocoa
program and stumbled into a problem that really puzzles me: a
macruby program can freeze your mac !

I uploaded the buggy fragment here: https://gist.github.com/893300

Don't run it unless you are prepared to reboot your machine the
hard way, don't even "Force quit" works.
In the instructions I say to launch it twice, but every drag &
drop with any app  after the crash freezes the app.


I'm using macruby 0.9, tried 0.10 but hotcocoa does not work with
it (but this is another story !)

Hope someone can tell me if I did something wrong or found a bug
somewhere.

    Enzp






___
MacRuby-devel mailing list
[email protected]
    <mailto:[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 hotcocoa dead ?

2011-03-24 Thread Gary Weaver

Enzo,

I've not used it in a few versions, but when I used to do "macrake 
deploy", it would copy all of the macruby framework, which at least used 
to be large, making the .app usually ~150MB. Isaac Kearse had a fix for 
that a while back, and possibly someone else has fixed it since.


More info:
http://isaac.kearse.co.nz/2010/02/01/packaging-hotcocoa/
http://www.mail-archive.com/[email protected]/msg03690.html

List archives search:
http://www.mail-archive.com/search?q=macruby-devel+hotcocoa&l=macruby-devel%40lists.macosforge.org

Gary


On 3/24/11 3:24 PM, Vincenzo Piombo wrote:

Gary,
 Thanks for the info.
I'm surprised you say there could be size problems in the produced 
app. Do you mean that if I write the same app using IB and hotcocoa 
the last one would be sensibly larger ? Why ?


Enzo

On Thu, Mar 24, 2011 at 4:01 PM, Gary Weaver <mailto:[email protected]>> wrote:


Vincenzo,

There was work on HotCocoa at least as recently as Jan 11, 2011, I
think.

Here is the github graph of changes:
    https://github.com/richkilmer/hotcocoa/network

As of today (3/24/2011), this is the most recent list of
committers (I think):
https://github.com/gmanley/hotcocoa/contributors

dj2 (dan sinclair)
richkilmer (Richard Kilmer)
isaac (Isaac Kearse)
mattetti (Matt Aimonetti)
jamis (Jamis Buck)
hellopatrick (Patrick)
reborg (reborg)

Last change in the wiki was 10 months ago (6/10/2010):
http://www.macruby.org/trac/wiki/HotCocoa?action=history

Unfortunately, I think it is an effort off to the side of the
macruby team and core developers that hasn't gotten much
attention. I know many (including myself) would like to see it
succeed though. It was a lot of fun to work with for the few days
that I did, and fun toys that you can create cool things with
quickly can often do really well. The main problems I think have
been the lack of attention, lack of development, and the large
size of the produced application, at least in earlier versions.

Gary



On 3/23/11 5:52 PM, Vincenzo Piombo wrote:

    Hello all,
 I discovered macruby since a few weeks and I'm really enthusiast.
I begun playing with it and really like the hotcocoa approach,
but it seems stopped since more than a year, is it still
maintained ?

    Anyway, I think I found a bug in the hotcocoa canvas part: the
text method draws at a very big size regardless of the chosen
font. The problem is that the transformation matrix for the
text is not set.

Here is the fix if anyone needs it:

module HotCocoa::Graphics
 class Canvas
   def text(txt="A", x=0, y=0)
 affine = CGContextGetCTM(@ctx)
 CGContextSetTextMatrix (@ctx, affine);
 txt = txt.to_s unless txt.kind_of?(String)
 if @registration == :center
   width = textwidth(txt)
   x = x - width / 2
   y = y + @fsize / 2
 end
 CGContextShowTextAtPoint(@ctx, x, y, txt, txt.length)
   end
 end
end


    ___________
MacRuby-devel mailing list
[email protected]
<mailto:[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] HotCocoa subclassing NSView

2009-02-21 Thread Richard Kilmer

Matt,

You can subclass an NSView on the fly, I don't think a CustomView is  
needed:


v = view :frame => [10,10,100,100]
def v.drawRect(rect)
  #custom stuff here
end

Since you can just redefine methods in ruby this works great.

Maybe we should add a syntax similar to the rails associations proxies  
and enable this:


module MyCustomBehaviors
  def drawRect(rect)
#custom stuff here
  end
end

view :frame => [10,10,100,100], :extend => MyCustomBehaviors

Thoughts?

Rich

On Feb 21, 2009, at 1:36 AM, Matt Aimonetti wrote:

Oops, I guess the email sent from my iphone never left my 'holy'  
device.


Rich, what do you think about adding a new HotCocoa CustomView  
mapping since subclassing NSView seems to be pretty common.


- Matt

On Tue, Feb 17, 2009 at 10:47 AM, Richard Kilmer  
 wrote:
They do inherit constants, custom methods, etc (see lib/hotcocoa/ 
mapper.rb, NOTE: ugly file right now, is a target for refactor)


They are modules and those modules are mixed in.

Best,

Rich

On Feb 17, 2009, at 12:46 PM, Matt Aimonetti wrote:

Thanks Rich, but if I do what you recommended, I guess I would not  
be able to use all the NSView extra stuff defined by the existing  
NSView mapping (constants, custom methods etc..).


Wouldn't be better to make each mapping a mixin? That would allow  
us to reuse some default settings and subclassing a mapped class  
would give us all the mapping goodies.


- Matt



On Tue, Feb 17, 2009 at 4:33 AM, Richard Kilmer  
 wrote:

This is how I would do it:

class MyNewView < NSView

 def drawRect(rect)
 end

end

HotCocoa::Mappings.map :my_new_view => :"MyNewView" do
 defaults :frame => DefaultEmptyRect, :layout => {}

 def init_with_options(view, options)
   view.initWithFrame options.delete(:frame)
 end
end

Then in your code you can just use it like any HotCocoa mapped class:

my_new_view :frame => [0,0,10,10]

etc.

-rich



On Feb 17, 2009, at 4:15 AM, Matt Aimonetti wrote:

I'm working on a new HotCocoa sample and I need to subclass NSView  
to override drawRect and add few more methods.
I would like to be able to reuse all the goodies from HotCocoa and  
the view helper, what's the best way to do that?


-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



___________
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] Hotcocoa documentation

2010-10-01 Thread Vincent Isambart

> Is there some information somewhere about why Hotcocoa was dropped? If
> not, a few words of explanation here would be appreciated! Hotcocoa
> does stand out as a pretty nifty gadget, although I can imagine it's a
> lot of work to maintain it.


I don't think there's information about it anywhere, but only because there's 
nothing much to say.

HotCocoa was started by Rich Kilmer, and I can't speak for him but from what I 
saw he's very busy and doesn't have time to work on HotCocoa. In fact most of 
the work he did on HotCocoa was done when he was attending various conferences.

And well after Rich stopped working on it no one decided to continue working on 
it, that's pretty much it. As Laurent said it's opensource, it's on Github so 
if anyone wants to work on it, just fork it!

There was a time when HotCocoa was included in MacRuby, but there's no reason 
to continue including something that's not maintained anymore, and there's 
already enough work to do on MacRuby itself.


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


Re: [MacRuby-devel] [MacRuby] #209: HotCocoa problems in trunk (with patch)

2009-01-20 Thread MacRuby
#209: HotCocoa problems in trunk (with patch)
+---
 Reporter:  vincent.isamb...@…  |Owner:  lsansone...@…
 Type:  defect  |   Status:  closed   
 Priority:  major   |Milestone:   
Component:  MacRuby |   Resolution:  fixed
 Keywords:  |  
+---
Changes (by eloy.de.en...@…):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 This has been applied. There are however still some issues with regards to
 HotCocoa, but they should be filed as new tickets.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/209#comment:1>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] [MacRuby] #214: hotcocoa timer mapping could have default :target => self

2009-03-01 Thread MacRuby
#214: hotcocoa timer mapping could have default :target => self
-+--
 Reporter:  drnicwilli...@…  |   Owner:  lsansone...@…
 Type:  enhancement  |  Status:  new  
 Priority:  minor|   Milestone:   
Component:  MacRuby  |Keywords:  hotcocoa 
-+--

Comment(by lsansone...@…):

 Rich, could you comment this bug?

 (For a strange reason trac doesn't allow me to reassign the bug to you,
 you're not in the combo list.)

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/214#comment:1>
MacRuby <http://macruby.org/>

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


[MacRuby-devel] [MacRuby] #248: HotCocoa Graphics - creates corrupt PDF files

2009-04-28 Thread MacRuby
#248: HotCocoa Graphics - creates corrupt PDF files
+---
 Reporter:  dave.bald...@…  |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  blocker |   Milestone:   
Component:  MacRuby |Keywords:  HotCocoa Graphics PDF
+---
 The save method in canvas.rb needs a
   if @filetype == :pdf
 CGContextFlush(@ctx)   # <<< benign but redundant

 CGPDFContextEndPage(@ctx)

 CGPDFContextClose(@ctx)# <<<< new
 return

 The GContextFlush(@ctx) is also unnecessary in the newpage method as well.

 Dave.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/248>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] [MacRuby] #274: [HotCocoa] Button images

2009-05-30 Thread MacRuby
#274: [HotCocoa] Button images
-+--
 Reporter:  d...@…|   Owner:  lsansone...@…
 Type:  enhancement  |  Status:  new  
 Priority:  minor|   Milestone:   
Component:  MacRuby  |Keywords:   
-+--

Comment(by mattaimone...@…):

 As per our discussion via IM, I agree with Rich's suggestion. One note
 tho, while we will document that behavior in the Cocoa/HotCocoa doc app,
 calling #methods on an object won't list this dynamic methods.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/274#comment:6>
MacRuby <http://macruby.org/>

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


[MacRuby-devel] new example + new HotCocoa mapping

2009-02-27 Thread Matt Aimonetti
MacRuby/HotCocoa sample with download, progress bar, scroll view/text view
and new HotCocoa mapping:   http://bit.ly/hThh9

I added a new mapping for NSProgressIndicator and put a pretty realistic
example of what you would do in real life:

1. download a file
2. show the progress
3. display the content of the download in a scroll view

I hope this will end up being useful for people wanting to get started with
HotCocoa but don't really know where to start.

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


Re: [MacRuby-devel] [MacRuby] #181: hotcocoa command with Macruby 0.3, patches attached

2009-02-28 Thread MacRuby
#181: hotcocoa command with Macruby 0.3, patches attached
+---
 Reporter:  sandor.szu...@… |Owner:  lsansone...@…
 Type:  defect  |   Status:  closed   
 Priority:  critical|Milestone:  MacRuby 0.4  
Component:  MacRuby |   Resolution:  fixed
 Keywords:  |  
+---
Changes (by lsansone...@…):

  * status:  new => closed
  * resolution:  => fixed
  * milestone:  MacRuby 0.3 => MacRuby 0.4


Comment:

 Thanks for the report. I merged the first changeset of your patch but not
 the second because it doesn't produce the same result (I tried to generate
 a hotcocoa project with it but the config/build.yml file wasn't copied).

 Change revision is r824.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/181#comment:2>
MacRuby <http://macruby.org/>

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


[MacRuby-devel] [MacRuby] #581: sudo macgem install hotcocoa fails on latest nightly

2010-01-31 Thread MacRuby
#581: sudo macgem install hotcocoa fails on latest nightly
---+
 Reporter:  isaackea...@…  |   Owner:  lsansone...@…
 Type:  defect |  Status:  new  
 Priority:  major  |   Milestone:   
Component:  MacRuby|Keywords:   
---+
 Hi Guys,

 sudo macgem install hotcocoa
 not in gzip format
 not in gzip format (Zlib::GzipFile::Error)

 This is after installing the latest MacRuby nightly
 (http://macruby.icoretech.org/details/138)

 It worked for me a week ago before rubygems was updated to 1.3.5

 Cheers,
 Isaac

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/581>
MacRuby <http://macruby.org/>

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


[MacRuby-devel] [MacRuby] #318: enable arbitrary properties in hotcocoa app Info.plist

2009-08-27 Thread MacRuby
#318: enable arbitrary properties in hotcocoa app Info.plist
---+
 Reporter:  isaackea...@…  |   Owner:  lsansone...@…
 Type:  enhancement|  Status:  new  
 Priority:  minor  |   Milestone:  MacRuby 0.5  
Component:  MacRuby|Keywords:  hotcocoa 
---+
 This patch enables adding extra key/string properties to the Info.plist
 for a hotcocoa application.  All you need to do is add a properties hash
 to config/build.yml and the application builder will take the properties
 in the hash and append them to the applications Info.plist.

 The use case I had for this was that I wanted to run my app as an agent
 application. (no dock icon or top left menu).  To do this I needed to add
 the key LSUIElement with a string value of "1" to the Info.plist

 Cheers,
 Isaac

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/318>
MacRuby <http://macruby.org/>

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


Re: [MacRuby-devel] hotcocoa/graphics

2009-12-03 Thread Matt Aimonetti
the on_action bug is a known bug, but I don't know why particle.rb crashes,
could you reduce the error to something simple?

- Matt

On Thu, Dec 3, 2009 at 8:10 AM, Juergen Dabel  wrote:

> Today I tried with the newest nightly build and I got:
>
> dab:~ jdabel$ cd /Developer/Examples/Ruby/MacRuby/HotCocoa/graphics
> dab:graphics jdabel$ macruby particle.rb
> Segmentation fault
> dab:graphics jdabel$ macruby demo.rb
> 2009-12-03 17:03:51.063 macruby[153:903] *** -[NSLock unlock]: lock
> ( '(null)') unlocked when not locked
> 2009-12-03 17:03:51.065 macruby[153:903] *** Break on _NSLockError() to
> debug.
> /Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/1.9.0/hotcocoa/mappings/application.rb:9:in
> `handle_block:': undefined method `on_action' for 0:NSSlider (NoMethodError)
> from core:in `application:'
>  from demo.rb:1:in `'
> dab:graphics jdabel$
>
> My Mac:
> Modellname: MacBook
>   Modell-Identifizierung: MacBook5,1
>   Prozessortyp: Intel Core 2 Duo
>   Prozessorgeschwindigkeit: 2,4 GHz
>   Anzahl der Prozessoren: 1
>   Gesamtzahl der Kerne: 2
>   L2-Cache: 3 MB
>   Speicher: 4 GB
>
> I would choose MacRuby for Hotcocoa!!!
>
> Juergen Dabel
> Schrobenhausen
> Germany
>
> ___________
> 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


  1   2   3   4   5   6   >