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