• 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: cocoa-dev digest, Vol 2 #4574 - 14 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cocoa-dev digest, Vol 2 #4574 - 14 msgs


  • Subject: Re: cocoa-dev digest, Vol 2 #4574 - 14 msgs
  • From: Rick Bischoff <email@hidden>
  • Date: Thu, 29 Jul 2004 22:11:03 -0500

Hi Pierre,

Take a look at NSArrayController's "arrangedObjects" method. You can manually call this method after you change
the cell, etc. (Then you just have to call your setArray method or whatever to make it redisplay in the table).

Rick Bischoff

On Jul 29, 2004, at 1:37 PM, email@hidden wrote:

To: email@hidden
From: Pierre Chatelier <email@hidden>
Subject: NSTableView, bindings, auto-sorting
Date: Thu, 29 Jul 2004 19:04:52 +0200

Hello,

I am new at cocoa programming : I just began a few days ago, after much
doc reading. Things are rather well documented and it seems to me that
learning is very fast, but here is an example of something I could not
yet solve by myself.

I currently try to build a little application centered on a table view.
For now, it works very well : through bindings and an
NSArrayController, I am able to feed my tableview with almost no code.
For free, it appears also that each column can be sorted just by
clicking in the column header.
However, some of the cells in my tableview are editable, and when I
change the content of one of them in the current "sorting column", I
expect the table to auto-re-sort. But it is not the case, and I must
click again on the column header to trigger the sort.
I tried to call reloadData in many different contexts, with and without
observers on cells, with delegation tricks... but so far I could not
make it work properly.

Is there something important I miss ?

Thanks in advance


Pierre Chatelier
_______________________________________________
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.


  • Prev by Date: Re: NSTableView with imbedded NSComboBoxCell problem
  • Next by Date: Re: [OT] Premature optimizations (was: Where is NSList?)
  • Previous by thread: NSTextField vertical alignment
  • Next by thread: Re: [OT] Premature optimizations
  • Index(es):
    • Date
    • Thread