• 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: Spotlight bindings example?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spotlight bindings example?


  • Subject: Re: Spotlight bindings example?
  • From: Hamish Allan <email@hidden>
  • Date: Tue, 28 Jun 2005 18:50:34 +0100


On 28 Jun 2005, at 17:30, Corbin Dunn wrote:

If you have any questions on how the bindings work, I can easily elaborate. just let me know.

Hi Corbin,

Thank you. Just one query for now... it is not clear to me why a value transformer is used for the icon column in the FinalGroup results table. I tried it with value = arrangedObjects.icon rather than value=MetadataItemIconTransformer(arrangedObjects) and it seems to work fine. Likewise, could I do something like:

- (NSString *)runningDescription
{
if ([self isStarted] && ![self isStopped])
return NSLocalizedString(@"Query is alive...",
@"String to be shown when the query is alive and maintaining results");
else
return NSLocalizedString(@"Query is dead...",
@"String to be shown when the query is not alive and not maintaining results");
}


and then bind the appropriate NSTextField to query.runningDescription rather than RunningTransformer(query.isMyStarted)?

Many thanks,
Hamish


_______________________________________________ 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: Spotlight bindings example?
      • From: Corbin Dunn <email@hidden>
References: 
 >Spotlight bindings example? (From: Hamish Allan <email@hidden>)
 >Re: Spotlight bindings example? (From: Corbin Dunn <email@hidden>)
 >Re: Spotlight bindings example? (From: Hamish Allan <email@hidden>)
 >Re: Spotlight bindings example? (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Disabling highlighting. Subclass not receiving method call?
  • Next by Date: Re: Fake NSView dimensions for fake printing
  • Previous by thread: Re: Spotlight bindings example?
  • Next by thread: Re: Spotlight bindings example?
  • Index(es):
    • Date
    • Thread