Re: what's an easy way to use NSBrowser?
Re: what's an easy way to use NSBrowser?
- Subject: Re: what's an easy way to use NSBrowser?
- From: Sherm Pendley <email@hidden>
- Date: Wed, 17 May 2006 16:49:22 -0400
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