0

I have an App that lets the user choose a Browser, or Column View, much like Finder. Since it allows the user to browse a Backup, I'd love to have something like the Finder has in Column view. You select a file, and it shows details about it in the column view, next to the file, like this: Image

My application looks like this, when a leaf is selected: Image

Here, you can see how a sort of Preview/Inspector thing might help. I have it all set up in an NSView, but just have no idea how to add that functionality in there. Any help would be greatly appreciated!

Tristan
  • 3,058
  • 6
  • 40
  • 68

1 Answers1

2

How about -[<NSBrowserDelegate> browser:previewViewControllerForLeafItem:]?

Dave DeLong
  • 242,470
  • 58
  • 448
  • 498
  • Didn't see that one while browsing through the Docs that were on my computer (Mind you, I was 3 das without internet, terrible, I know) didn't mention that. I'll take a look at it later today. – Tristan Jan 18 '11 at 05:27
  • I changed my Column View delegate to look like this: http://pastebin.com/m7masnjD and yet I never see the log on the console. What could possibly be wrong here? – Tristan Jan 18 '11 at 05:35
  • @Tristan that delegate method is for when you're using the item-based delegate methods, which it doesn't look like you are. – Dave DeLong Jan 18 '11 at 05:47
  • Oh, I see. I should have figured that out a tad sooner. – Tristan Jan 18 '11 at 15:21