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: Ondra Cada <email@hidden>
- Date: Wed, 17 May 2006 23:12:16 +0200
Alan,
On 17.5.2006, at 22:49, Sherm Pendley wrote:
<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.
Actually it happens to be *much* easier with an NSTreeController and
bindings, but I dunno whether there's a simple example anywhere (well
it would not be worth creating an example project in a sense, for it
would need something in order of two to five source lines I estimate :))
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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