• 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: Programmatic Toolbar Blinking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatic Toolbar Blinking


  • Subject: Re: Programmatic Toolbar Blinking
  • From: John Pannell <email@hidden>
  • Date: Fri, 5 Nov 2010 16:31:24 -0600

Hi Richard-

No answers, just a datapoint... I looked at a couple of my apps (which have never had the blinking issue, to my eye): one did the toolbar assignment in the window controller's awakeFromNib, the other did it in windowDidLoad.

Not knowing the mechanics of how your window gets on the screen: are you getting everything toolbar related hooked up before issuing a showWindow message?  Is the window in a nib and set to appear at launch?  Perhaps there is some way you can make sure the toolbar config is happening before the window gets onscreen.

Just guesses - sorry I couldn't be of more help!

John


On Nov 5, 2010, at 3:55 PM, Richard Somers wrote:

> I have a custom window controller that loads a nib file, then programmatically installs a toolbar. The first time the window is displayed on screen it blinks. The window is drawn without the toolbar, then it is drawn again with the toolbar. Visually is is like a blink.
>
> // NSWindowController subclass
>
> - (id)init
> {
>     self = [super initWithWindowNibName:@"MyWindowNib"];
>     if (self) {
>         NSToolbar *toolbar = [[NSToolbar alloc] initWithIdentifier:@"MyToolbar"];
>         [toolbar setDelegate:self];
>         [[self window] setToolbar:toolbar];
>         [toolbar release];
>     }
>     return self;
> }
>
> - (void)windowDidLoad
> {
>     // Installing toolbar here results in same blinking problem.
> }
>
> Does anyone know how to get the window to display the first time with the toolbar installed?
>
> --Richard Somers
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> 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:
>
> This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Programmatic Toolbar Blinking
      • From: Richard Somers <email@hidden>
References: 
 >Programmatic Toolbar Blinking (From: Richard Somers <email@hidden>)

  • Prev by Date: Re: [Q} Changing help key behavior
  • Next by Date: RE: CoreData models as structures
  • Previous by thread: Programmatic Toolbar Blinking
  • Next by thread: Re: Programmatic Toolbar Blinking
  • Index(es):
    • Date
    • Thread