Re: [solved] NSManagedObject and weak references under GC
Re: [solved] NSManagedObject and weak references under GC
- Subject: Re: [solved] NSManagedObject and weak references under GC
- From: Rob Keniger <email@hidden>
- Date: Wed, 4 Nov 2009 16:15:29 +1000
On 04/11/2009, at 3:41 PM, Rob Keniger wrote:
However, now that I've switched the document to be a subclass of
NSPersistentDocument, I am getting compilation errors in my
NSViewController subclass when it tries to access the foo property
of the document:
document.foo = @"bar";
-> error: property 'foo' not found on object of type 'MyDocument
*__attribute__((objc_gc(weak)))'
Why would this compiler error be occurring?
Turns out it was nothing to do with the weak reference, but a problem
with the way I created the foo property in the document object. All
working now.
--
Rob Keniger
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden