[MacRuby-devel] NSArrayController

2008-12-29 Thread Nic Williams
Replying to Rich's post on the KVC methods to add to get binding
compliance 
http://lists.macosforge.org/pipermail/macruby-devel/2008-September/000563.html

I'm getting the same error as per this thread, tried adding Rich's KVC
methods to my StaffList.rb (which is probably MyDocument.rb for most
people but I think its an awful name) and the error didn't go away.

The project src is posted on github:
http://github.com/drnic/hillegass-macruby/tree/master/RaiseMan

I get a number of the following errors:

2008-12-30 09:33:16.934 RaiseMan[66636:10b] [
valueForUndefinedKey:]: this class is not key value coding-compliant
for the key displayPatternValue1.

Thoughts?

Nic

-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] NSArrayController

2008-12-29 Thread Nic Williams
Hey Brad,

Ok I replaced initialize with init (like your example) its still failing.

Commit: 
http://github.com/drnic/hillegass-macruby/commit/87d7af005f756291b156346258a561f156a65db5

No doubt its something trivial and obvious. Just not to me.

On Tue, Dec 30, 2008 at 9:59 AM, Brad Wilson  wrote:
> Nic,
>
> I ended up getting by without those methods and using an init method.
>
> http://lists.macosforge.org/pipermail/macruby-devel/2008-October/000582.html
>
> To be honest, I'm not too sure why init worked, and initialize didn't, but
> if I remember correctly, initialize wasn't being called and init was.
> (Again, not too sure of why that would be the case.)
>
> Brad
>
>
> On 30/12/2008, at 10:42 AM, Nic Williams wrote:
>
>> Replying to Rich's post on the KVC methods to add to get binding
>> compliance
>> http://lists.macosforge.org/pipermail/macruby-devel/2008-September/000563.html
>>
>> I'm getting the same error as per this thread, tried adding Rich's KVC
>> methods to my StaffList.rb (which is probably MyDocument.rb for most
>> people but I think its an awful name) and the error didn't go away.
>>
>> The project src is posted on github:
>> http://github.com/drnic/hillegass-macruby/tree/master/RaiseMan
>>
>> I get a number of the following errors:
>>
>> 2008-12-30 09:33:16.934 RaiseMan[66636:10b] [
>> valueForUndefinedKey:]: this class is not key value coding-compliant
>> for the key displayPatternValue1.
>>
>> Thoughts?
>>
>> Nic
>>
>> --
>> Dr Nic Williams
>> iPhone and Rails consultants - http://mocra.com
>> Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
>> * Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
>> ___
>> 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
>



-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Mocha

2008-12-30 Thread Nic Williams
NT/MacRuby/mocha/lib/mocha/inspect.rb:9:in
> `mocha_inspect'
>
>  
> /Users/eloy/Documents/DEVELOPMENT/MacRuby/mocha/test/unit/object_inspect_test.rb:13:in
> `test_should_return_default_string_representation_of_object_not_including_instance_variables'
>
>  14) Error:
> test_should_use_underscored_id_instead_of_object_id_or_id_so_that_they_can_be_stubbed(ObjectInspectTest):
> RangeError: integer 68742647872 too big to convert to `int'
>/Users/eloy/Documents/DEVELOPMENT/MacRuby/mocha/lib/mocha/inspect.rb:9:in
> `%'
>/Users/eloy/Documents/DEVELOPMENT/MacRuby/mocha/lib/mocha/inspect.rb:9:in
> `mocha_inspect'
>
>  
> /Users/eloy/Documents/DEVELOPMENT/MacRuby/mocha/test/unit/object_inspect_test.rb:33:in
> `test_should_use_underscored_id_instead_of_object_id_or_id_so_that_they_can_be_stubbed'
>
>  15) Error:
> test_should_build_any_instance_object(ObjectTest):
> NoMethodError: undefined method `any_instance' for #
>
>  
> /Users/eloy/Documents/DEVELOPMENT/MacRuby/mocha/test/unit/object_test.rb:33:in
> `test_should_build_any_instance_object'
>
>  16) Error:
> test_should_build_mocha_referring_to_self(ObjectTest):
> RangeError: integer 68721495168 too big to convert to `int'
>/Users/eloy/Documents/DEVELOPMENT/MacRuby/mocha/lib/mocha/inspect.rb:9:in
> `%'
>/Users/eloy/Documents/DEVELOPMENT/MacRuby/mocha/lib/mocha/inspect.rb:9:in
> `mocha_inspect'
>
>  
> /Users/eloy/Documents/DEVELOPMENT/MacRuby/mocha/test/unit/object_test.rb:16:in
> `test_should_build_mocha_referring_to_self'
>
>  17) Error:
> test_should_return_same_any_instance_object(ObjectTest):
> NoMethodError: undefined method `any_instance' for #
>
>  
> /Users/eloy/Documents/DEVELOPMENT/MacRuby/mocha/test/unit/object_test.rb:40:in
> `test_should_return_same_any_instance_object'
>
>  18) Failure:
> test_should_use_stubba_class_method_for_class(ObjectTest)
> [/Users/eloy/Documents/DEVELOPMENT/MacRuby/mocha/test/unit/object_test.rb:54]:
>  expected but was
> .
>
>  19) Failure:
> test_should_use_stubba_module_method_for_module(ObjectTest)
> [/Users/eloy/Documents/DEVELOPMENT/MacRuby/mocha/test/unit/object_test.rb:50]:
>  expected but was
> .
>
> 327 tests, 458 assertions, 5 failures, 14 errors
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>



