• 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: more than one attribute in tableview cell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more than one attribute in tableview cell


  • Subject: Re: more than one attribute in tableview cell
  • From: Volker Runkel <email@hidden>
  • Date: Wed, 3 Jan 2007 11:23:29 +0100

Hi Rolf,

your wish is possible, but not with just a single binding. If you are using CoreData you can create one transient value that returns the composition of your three numbers. See the documentation for an example with FirstName, LastName and FullName ( file:///Developer/ADC Reference Library/documentation/Cocoa/Conceptual/ NSPersistentDocumentTutorial/03_CustomClass/ chapter_4_section_3.html#//apple_ref/doc/uid/TP40002831- DontLinkElementID_18 ). The sorting has to be implemented in code by and, I only don't see how the interface will be designed so that features is easily used.

If you are not using CoreData, you still should be able to add a pair of Accessor methods to your model to provide the composite string via KeyValueCoding.


Volker


I like to bind a tableview column to a combination
of 3 entity attributes and be able to sort the table
depending on one of the 3 attributes.
For example the column cell should look like this:  040-23455-878
where

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
    • Switch/case with NSString?
      • From: d2kagw <email@hidden>
References: 
 >more than one attribute in tableview cell (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Compositing a QCView over an NSImageView
  • Next by Date: Switch/case with NSString?
  • Previous by thread: more than one attribute in tableview cell
  • Next by thread: Switch/case with NSString?
  • Index(es):
    • Date
    • Thread