• 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: Weird NSToolbar glitch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird NSToolbar glitch


  • Subject: Re: Weird NSToolbar glitch
  • From: "I. Savant" <email@hidden>
  • Date: Thu, 1 Oct 2009 16:08:06 -0400

On Oct 1, 2009, at 4:01 PM, Bryan Matteson wrote:

I couldn't find it anywhere in the documentation. But the thing is, it doesn't seem like you can even move a toolbar from one window to another, even properly making sure that it never belongs to more than one at a time, without getting weird drawing errors. I didn't dig too much into that, it's enough to know that it doesn't work. But creating a new one each time DOES work and creates very little additional overhead, as far as I can tell.


Toolbars have always been "special". It seems a lot of "funky things" happen when a window is sent -setToolbar: (even with the shiny new IB 3 toolbar editing support).


It's best to stick to the "Window <-----> Toolbar" approach (as an immutable relationship, once set).

In the grand scheme of things, toolbar creation probably isn't something to worry about. Unless you suspect performance really is causing problems, don't worry about optimizing. If you suspect performance *is* causing a problem, measure it first (with Instruments, for example), then decide on the best course of action. I'm betting it's barely a blip on the radar, compared with any other stuff you might be doing while "switching" windows.

--
I.S.




_______________________________________________

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: Weird NSToolbar glitch
      • From: Rob Keniger <email@hidden>
References: 
 >Re: Weird NSToolbar glitch (From: Bryan Matteson <email@hidden>)
 >Re: Weird NSToolbar glitch (From: "I. Savant" <email@hidden>)
 >Re: Weird NSToolbar glitch (From: Bryan Matteson <email@hidden>)

  • Prev by Date: I upgraded to 10.6 and all I got was this lousy bug
  • Next by Date: NSImageCell Disabled Look
  • Previous by thread: Re: Weird NSToolbar glitch
  • Next by thread: Re: Weird NSToolbar glitch
  • Index(es):
    • Date
    • Thread