-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] NSManagedObject being returned in delegate as Pointer

2008-12-30 Thread Nic Williams
In this code sample: http://gist.github.com/41855 I am getting a
Pointer instance instead of an NSManagedObject_Recipe instance (from
Core Data). Subsequently the setValue:forKey: call at the end of the
delegate/callback method fails.

The top method addImage(sender) launches an NSOpenPanel, which
delegates to the second/last method
addImageSheetDidEnd:returnCode:contextInfo: when the panel is closed.

But instead of passing through the NSManagedObject_Recipe instance to
the contextInfo: recipe value, I am getting a Pointer.

Is this correct? Or how do I get my NSManagedObject_Recipe instance
from the Pointer. MacRuby src for Pointer class doesn't suggest it has
any methods for getting the pointed-to thing.

rb_cPointer = rb_define_class("Pointer", rb_cObject);
rb_undef_alloc_func(rb_cPointer);
rb_define_singleton_method(rb_cPointer, "new_with_type",
rb_pointer_new_with_type, 1);
rb_define_method(rb_cPointer, "assign", rb_pointer_assign, 1);
rb_define_method(rb_cPointer, "[]", rb_pointer_aref, 1);

Cheers
Nic

-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] NSManagedObject being returned in delegate as Pointer

2008-12-30 Thread Nic Williams
Calling recipe[0] results in this error:

AppDelegate.rb:157:in `[]': can't convert C/Objective-C value
`0x8004676a0' of type `v' to Ruby object (ArgumentError)

I'm not sure what this means. I've played around with the Pointer
class and I can get this error a lot.

The original ObjC signature that is called to open the NSOpenPanel is:

- (void)beginSheetForDirectory:(NSString *)path file:(NSString *)name
modalForWindow:(NSWindow *)docWindow modalDelegate:(id)modalDelegate
didEndSelector:(SEL)didEndSelector contextInfo:(void *)contextInfo

Where the recipe (NSManagedObject_Recipe) is passed into a (void
*)contextInfo. Do I need to do anything fancy for this? Is the (void
*) causing the Pointer creation?

On Wed, Dec 31, 2008 at 1:46 PM, Laurent Sansonetti
 wrote:
> On Dec 30, 2008, at 7:32 PM, Nic Williams wrote:
>
>> In this code sample: http://gist.github.com/41855 I am getting a
>> Pointer instance instead of an NSManagedObject_Recipe instance (from
>> Core Data). Subsequently the setValue:forKey: call at the end of the
>> delegate/callback method fails.
>>
>> The top method addImage(sender) launches an NSOpenPanel, which
>> delegates to the second/last method
>> addImageSheetDidEnd:returnCode:contextInfo: when the panel is closed.
>>
>> But instead of passing through the NSManagedObject_Recipe instance to
>> the contextInfo: recipe value, I am getting a Pointer.
>>
>> Is this correct? Or how do I get my NSManagedObject_Recipe instance
>> from the Pointer. MacRuby src for Pointer class doesn't suggest it has
>> any methods for getting the pointed-to thing.
>>
>>   rb_cPointer = rb_define_class("Pointer", rb_cObject);
>>   rb_undef_alloc_func(rb_cPointer);
>>   rb_define_singleton_method(rb_cPointer, "new_with_type",
>> rb_pointer_new_with_type, 1);
>>   rb_define_method(rb_cPointer, "assign", rb_pointer_assign, 1);
>>   rb_define_method(rb_cPointer, "[]", rb_pointer_aref, 1);
>
> You can do pointer[0] to dereference it.
>
> A Pointer object can be created from a C array of elements, which is why
> Pointer responds to #[] (so that you can dereference a particular slot).
>
> Laurent
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>



-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] NSManagedObject being returned in delegate as Pointer

2008-12-30 Thread Dr Nic Williams
At least I know to look out for (void *) and pass objects around outside them.

Thx for the help.

On Wed, Dec 31, 2008 at 2:08 PM, Laurent Sansonetti
 wrote:
> Oh I see, indeed. The problem here is that the contextInfo argument has a
> "void *" type, so the runtime does not know that you passed an Objective-C
> object for it via an implicit cast.
>
> In this case, we need to introduce a new method on Pointer to allow you to
> change its type. In RubyCocoa, the method is #cast_as, I will probably use
> the same name.
>
> In practice, you should avoid passing objects as context to methods like
> this one, because their implementation won't keep a GC reference to them, so
> they might disappear during a collection cycle.
>
> Laurent
>
> On Dec 30, 2008, at 7:52 PM, Nic Williams wrote:
>
>> Calling recipe[0] results in this error:
>>
>> AppDelegate.rb:157:in `[]': can't convert C/Objective-C value
>> `0x8004676a0' of type `v' to Ruby object (ArgumentError)
>>
>> I'm not sure what this means. I've played around with the Pointer
>> class and I can get this error a lot.
>>
>> The original ObjC signature that is called to open the NSOpenPanel is:
>>
>> - (void)beginSheetForDirectory:(NSString *)path file:(NSString *)name
>> modalForWindow:(NSWindow *)docWindow modalDelegate:(id)modalDelegate
>> didEndSelector:(SEL)didEndSelector contextInfo:(void *)contextInfo
>>
>> Where the recipe (NSManagedObject_Recipe) is passed into a (void
>> *)contextInfo. Do I need to do anything fancy for this? Is the (void
>> *) causing the Pointer creation?
>>
>> On Wed, Dec 31, 2008 at 1:46 PM, Laurent Sansonetti
>>  wrote:
>>>
>>> On Dec 30, 2008, at 7:32 PM, Nic Williams wrote:
>>>
>>>> In this code sample: http://gist.github.com/41855 I am getting a
>>>> Pointer instance instead of an NSManagedObject_Recipe instance (from
>>>> Core Data). Subsequently the setValue:forKey: call at the end of the
>>>> delegate/callback method fails.
>>>>
>>>> The top method addImage(sender) launches an NSOpenPanel, which
>>>> delegates to the second/last method
>>>> addImageSheetDidEnd:returnCode:contextInfo: when the panel is closed.
>>>>
>>>> But instead of passing through the NSManagedObject_Recipe instance to
>>>> the contextInfo: recipe value, I am getting a Pointer.
>>>>
>>>> Is this correct? Or how do I get my NSManagedObject_Recipe instance
>>>> from the Pointer. MacRuby src for Pointer class doesn't suggest it has
>>>> any methods for getting the pointed-to thing.
>>>>
>>>>  rb_cPointer = rb_define_class("Pointer", rb_cObject);
>>>>  rb_undef_alloc_func(rb_cPointer);
>>>>  rb_define_singleton_method(rb_cPointer, "new_with_type",
>>>> rb_pointer_new_with_type, 1);
>>>>  rb_define_method(rb_cPointer, "assign", rb_pointer_assign, 1);
>>>>  rb_define_method(rb_cPointer, "[]", rb_pointer_aref, 1);
>>>
>>> You can do pointer[0] to dereference it.
>>>
>>> A Pointer object can be created from a C array of elements, which is why
>>> Pointer responds to #[] (so that you can dereference a particular slot).
>>>
>>> Laurent
>>> ___
>>> MacRuby-devel mailing list
>>> [email protected]
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>
>>
>>
>>
>> --
>> Dr Nic Williams
>> iPhone and Rails consultants - http://mocra.com
>> Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
>> * Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
>> ___
>> 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
>



-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] Pointers for BOOL types

2009-01-01 Thread Dr Nic Williams
The following method takes a ptr->BOOL. I've played around but cannot
figure out how to create a pointer to a true/false that then returns
true/false via its accessor.

- (BOOL)fileExistsAtPath:(NSString *)path isDirectory:(BOOL *)isDirectory

The following doesn't work:

framework 'Cocoa'
p1 = Pointer.new_with_type('@')
p1.assign(false)
p1[0] == false # => false, but should be true

Then I figured I should be able to pass BOOL to -new_with_type as it
is the data type, but BOOL isn't recognised.

Perhaps test_objc.rb could include some more examples/coverage of
Pointer usage too?

-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] Equivalent of _cmd in macruby?

2009-01-01 Thread Dr Nic Williams
Is there a nice equivalent to _cmd in macruby?

Nic

-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Pointers for BOOL types

2009-01-01 Thread Dr Nic Williams
Ah, thanks.

I've looked thought the src now, and it seems _C_ID and _C_BOOL might
correspond to "@" and "B" but I can't find where they are defined; not
in macruby src nor in Cocoa Dev Documentation.

Where is the list of available Pointer types + their character code?

Cheers
Nic

On Fri, Jan 2, 2009 at 10:15 AM, Vincent Isambart
 wrote:
