• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
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?


  • 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
  • Follow-Ups:
    • Re: what's an easy way to use NSBrowser?
      • From: "Alan Smith" <email@hidden>
References: 
 >what's an easy way to use NSBrowser? (From: "Alan Smith" <email@hidden>)
 >Re: what's an easy way to use NSBrowser? (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: SearchKit ObjC Wrapper?
  • Next by Date: Re: drawKnob in NSSliderCell subclass
  • Previous by thread: Re: what's an easy way to use NSBrowser?
  • Next by thread: Re: what's an easy way to use NSBrowser?
  • Index(es):
    • Date
    • Thread