• 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
Help: Data Modelling, NSTreeController and NSBrowser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Help: Data Modelling, NSTreeController and NSBrowser
      • From: John Harte <email@hidden>
  • Prev by Date: Overriding NSCell's editWithFrame:...
  • Next by Date: serial comm with GPS, not quite an NMEA sentence
  • Previous by thread: Re: Overriding NSCell's editWithFrame:...
  • Next by thread: Re: Help: Data Modelling, NSTreeController and NSBrowser
  • Index(es):
    • Date
    • Thread