>> The following doesn't work:
>>
>> framework 'Cocoa'
>> p1 = Pointer.new_with_type('@')
>> p1.assign(false)
>> p1[0] == false # => false, but should be true
>>
>> Then I figured I should be able to pass BOOL to -new_with_type as it
>> is the data type, but BOOL isn't recognised.
>
> The type for bool is upper case B. If you replace @ with B in your
> example it works fine.
>
> Just a little warning about pointers: they tend to forget their type
> if you read the value returned by a function twice. Do not try to read
> more than once their value (just store the value returned by #[] in a
> Ruby variable). However, reusing the same pointer in multiple calls
> seems to work fine.
> For example the following code:
> # rects was retuned by  NSLayoutManager#rectArrayForCharacterRange
> puts rects[0]
> puts rects[0]
>
> Displays:
> # size=#>
> x.rb:222:in `[]': unrecognized octype `?_?' (RuntimeError)
> _______
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>



-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Pointers for BOOL types

2009-01-01 Thread Dr Nic Williams
Sweet, thanks.

On Fri, Jan 2, 2009 at 12:37 PM, Lachie  wrote:
> Hey Nic
>
> Cheque it: 
> http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/chapter_7_section_1.html#//apple_ref/doc/uid/TP40008048-CH100-SW1
>
> :lachie
> http://smartbomb.com.au
> http://www.flickr.com/photos/lachie/
>
>
>
> On Fri, Jan 2, 2009 at 1:04 PM, Dr Nic Williams  
> wrote:
>> Ah, thanks.
>>
>> I've looked thought the src now, and it seems _C_ID and _C_BOOL might
>> correspond to "@" and "B" but I can't find where they are defined; not
>> in macruby src nor in Cocoa Dev Documentation.
>>
>> Where is the list of available Pointer types + their character code?
>>
>> Cheers
>> Nic
>>
>> On Fri, Jan 2, 2009 at 10:15 AM, Vincent Isambart
>>  wrote:
>>>> The following doesn't work:
>>>>
>>>> framework 'Cocoa'
>>>> p1 = Pointer.new_with_type('@')
>>>> p1.assign(false)
>>>> p1[0] == false # => false, but should be true
>>>>
>>>> Then I figured I should be able to pass BOOL to -new_with_type as it
>>>> is the data type, but BOOL isn't recognised.
>>>
>>> The type for bool is upper case B. If you replace @ with B in your
>>> example it works fine.
>>>
>>> Just a little warning about pointers: they tend to forget their type
>>> if you read the value returned by a function twice. Do not try to read
>>> more than once their value (just store the value returned by #[] in a
>>> Ruby variable). However, reusing the same pointer in multiple calls
>>> seems to work fine.
>>> For example the following code:
>>> # rects was retuned by  NSLayoutManager#rectArrayForCharacterRange
>>> puts rects[0]
>>> puts rects[0]
>>>
>>> Displays:
>>> # size=#>
>>> x.rb:222:in `[]': unrecognized octype `?_?' (RuntimeError)
>>> ___
>>> MacRuby-devel mailing list
>>> [email protected]
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>
>>
>>
>>
>> --
>> Dr Nic Williams
>> iPhone and Rails consultants - http://mocra.com
>> Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
>> * Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
>> ___
>> 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
>



-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] attr_accessor on NSManagedObject

2009-01-01 Thread Dr Nic Williams
I subclassed a Core Data entity Recipe with PPRecipe < NSManaged
object, and created accessors for the fields:

class PPRecipe < NSManagedObject
  attr_accessor :name, :desc, :type, :imagePath, :serves
end

but these fields now don't save or display correct after I create
objects, and restart the app for example.

If I remove the :name accessor, then the name field starts
appearing/working in the app again.

What do I need to do to get accessors working for NSManagedObject attributes?

Cheers
Nic

-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] Distributing apps with MacRuby.framework

2009-01-21 Thread Dr Nic Williams
I recently shared a MacRuby app with a friend, with MacRuby.framework
included in the .app via a Copy Files target; but the app died on his
machine complaining that /Library/Frameworks/MacRuby.framework wasn't
available. How do I get the app to use the framework in the .app
bundle?

Nic

-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Distributing apps with MacRuby.framework

2009-01-23 Thread Dr Nic Williams
Thanks for the new idea; though I'm getting an error if I
rename/remove /Library/Frameworks/MacRuby.framework on my dev machine:

