• 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: Line Numbers in Tables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Line Numbers in Tables


  • Subject: Re: Line Numbers in Tables
  • From: Gordon Apple <email@hidden>
  • Date: Thu, 30 Aug 2007 21:31:11 -0500

    I implemented your approach for now and it works.  However, isn't there
any better way to bind the column directly to the enclosing TableView?
Using your approach, I'm going through my document object just to make the
connection.  What happens if I want a second instance of the (nib) view for
the same document?  Will the column references automatically get updated to
the active window?

    Also, this is sort of a self-synchronizing approach to the enumeration,
which is probably ok, assuming the table iterates all the rows each time.

> Yes, that's true. What I showed is actually not simple line numbers,
> but the order of the objects in the array. In my app those two happen
> to always be in sync, since sorting the table view sorts the master
> array. But if sorting a table view doesn't sort the underlying master
> array then, even if you have only one table view, this technique
> won't show the result's you're after. Apologies for the mixup and
> lack of clarity.
>
> The following however will show proper line numbers:
...........
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Line Numbers in Tables
      • From: Chris Suter <email@hidden>
  • Prev by Date: Re: Who Calls Accessors in Bookmarks?
  • Next by Date: Re: [Q] Remote Messaging : Keep sending msg to a destroyed remote object
  • Previous by thread: Re: Line Numbers in Tables
  • Next by thread: Re: Line Numbers in Tables
  • Index(es):
    • Date
    • Thread