Follow-up Comment #2, bug #19031 (project gnustep):
Your workaround is wrong in a kind of funny way.
You should test whether savePanel _already_ has an attached accessoryView. So
something like
- (int)runModalSavePanel: (NSSavePanel *)savePanel
withAccessoryView: (NSView *)accessoryView
{
if ([savePanel accessoryView] == nil)
{
[savePanel setAccessoryView: accessoryView];
}
return [savePanel runModal];
}
You tested whether accessoryView is nil which always is not because the given
variable "accessoryView" always points to the fileType view generated by
NSDocument class itself.
About the general case i don't know enough about how things work. But just
taking the name "setAccessoryView" i would assume that this method replaces
any existing accessory view. Maybe there could be something like
"addAccessoryView".
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?19031>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep