• 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: 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


  • Follow-Ups:
    • Re: what's an easy way to use NSBrowser?
      • From: Ondra Cada <email@hidden>
References: 
 >what's an easy way to use NSBrowser? (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Re: NSAppleScript and script editor
  • Next by Date: Re: SearchKit ObjC Wrapper?
  • Previous by thread: what's an easy way to use NSBrowser?
  • Next by thread: Re: what's an easy way to use NSBrowser?
  • Index(es):
    • Date
    • Thread