Re: Using an NSToolbar in a sheet
Re: Using an NSToolbar in a sheet
- Subject: Re: Using an NSToolbar in a sheet
- From: John Joyce <email@hidden>
- Date: Sun, 1 Aug 2010 18:12:03 -0500
On Aug 1, 2010, at 5:20 PM, Dave Fernandes wrote:
> I haven't found anything specific in the HIG about this, so I'd be interested in some opinions...
>
> I have an modal editor sheet that attaches to a document window to allow certain document contents to be manipulated. The sheet is somewhat complex, and toolbar items are definitely helpful to have. I can add a toolbar to the sheet, but this doesn't seem to be fully supported by Cocoa, and it may be confusing to the user to have the document window's toolbar right above the sheet's toolbar.
>
> It might make more sense to swap the document window's toolbar for the editor toolbar; but, unfortunately, the document window's toolbar always gets disabled when the sheet appears - so this wouldn't work.
>
> Any comments on the UI conundrum?
>
> -------------
>
> Technical problem:
> If I set an NSToolbar for the sheet (an NSWindow), it functions correctly; however, when you right click to get the contextual menu, this menu actually acts on the document window's toolbar instead of the sheet's toolbar. I.e., if you choose Icon Only, then the document's toolbar changes to Icon Only mode.
>
> Is this just a bug, or is it completely unsupported? Can anyone give me a workaround for this?
>
> Thanks,
> Dave_______________________________________________
Please keep sheets clean. (no pun intended)
In general, modal windows and especially sheets should be clear and simple.
If there seems to be a need to cram lots of things into a sheet you may want to revisit your UI design.
_______________________________________________
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