• 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: Bindings help: Row-specific Null Placeholder in an NSTableColumn
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings help: Row-specific Null Placeholder in an NSTableColumn


  • Subject: Re: Bindings help: Row-specific Null Placeholder in an NSTableColumn
  • From: Abhi Beckert <email@hidden>
  • Date: Sun, 23 Jan 2005 09:12:20 +1000

Sweet! I should've thought of that! ;-)

I'll create an attributedDisplayName key that returns a grey string if
it uses the name of the file. Too easy, I love Bindings.

Thanks guys!
- Abhi


On Sat, 22 Jan 2005 23:13:46 +0100, M. Uli Kusterer
<email@hidden> wrote:
> At 15:05 Uhr +1000 22.01.2005, Abhi Beckert wrote:
> >In an app I'm thinking of writing I have a table view where each row
> >represents a file, and I'm going to have to open up the file and stuff
> >in order to work out what goes in the row (probably take about 2
> >seconds for each file). Obviously this is way too slow, so for the
> >rows that haven't been loaded yet I'm just going to display the name
> >of the file.
> >
> >Idealy, when the file for a row hasn't been loaded yet, I'd like that
> >row to be displayed in grey rather than black.
>
>   You can use an NSAttributedString instead of an NSString as the row
> value, and then specify styles or other colors as you see fit. You
> may want to use key-value-coding for this and just write a fake
> accessor for the name, which calls the real one and wraps it in an
> attributed string as desired.
> --
> Cheers,
> M. Uli Kusterer
> ------------------------------------------------------------
>         "The Witnesses of TeachText are everywhere..."
>                     http://www.zathras.de
>  _______________________________________________
> 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
>
 _______________________________________________
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: Bindings help: Row-specific Null Placeholder in an NSTableColumn
      • From: Abhi Beckert <email@hidden>
References: 
 >Bindings help: Row-specific Null Placeholder in an NSTableColumn (From: Abhi Beckert <email@hidden>)

  • Prev by Date: Re: storing numbers
  • Next by Date: Re: Bindings help: Row-specific Null Placeholder in an NSTableColumn
  • Previous by thread: Re: Bindings help: Row-specific Null Placeholder in an NSTableColumn
  • Next by thread: Re: Bindings help: Row-specific Null Placeholder in an NSTableColumn
  • Index(es):
    • Date
    • Thread