`require': no such file to load -- hotcocoa (LoadError)

Here's a screenshot of my Target including the Copy Files + Run Script:

http://skitch.com/drnic/bndc5/copy-framework-and-run-script

The run script text is all on one line.

I have ../MacRuby.framework/Versions/0.4/usr/lib/libmacruby.dylib

Hmm, should we/I be coping over the
.../MacRuby.framework/Versions/0.4/usr/lib/ruby folder as well?

Cheers
Nic

On Fri, Jan 23, 2009 at 7:43 PM, Dömötör Gulyás  wrote:
> The way I do it is to have a copy frameworks build phase, and a "Run
> Script" build phase that runs last with the following script (rather,
> that should all be one line):
>
> install_name_tool -change
> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/libmacruby.dylib
> @executable_path/../Frameworks/MacRuby.framework/Versions/0.4/usr/lib/libmacruby.dylib
> "$TARGET_BUILD_DIR/$EXECUTABLE_PATH"
>
>
> On Jan 22, 2009, at 7:31 , Dr Nic Williams wrote:
>
>> I recently shared a MacRuby app with a friend, with MacRuby.framework
>> included in the .app via a Copy Files target; but the app died on his
>> machine complaining that /Library/Frameworks/MacRuby.framework wasn't
>> available. How do I get the app to use the framework in the .app
>> bundle?
>>
>> Nic
>>
>> --
>> Dr Nic Williams
>> iPhone and Rails consultants - http://mocra.com
>> Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
>> * Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
>> ___
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> _______
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>



-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Distributing apps with MacRuby.framework

2009-01-23 Thread Dr Nic Williams
Hmm, even though I'm now using the copied dylib, the $LOAD_PATH is
still assuming that all the ruby goodies are in
/Library/Frameworks/MacRuby.framework :

["/Users/drnic/Documents/ruby/macruby_apps/CommitChat/build/Release/CommitChat.app/Contents/Resources",
"test", 
"/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/site_ruby/1.9.0",
"/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/site_ruby/1.9.0/universal-darwin9.1",
"/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/site_ruby",
"/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/vendor_ruby/1.9.0",
"/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/vendor_ruby/1.9.0/universal-darwin9.1",
"/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/vendor_ruby",
"/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.0",
"/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.0/universal-darwin9.1",
"."]



On Fri, Jan 23, 2009 at 8:03 PM, Dr Nic Williams
 wrote:
> Thanks for the new idea; though I'm getting an error if I
> rename/remove /Library/Frameworks/MacRuby.framework on my dev machine:
>
>`require': no such file to load -- hotcocoa (LoadError)
>
> Here's a screenshot of my Target including the Copy Files + Run Script:
>
> http://skitch.com/drnic/bndc5/copy-framework-and-run-script
>
> The run script text is all on one line.
>
> I have ../MacRuby.framework/Versions/0.4/usr/lib/libmacruby.dylib
>
> Hmm, should we/I be coping over the
> .../MacRuby.framework/Versions/0.4/usr/lib/ruby folder as well?
>
> Cheers
> Nic
>
> On Fri, Jan 23, 2009 at 7:43 PM, Dömötör Gulyás  wrote:
>> The way I do it is to have a copy frameworks build phase, and a "Run
>> Script" build phase that runs last with the following script (rather,
>> that should all be one line):
>>
>> install_name_tool -change
>> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/libmacruby.dylib
>> @executable_path/../Frameworks/MacRuby.framework/Versions/0.4/usr/lib/libmacruby.dylib
>> "$TARGET_BUILD_DIR/$EXECUTABLE_PATH"
>>
>>
>> On Jan 22, 2009, at 7:31 , Dr Nic Williams wrote:
>>
>>> I recently shared a MacRuby app with a friend, with MacRuby.framework
>>> included in the .app via a Copy Files target; but the app died on his
>>> machine complaining that /Library/Frameworks/MacRuby.framework wasn't
>>> available. How do I get the app to use the framework in the .app
>>> bundle?
>>>
>>> Nic
>>>
>>> --
>>> Dr Nic Williams
>>> iPhone and Rails consultants - http://mocra.com
>>> Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
>>> * Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
>>> ___
>>> MacRuby-devel mailing list
>>> MacRuby-devel at lists.macosforge.org
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>
>
>
> --
> Dr Nic Williams
> iPhone and Rails consultants - http://mocra.com
> Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
> * Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
>



-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Distributing apps with MacRuby.framework

2009-01-23 Thread Dr Nic Williams
Matt, can you create a fork of the macruby github repo with these
patches applied? Or do you have one already?

Cheers
Nic

On Fri, Jan 23, 2009 at 8:30 PM, Matt Mower  wrote:
> On Fri, Jan 23, 2009 at 10:21 AM, Eloy Duran  wrote:
>> Even though a page about RubyCocoa, the steps descried there are pretty
>> general:
>> http://rubycocoa.sourceforge.net/EmbedRubyCocoa
>>
>> The standaloneify script that's mentioned there might give you insight in
>> what you
>> would need to do to bundle everything.
>>
>
> I posted a patch here several weeks ago that make MacRuby embed as a
> "normal" framework with no mucking about.
>
> http://github.com/mmower/embeddable-macruby/tree/master
>
> It also handles internalizing the fixed bridge support files cleanly
> (patched BS files go inside MR instead of messing with your /System
> folder or getting copied into your app every time you build).
>
> m/
>
> --
> Matt Mower :: http://mattmower.com/
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>



