Re: Toolbar Item Validation in a Panel
Re: Toolbar Item Validation in a Panel
- Subject: Re: Toolbar Item Validation in a Panel
- From: "R. Scott Thompson" <email@hidden>
- Date: Fri, 22 Oct 2004 13:26:10 -0500
In your test application try changing the class of your window from
NSWindow to NSPanel.
Yes, that changes things. Hm... Since the menu items for the color
panel are also disabled at this time, I must assume that it is the
intended behaviour. It's a bit inconsistent that the menu items for
the font panel are not disabled when the toolbar item is. Or vice
versa... Perhaps you should file a bug report and ask for
clarification.
Any particular reason why you use a panel?
No... not really. As I recall from starting out with Cocoa in the
early days of the "Yellow Box" I recalled that the About Box for the
application was implemented as an NSPanel. When I needed a modal
dialog I simply used an NSPanel because... I thought that's what you
did.
Reading the documentation farther, it would appear that an NSPanel is
something that doesn't have a clear analog in Carbon, the framework I'm
most familiar with.
At first glance it looks like a panel is really there to provide
semi-modal dialogs. I'm familiar with semi-modal dialogs, but they
require some gratuitous hoop jumping in Carbon. What I'm implementing
(the Question "Wizard") is just a dialog, not a panel so I'll just
change my window to be an NSWindow and go on with my life :-)
I'll go ahead and file a bug too JIC.
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden