• 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: toolbar in a sheet drawing issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: toolbar in a sheet drawing issues


  • Subject: Re: toolbar in a sheet drawing issues
  • From: Ryan Stevens <email@hidden>
  • Date: Wed, 19 Jun 2002 11:14:59 -0700

On Wednesday, June 19, 2002, at 10:35 AM, j o a r wrote:

On Wednesday, Jun 19, 2002, at 18:27 Europe/Stockholm, Ryan Stevens wrote:

The behavior of a toolbar in a window without a title bar is undefined - assuming you can even get it to work at all. I have no clue if Apple will allow us more freedom with toolbars at some point but one can hope (and hack until ;-).
I'm surprised you're allowed to put a toolbar on a sheet in the first place. I would've thought you'd get the same "can't be done" message.

I don't think Apple will ever allow for toolbars in sheets. NSToolbar uses a sheet for configuration - a sheet on a sheet on a sheet - it wouldn't be pretty... :)

Hmm...

That makes sense but if I were putting a toolbar on a sheet I don't think I'd want the user to be able to customize it anyway. Or, if I did want the user to be able to customize it maybe there's a way around the sheet on a sheet [ ... ]? Possibly a drawer coming out the top? I don't know.

I'm not saying I know another elegant way to bring up a customize panel but if anyone can do it..

I've tried to put a toolbar in a drawer with varying degrees of success. Of course, it's nothing but a hack - to get around the "can't be done" message - but you might try fooling with it a bit more.

NSDrawer is not a subclass of NSWindow, a sheet is an instance of NSWindow - huge difference.


Right. But, to get a toolbar into an NSDrawer you have to have access to the window it's displayed on/in so you do a little digging and find that there is one as _drawerWindow. ;-)

Not a huge difference when it comes down to it - you're still dealing with trying to get a toolbar in an unsupported (whether explicitly stated in docs or not) window-type.

Try setting the contentView of the sheet to [yourToolbar _toolbarView] then adding your other components to that. Past that, you're on your own (unless you'd like to talk off-list). :-)

Aouch! This will most likely never give you software of a quality you could release to other people....


Agreed. You may end up with junk but if you don't try..
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: toolbar in a sheet drawing issues (From: j o a r <email@hidden>)

  • Prev by Date: Re: Extra Menu
  • Next by Date: again : sending e-mails by program
  • Previous by thread: Re: toolbar in a sheet drawing issues
  • Next by thread: [Q] Help system
  • Index(es):
    • Date
    • Thread