OS X - Development and Darwin Discussion and questions about development for Mac OS X.

NSBrowser confusion


Post Reply New Thread Subscribe

 
Thread Tools
wotmania505

 
Member Since: Feb 09, 2011
Posts: 2
wotmania505 is on a distinguished road

wotmania505 is offline
So, I've recently started learning to use XCode, and one thing I want to add to my application is a browser that allows the user to click an item in one column and get a list of items to select in the next column (that is, like the Finder's browser).

In order to do this, I figured I should use NSBrowser. After crawling through the documentation and various web boards, including Apple's SimpleBrowser example, I find that I still have no idea how to actually implement the browser.

Heres what I have so far:

A browser created in interface builder - just the NSBrowser object, nothing else (is anything else needed?)

a class in xcode for the delegate

an NSMutableDictionary for the entries in the first column

I have two main questions:

How do I get the data from the NSMutableDictionary (or an NSSet, or an NSArray - any will work) to the column of the browser?

How do I connect another list of data to a specific entry in the column (so that it will show when that entry is selected)?


Preferably, I'd like to use the item-based API that Apple introduced, although anything is fine at this point. Can anyone help me?
QUOTE Thanks

Post Reply New Thread Subscribe


« Newbie help needed | Correct use of a loop a shell script »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
itunes importing library mass confusion marco772 iOS and Apps 0 10-15-2009 07:40 PM
Utter Confusion: Documents/Images ryms0012 Images, Graphic Design, and Digital Photography 2 08-23-2008 11:10 PM
Nano / Mac / PC confusion tootallUK iPod Hardware and Accessories 4 07-28-2007 02:19 PM
Torrents Confusion!! bennjiboi OS X - Apps and Games 0 07-25-2007 06:47 AM
PC to Mac switching confusion? lunasdude Apple Rumors and Reports 4 04-16-2007 10:53 AM

All times are GMT -4. The time now is 02:37 AM.

Powered by vBulletin
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?