• 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: NSTreeController Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTreeController Problem


  • Subject: Re: NSTreeController Problem
  • From: Hamish Allan <email@hidden>
  • Date: Wed, 9 Nov 2005 04:57:15 +0000

Gentle people,

I have written an example project showing the use of NSTreeController without Core Data -- a master-detail file chooser. It's available here (I'll put it somewhere more permanent soon):

http://igor.gold.ac.uk/~map01ra/BindTest.zip

I wrote this to learn how to bind NSBrowser, but I also put in an NSOutlineView since it comes for free :)

I am experiencing a few glitches. The first is probably a manifestation of the bug (or a close family member) that Austin Sarner posted about on Sunday: http://www.cocoabuilder.com/archive/ message/cocoa/2005/11/6/149569

My UI also has a source table with a tree controller bound to its selection. When you add a few file paths, a couple with 2 or 3 components and a nice long one with 8 or so, when you switch from the 8 to the 2 or 3, the NSOutlineView binding sets the selection index paths to be empty. This only happens with the NSOutlineView -- if you delete it from the Nib and use just the NSBrowser it works fine.

However, the NSBrowser binding seems to have a few bugs of its own. If you set it in the Nib to disallow multiple selection (and remove the NSOutlineView); add a few file paths, click from one to another and then click on another item in the NSBrowser at the same level as the currently selected item, you'll see what I mean. Or turn on full accessibility, switch item to view detail on, tab to the NSBrowser and use the keyboard to navigate around it for similar strangeness.

Anyway, I hope this example is of use to someone.

Best wishes,
Hamish

P.S. If anyone can see how to go about setting the appropriate file icon images in the NSBrowserCells of a bound NSBrowser, I would love to hear from you.

_______________________________________________
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


  • Prev by Date: Re: Borderless NSWindow contentView problem
  • Next by Date: Re: progress bar when creating file
  • Previous by thread: NSTreeController Problem
  • Next by thread: Re: NSTreeController Problem
  • Index(es):
    • Date
    • Thread