-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Distributing apps with MacRuby.framework

2009-01-23 Thread Dr Nic Williams
To fix up the $LOAD_PATH, I added the following to my rb_main.rb
before "require 'hotcocoa'":

local_path = $LOAD_PATH.find {|path| path =~ /CommitChat.app/}
base_local_path = local_path.match(%r{.*CommitChat.app/Contents/})[0]

library_paths = $LOAD_PATH.select {|path| path =~
%r{/Library/Frameworks/MacRuby} }
local_library_paths = library_paths.map { |path|
path.gsub(%r{/Library/}, base_local_path) }

local_library_paths.reverse.each { |path| $:.unshift path }
$:.unshift(local_path)

Nic

On Fri, Jan 23, 2009 at 8:39 PM, Dr Nic Williams
 wrote:
> Matt, can you create a fork of the macruby github repo with these
> patches applied? Or do you have one already?
>
> Cheers
> Nic
>
> On Fri, Jan 23, 2009 at 8:30 PM, Matt Mower  wrote:
>> On Fri, Jan 23, 2009 at 10:21 AM, Eloy Duran  wrote:
>>> Even though a page about RubyCocoa, the steps descried there are pretty
>>> general:
>>> http://rubycocoa.sourceforge.net/EmbedRubyCocoa
>>>
>>> The standaloneify script that's mentioned there might give you insight in
>>> what you
>>> would need to do to bundle everything.
>>>
>>
>> I posted a patch here several weeks ago that make MacRuby embed as a
>> "normal" framework with no mucking about.
>>
>> http://github.com/mmower/embeddable-macruby/tree/master
>>
>> It also handles internalizing the fixed bridge support files cleanly
>> (patched BS files go inside MR instead of messing with your /System
>> folder or getting copied into your app every time you build).
>>
>> m/
>>
>> --
>> Matt Mower :: http://mattmower.com/
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>
>
>
> --
> Dr Nic Williams
> iPhone and Rails consultants - http://mocra.com
> Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
> * Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
>



-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Distributing apps with MacRuby.framework

2009-01-25 Thread Dr Nic Williams
Yeah that does seem a lot simpler... :)

On Fri, Jan 23, 2009 at 10:55 PM, Eloy Duran  wrote:
> Hey Nic,
>
> Wouldn't something like this be sufficient:
>
> $LOAD_PATH.unshift File.join(OSX::NSBundle.mainBundle.privateFrameworksPath,
> 'MacRuby.framework/Versions/Current/usr/lib/ruby/1.9.0')
>
> Eloy
>
> On Jan 23, 2009, at 12:04 PM, Dr Nic Williams wrote:
>
>> To fix up the $LOAD_PATH, I added the following to my rb_main.rb
>> before "require 'hotcocoa'":
>>
>> local_path = $LOAD_PATH.find {|path| path =~ /CommitChat.app/}
>> base_local_path = local_path.match(%r{.*CommitChat.app/Contents/})[0]
>>
>> library_paths = $LOAD_PATH.select {|path| path =~
>> %r{/Library/Frameworks/MacRuby} }
>> local_library_paths = library_paths.map { |path|
>> path.gsub(%r{/Library/}, base_local_path) }
>>
>> local_library_paths.reverse.each { |path| $:.unshift path }
>> $:.unshift(local_path)
>>
>> Nic
>>
>> On Fri, Jan 23, 2009 at 8:39 PM, Dr Nic Williams
>>  wrote:
>>>
>>> Matt, can you create a fork of the macruby github repo with these
>>> patches applied? Or do you have one already?
>>>
>>> Cheers
>>> Nic
>>>
>>> On Fri, Jan 23, 2009 at 8:30 PM, Matt Mower  wrote:
>>>>
>>>> On Fri, Jan 23, 2009 at 10:21 AM, Eloy Duran 
>>>> wrote:
>>>>>
>>>>> Even though a page about RubyCocoa, the steps descried there are pretty
>>>>> general:
>>>>> http://rubycocoa.sourceforge.net/EmbedRubyCocoa
>>>>>
>>>>> The standaloneify script that's mentioned there might give you insight
>>>>> in
>>>>> what you
>>>>> would need to do to bundle everything.
>>>>>
>>>>
>>>> I posted a patch here several weeks ago that make MacRuby embed as a
>>>> "normal" framework with no mucking about.
>>>>
>>>> http://github.com/mmower/embeddable-macruby/tree/master
>>>>
>>>> It also handles internalizing the fixed bridge support files cleanly
>>>> (patched BS files go inside MR instead of messing with your /System
>>>> folder or getting copied into your app every time you build).
>>>>
>>>> m/
>>>>
>>>> --
>>>> Matt Mower :: http://mattmower.com/
>>>> ___
>>>> MacRuby-devel mailing list
>>>> [email protected]
>>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>>
>>>
>>>
>>>
>>> --
>>> Dr Nic Williams
>>> iPhone and Rails consultants - http://mocra.com
>>> Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
>>> * Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
>>>
>>
>>
>>
>> --
>> Dr Nic Williams
>> iPhone and Rails consultants - http://mocra.com
>> Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
>> * Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
>> ___
>> 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
>



