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: "Alan Smith" <email@hidden>
- Date: Wed, 17 May 2006 18:30:34 -0400
Thank you all.
Sadly I'm using 10.3 and since NSTreeControllers weren't made until
10.4 I can't use them.
What does the browser expect when it calls
"browser:willDisplayCell:atRow:column:"? It doesn't return anything.
Okay. I still don't understand all this so to make this easiest I'll
explain exactly what I want.
There will be a NSBrowser with ONLY two columns, it won't be able to
go beyond that. The user will select one of the three items in the
column on the left. If the row selected was "EV Nova" the second
column will display the contents of the folder at "~/Application
Support/EV Manager/EV Nova Pilots" How can I do this on 10.3 so that
it is compatible with 10.1 throuth 10.4?
Thanks again, Alan
On 5/17/06, Ondra Cada <email@hidden> wrote:
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
--
// Quotes from yours truly -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
_______________________________________________
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