Re: toolbar in a sheet drawing issues
Re: toolbar in a sheet drawing issues
- Subject: Re: toolbar in a sheet drawing issues
- From: j o a r <email@hidden>
- Date: Wed, 19 Jun 2002 19:35:47 +0200
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... :)
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.
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....
j o a r
_______________________________________________
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.