-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #217: Pretty-Preeze wizard me up a Tiger version

2009-01-26 Thread Dr Nic Williams

I think MacRuby depends on the GC in ObjC 2.0 which came with Leopard.

Cheers
Nic

Mocra - http://mocra.com
Blog - http://drnicwilliams.com

On 27/01/2009, at 7:52 AM, "MacRuby"   
wrote:



#217: Pretty-Preeze wizard me up a Tiger version
 
+---

Reporter:  mistergib...@…  |   Owner:  lsansone...@…
Type:  enhancement |  Status:  new
Priority:  major   |   Milestone:  MacRuby 0.4
Component:  MacRuby |Keywords:  tiger
 
+---

Dear MacRuby Gods,

I live in the cheap seats of life, and do not have the where-with- 
all to

get a Leopard machine.  Also, I know many *many* people in the same
situation.  What would it take to downgrade / retrofit the stubs of  
this

project to something the venerable Tiger could gum down?

Also, if its a question of resources ... how much and who do I bribe?

Thanks,

G. Gibson

--
Ticket URL: 
MacRuby 

___
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 - can't find executable...how to find it

2009-01-30 Thread Dr Nic Williams
Try: $LOAD_PATH.unshift
File.join(OSX::NSBundle.mainBundle.privateFrameworksPath,
'MacRuby.framework/Versions/Current/usr/lib/ruby/1.9.0')

(from Eloy a few days ago)

On Fri, Jan 30, 2009 at 6:27 PM, Tim Rand  wrote:
>>> $:.each{|path| puts path + "/" + "hotcocoa.rb" if File.exists?(path + "/"
>>> + "hotcocoa.rb")}
> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.0/hotcocoa.rb
>
> $: is a ruby environmental variable for an array of all the paths that ruby
> looks at to require a file.
> Another useful one to know is $", which holds the names of all currently
> loaded external files.
>
> I would imagine that somehow the path setting has been altered or you
> accidentally moved hotcocoa to a location not included in the $: set.
>
> I am frustrated that macgem is not functioning too. There are a lot of
> possible reasons for it, but the most likely seems to be that many of the
> gems for older versions of ruby need to be updated to work with 1.9, the
> version that macruby is based on. Alternatively, failure of any given gem to
> load could be due to macruby being under development and yet incomplete.
>
> For me getting certain gems like sqlite3 to funciton with macruby is a
> necessity.
>
> Perhaps wonderful Laraunt or someone else could share some of his/her wisdom
> on this issue of why many gems don't work, and if there is a plan for how to
> fix it. Otherwise, I am going to keep plugging away at it in my spare
> time--maybe around 2050 or so I will solve it. But I will solve it
> eventually, because I love the idea of macruby and I love my old gem library
> and I can't live without either.
> Tim
>
> _______
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>



-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Who wants to install gems anyways?! Introducing MicroGem

2009-02-09 Thread Dr Nic Williams
µ complete me

On Mon, Feb 9, 2009 at 7:36 PM, Eloy Duran  wrote:
> Hehehe.
> Actually this is meant as a forced way to have people _not_ think about
> ASCII too much, as I think that happens way too often :-)
> However, if there are technical problems I will rename it to, for instance,
> microgem. But until then I prefer the shorter version.
> For us on the mac the way to type this character is ALT+M, see the excellent
> Keyboard Viewer for this kind of info.
> (Which you might need to enable in System Preferences -> International ->
> Input menu)
>
> Cheers,
> Eloy
> On Feb 9, 2009, at 10:11 AM, Matt Aimonetti wrote:
>
> it looks like a very interesting project but may I suggest you drop the µ
> letter that most of us probably don't know how to type :(  Sticking to ASCII
> might be better.
>
> - Matt
>
>
>
> On Mon, Feb 9, 2009 at 12:40 AM, Eloy Duran  wrote:
>>
>> Hi,
>>
>> As most people know installing gems on MacRuby still fails for most gems.
>> I was getting so annoyed looking through the source of RubyGems
>> that I decided to write a clean room implementation of it.
>> For now it only does installing, but was the only goal since that's what
>> fails on MacRuby.
>> It might try to do more to replace RubyGems in the future,
>> discussion/patches are all welcome.
>> For instance, I'm gonna use it do gem vendoring in Rucola.
>>
>> Anyways, to the real interesting part of this mail :-)
>> I was actually gonna wait with a first release until MicroGem was able to
>> bootstrap itself
>> and install, but I haven't had time for that yet. So for now follow these
>> instructions:
>>
>> Get source:
>>  $ git clone git://github.com/alloy/microgem.git
>>  $ cd microgem
>>
>> Install the remote gem:
>>  $ sudo env PRODUCTION=true macruby ./bin/µgem install alloy-microgem
>> --simple --debug
>>
>> Then to install a gem:
>>  $ sudo macµgem install mocha --simple
>>
>> For more information see: http://github.com/alloy/microgem/tree/master
>>
>> Looking forward to reactions.
>>
>> Cheers,
>> Eloy
>> ___
>> 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
>
>



