#194: NSOperation / NSOperationQueue#addOperation causes crash?
+---
Reporter: rebo...@… | Owner: lsansone...@…
Type: defect | Status: new
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
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
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,
> 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
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/ *
__
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