]: 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
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
>
/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
"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
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
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
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
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
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
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 "
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
-
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]
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
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
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
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
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|
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
+--
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
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
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
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
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
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
24 matches
Mail list logo