-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [ANN] MacRuby 0.4

2009-03-09 Thread Dr Nic Williams
Yay for 0.4!! Thanks for an awesome project.

Nic

On Mon, Mar 9, 2009 at 2:52 PM, Laurent Sansonetti
 wrote:
> Hi,
>
> After several months of development and some slight delays, MacRuby
> 0.4 is now available. Get it here while it's still hot!
>
> MacRuby is a version of Ruby 1.9, ported to run directly on top of Mac
> OS X core technologies such as the Objective-C common runtime and
> garbage collector, and the CoreFoundation framework. While still a
> work in progress, it is the goal of MacRuby to enable the creation of
> full-fledged Mac OS X applications which do not sacrifice performance
> in order to enjoy the benefits of using Ruby.
>
> You can learn more about MacRuby, and download a binary installer,
> from the website:
>
> http://ruby.macosforge.org
>
> Or about this release more specifically, on our blog:
>
> http://www.macruby.org/post/macruby-04
>
> Enjoy,
>
> Laurent
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>



-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] ruby gems just for MacRuby

2009-03-09 Thread Dr Nic Williams
On Tue, Mar 10, 2009 at 5:32 AM, Matt Aimonetti  wrote:
> Sorry Rich, but I personally only target intel processors. I don't think
> MacRuby will ever officially support non-intel machines.

You never know when Steve Jobs will get up on stage and excitedly tell
the Faithful that the next generation Macs will be on XYZ processor
(because he got a better profit margin from them).

Processor type isn't sacred afaik.

Nic

-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] ruby gems just for MacRuby

2009-03-09 Thread Dr Nic Williams
You can give each gem a platform scope. Windows-only gems are the most
common incarnation of this.

There is an OS X-only gem "ghost" (http://github.com/bjeanes/ghost/tree/master):

  ~ : sudo gem install ghost
  Password:
  Successfully installed ghost-0.1.2-universal-darwin-9


Mongrel is a great example of distributing gems for different
platforms (unix, windows, java - see
http://rubyforge.org/frs/?group_id=1306)

Look inside their gemspec/hoe config for how they do this.

MacRuby's gem command could be hard-wired to only pull down macruby
gems of some sort.

This is all I know without doing more investigation.

Cheers
Nic


On Tue, Mar 10, 2009 at 8:43 AM, Matt Aimonetti  wrote:
> Nic,
>
>  Any suggestions to deal with macruby only gems? I don't think macruby can
> be considered a platform so any suggestions?
>
> - Matt
>
> On Mon, Mar 9, 2009 at 5:15 PM, Dr Nic Williams 
> wrote:
>>
>> On Tue, Mar 10, 2009 at 5:32 AM, Matt Aimonetti 
>> wrote:
>> > Sorry Rich, but I personally only target intel processors. I don't think
>> > MacRuby will ever officially support non-intel machines.
>>
>> You never know when Steve Jobs will get up on stage and excitedly tell
>> the Faithful that the next generation Macs will be on XYZ processor
>> (because he got a better profit margin from them).
>>
>> Processor type isn't sacred afaik.
>>
>> Nic
>>
>> --
>> Dr Nic Williams
>> iPhone and Rails consultants - http://mocra.com
>> Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
>> * Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
>> ___
>> 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
>
>



-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] ruby gems just for MacRuby

2009-03-09 Thread Dr Nic Williams
If the gem name has a specific platform/arch then it won't be visible
to alternate archicture/platforms afaik.

On Tue, Mar 10, 2009 at 10:05 AM, Rich Morin  wrote:
> Matt Aimonetti wrote:
>> Sorry Rich, but I personally only target intel processors.
>> I don't think MacRuby will ever officially support non-intel
>> machines.
>
> Since when does the Open Source community take its direction
> from "official" vendor decisions?  As long as a free, working
> code base exists for a processor and OS, I'm happy to use it.
>
> Nor, indeed, am I asking any particular developer to target
> a given processor.  I simply want any packaging standard we
> adopt to be flexible enough to handle multiple processors.
>
> -r
> --
> http://www.cfcl.com/rdm            Rich Morin
> http://www.cfcl.com/rdm/resume     [email protected]
> http://www.cfcl.com/rdm/weblog     +1 650-873-7841
>
> Technical editing and writing, programming, and web development
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>



-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel