• 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: Corbin Dunn <email@hidden>
  • Date: Tue, 28 Jun 2005 11:48:36 -0700


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)?

These are just different ways of doing the same thing...they will work fine.


---corbin
_______________________________________________
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


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

  • Prev by Date: Re: Convert PICT to NSImage (SOLVED)
  • Next by Date: indexOfItemWithStringValue gets a nil string?
  • Previous by thread: Re: Spotlight bindings example?
  • Next by thread: Re: WindowController fails when trying add a panel [Name Warning]
  • Index(es):
    • Date
    • Thread