• 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
NSOutlineView autosaving expanded items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOutlineView autosaving expanded items


  • Subject: NSOutlineView autosaving expanded items
  • From: email@hidden
  • Date: Sun, 9 Dec 2007 21:40:49 +0100


Hello,

I am working on a Core Data based application and I am trying to use NSOutlineView's "autosaving expanded items". The items of the NSOutlineView are objects of the "SourceItem" Entity which are hold by a NSTreeController.
The "SourceItem" has 3 main properties. The string attribute "title" which is displayed, a to-many relationship "children" and the inverse to-one relationship "parent".


I checked "autosave expaned items" at InterfaceBuilder and set the autosave property to "sourceView". After that I created a DataSource with dummy methods except the following method:

- (id)outlineView:(NSOutlineView *)anOutlineView persistentObjectForItem:(id)item {
return [item representedObject];
}



When I start the application and expand an item I get the following NSLog message:


*** -[NSUserDefaults setObject:forKey:]: Attempt to insert non- property value '(
<NSManagedObject: 0x1c8a40> (entity: SourceItem; id: 0x17e000 <x-coredata://CDC95DB4-4D2A-4B41-8016-B9034C6388CF/SourceItem/p102 > ; data: {
children = (
0x186050 <x-coredata://CDC95DB4-4D2A-4B41-8016-B9034C6388CF/SourceItem/p103 >
);
filter = nil;
isCollapsable = 0;
isConstant = 1;
isGroupItem = 1;
parent = nil;
title = LIBRARY;
})
)' of class 'NSCFArray'.


Best regards,
Konrad


_______________________________________________

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


  • Prev by Date: Re: Debugger exits with signal 5 (SIGTRAP) after computer crashed.
  • Next by Date: Re: Transformable Attributes
  • Previous by thread: Re: NSOutlineView expansion limit
  • Next by thread: NSOpenPanel
  • Index(es):
    • Date
    • Thread