Help: Data Modelling, NSTreeController and NSBrowser
Help: Data Modelling, NSTreeController and NSBrowser
- Subject: Help: Data Modelling, NSTreeController and NSBrowser
- From: Lachlan Deck <email@hidden>
- Date: Tue, 3 Oct 2006 11:36:09 +1000
Hi all,
I did a fair amount of googling last night trying to figure out how
to successfully instantiate an NSTreeController. I understand, from
this, that it's not without problems. However I cannot even get the
application to launch if I've instantiated one in the Nib file.
Let me preface this by saying, "Any help would be greatly
appreciated...".
The application: "Core Data Application" - not document based.
The model (so far is fairly basic):
I have an entity defined called Category which has:
+ Attributes:
- name (String)
+ Relationships:
- category [toOne, Category optional]
- subcategories [toMany, Category, optional]
From within Interface Builder I've instantiated an NSTreeController
with bindings:
- Entity: Category (Automatically prepares content)
- Children keypath: subcategories
- Predicate: category == nil
- managedObjectContext: (Bind ticked)
- Bind to: AppDelegate
- modelKeyPath: managedObjectContext
And the NSBrowser:
- content:
- Bind to: TreeController
- controller key: arrangedObjects
- contentValues:
- Bind to: TreeController
- controller key: arrangedObjects
- Model key path: name
The problem I'm getting, which I can't figure out, is how to resolve
the following runtime error.
2006-10-03 04:05:06.670 TestApp[21868] *** -[NSTreeController
presentError:]: selector not recognized [self = 0x35be00]
2006-10-03 04:05:06.670 TestApp[21868] *** NSRunLoop ignoring
exception '*** -[NSTreeController presentError:]: selector not
recognized [self = 0x35be00]' that raised during posting of delayed
perform with target 384660 and selector 'invokeWithTarget:'
Any ideas?
Is there something I've not bound? I couldn't find any documentation
or example projects involving NSTreeController and NSBrowser.
Thanks.
Btw, I've also tried just binding the NSBrowser's value but that
doesn't work either.
with regards,
--
Lachlan Deck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden