• 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: Is it possible to update a single tab of an NSTabView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Is it possible to update a single tab of an NSTabView?
      • From: Adam Iser <email@hidden>
References: 
 >Re: Is it possible to update a single tab of an NSTabView? (From: "David P. Henderson" <email@hidden>)

  • Prev by Date: Re: static libs in project builder
  • Next by Date: Re: PDF rendering & black background?
  • Previous by thread: Re: Is it possible to update a single tab of an NSTabView?
  • Next by thread: Re: Is it possible to update a single tab of an NSTabView?
  • Index(es):
    • Date
    • Thread