Re: Is it possible to update a single tab of an NSTabView?
Re: Is it possible to update a single tab of an NSTabView?
- Subject: Re: Is it possible to update a single tab of an NSTabView?
- From: Brendan Younger <email@hidden>
- Date: Tue, 17 Jul 2001 11:42:01 -0500
I have a tabview with multiple tabs. When new content arrives on one
of the tabs, I'd like to flash a small indicator up in the tab to catch
the user's eye. Currently, I'm sending the entire NSTabView a display
message twice a second (which works great), but you can imagine what
that does to my CPU cycles! I've searched all over but can't seem to
find an easy way to tell the individual tab to update/redisplay (a
command similar to NSOutlineView's reloadItem perhaps?).
Is there a simple solution to the problem I'm missing? does anyone have
any experience with this?
NSTabViewItem's -view method will let you update the content view and
its -setLabel will change the title. As far as flashing, you may want
to change the label at timed intervals using NSTimer. You may also want
to subclass NSTabViewItem to display a label with an image or whatnot
else.
Brendan Younger