• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [solved] NSManagedObject and weak references under GC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSManagedObject and weak references under GC (From: Rob Keniger <email@hidden>)

  • Prev by Date: NSManagedObject and weak references under GC
  • Next by Date: Re: Should I learn CoreData for this project?
  • Previous by thread: NSManagedObject and weak references under GC
  • Next by thread: Problems with Thai Fonts in 10.6.1
  • Index(es):
    • Date
    • Thread