hey

thanks, that is exactly what i was looking for, i have got it working now
(nearly).

so, a related question. i have an outline view and when searches are
performed a new item is added to the outline view with a badge that displays
the number of search results. the outline view is bound to a tree controller
working in entity mode of type SidebarItem.

when search results arrive, i get the relevant SidebarItem from the
managedObjectContext and update the count property with the new amount. the
problem is that this does not update the outline view. if i cause the view
to be redrawn, the badge updates with the correct value. how can i get it to
do this automatically?

i tried sending a notification when the count was updated, and then
searching for the item in the outlineview when the notification is received,
but [outlineView rowForItem: ] always returns -1, so i cannot redraw the
updated row.

what am i doing wrong?



On Wed, Oct 28, 2009 at 9:23 AM, Matthew Lindfield Seager <
matt...@sagacity.com.au> wrote:

> > could someone point me in the right direction, what is the easiest way of
> > doing this? would i have to override the text cell for the outline view,
> or
> > can i use a value transformer of some sort?
>
> I'm sure someone will correct me if (when?) I'm wrong but I've heard
> them called badges. Googling nsoutlineview badges returned a bunch of
> results & I'm sure you can find your way from there!
>
> Matt
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to