[MacRuby-devel] [MacRuby] #194: NSOperation / NSOperationQueue#addOperation causes crash?

2009-01-01 Thread MacRuby
#194: NSOperation / NSOperationQueue#addOperation causes crash? +--- Reporter: rebo...@… | Owner: lsansone...@… Type: defect | Status: new

[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 a

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

Re: [MacRuby-devel] Pointers for BOOL types

2009-01-01 Thread Lachie
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:

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,

Re: [MacRuby-devel] Pointers for BOOL types

2009-01-01 Thread Vincent Isambart
> 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 uppe

[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] 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 = Poi