Re: Spotlight bindings example?
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