Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: what's an easy way to use NSBrowser?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what's an easy way to use NSBrowser?



On May 17, 2006, at 4:03 PM, Alan Smith wrote:

I need to implement a quick little NSBrowser. It will have two
sections/colums and when the first is clicked the second displays
several rows as a result of selecting that specific row in the first
colum. I looked at "SimpleBrowser" but it isn't simple. How do I use
an NSBrowser?

Here ya go:

<http://developer.apple.com/documentation/Cocoa/Conceptual/Browser/ index.html>

In a nutshell, you either implement an "active" method that creates an NSArray of NSCells for each column, or a "passive" method that returns the number of rows in each column, allowing NSBrowser to create the cells. Then you implement a method that's called before each cell is displayed, so that you can set its title, display properties, etc.

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

_______________________________________________
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


References: 
 >what's an easy way to use NSBrowser? (From: "Alan Smith" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.