[MacRuby-devel] NSArrayController

2008-12-29 Thread Nic Williams
]: 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

Re: [MacRuby-devel] NSArrayController

2008-12-29 Thread Nic Williams
ly, 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 >

Re: [MacRuby-devel] Mocha

2008-12-30 Thread Nic Williams
/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

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

2008-12-30 Thread Nic Williams
"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

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

2008-12-30 Thread Nic Williams
anagedObject_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: h

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

2008-12-30 Thread Dr Nic Williams
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] res

[MacRuby-devel] Pointers for BOOL types

2009-01-01 Thread Dr Nic Williams
rk '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/c

[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

Re: [MacRuby-devel] Pointers for BOOL types

2009-01-01 Thread Dr Nic Williams
ple the following code: > # rects was retuned by NSLayoutManager#rectArrayForCharacterRange > puts rects[0] > puts rects[0] > > Displays: > # size=#> > x.rb:222:in `[]': unrecognized octype `?_?' (RuntimeError) > _______ > Ma

Re: [MacRuby-devel] Pointers for BOOL types

2009-01-01 Thread Dr Nic Williams
artbomb.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 "

[MacRuby-devel] attr_accessor on NSManagedObject

2009-01-01 Thread Dr Nic Williams
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

[MacRuby-devel] Distributing apps with MacRuby.framework

2009-01-21 Thread Dr Nic Williams
- 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]

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

2009-01-23 Thread Dr Nic Williams
ework/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

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

2009-01-23 Thread Dr Nic Williams
ibrary/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 getti

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

2009-01-23 Thread Dr Nic Williams
ng 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.ma

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

2009-01-23 Thread Dr Nic Williams
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 creat

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

2009-01-25 Thread Dr Nic Williams
s/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|

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 +--

Re: [MacRuby-devel] hotcocoa - can't find executable...how to find it

2009-01-30 Thread Dr Nic Williams
her. > 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 iP

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

2009-02-09 Thread Dr Nic Williams
gt; MacRuby-devel mailing list >> [email protected] >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > _______ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge

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

2009-03-09 Thread Dr Nic Williams
gt; 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

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

2009-03-09 Thread Dr Nic Williams
at 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 f

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

2009-03-09 Thread Dr Nic Williams
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

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

2009-03-09 Thread Dr Nic Williams
cl.com > 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/mailm