|
From: | Fabian Borschel |
Subject: | [bug #19031] [NSDocument runModalSavePanel:withAccessoryView:] doesn't check for existing accessoryView |
Date: | Tue, 20 Feb 2007 13:43:15 +0000 |
User-agent: | Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.1) Gecko/20070123 Firefox/2.0.0.1 |
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/
[Prev in Thread] | Current Thread | [Next in Thread] |