• 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: Two ways to get this NSTableView behaviour but I do not know how to implement either
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two ways to get this NSTableView behaviour but I do not know how to implement either


  • Subject: Re: Two ways to get this NSTableView behaviour but I do not know how to implement either
  • From: Gerben Wierda <email@hidden>
  • Date: Sun, 13 Oct 2002 16:09:12 +0200

On Saturday, Oct 12, 2002, at 23:16 Europe/Amsterdam, Scott Anguish wrote:

On Saturday, October 12, 2002, at 04:23 PM, Gerben Wierda wrote:



Were it a fixed set op options, it would be implemented with checkboxes. But the set has a variable length, so I need a table view solution that behaves like checkboxes (single itemn select and deselect), or in other words, the way a table view would behave when every event was a Cmd-click.



Just use a tableview with a column of checkboxes... this sounds similar to what I do in OpenUp in the delete panel.. the code is all there..

This was the *perfect* solution. Thanks Scott!

I had missed the documentation where it says an encompassing scrollview will automaticall resize (Erik Buck writes: Resizing and scrolling works automatically (see sizeToCells) if the matrix is the document view of a scroll view) so I was under the impression I would have to do a lot of coding with NSRects and NSViews. I also had a bad experience with trying to get a working NSProgressIndicator in a NSTableView column (which failed), hence my fear that doing this in an NSTableView would be messy. But with the checkbox it works perfectly and it is clean ans simple.

Thanks everybody for your help.

G
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Two ways to get this NSTableView behaviour but I do not know how to implement either (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: Displaying different languages in an NSTableView
  • Next by Date: Re: Document specific menus in a multi document application
  • Previous by thread: Re: Two ways to get this NSTableView behaviour but I do not know how to implement either
  • Next by thread: Re: Two ways to get this NSTableView behaviour but I do not know how to implement either
  • Index(es):
    • Date
    • Thread