Open/Save into packages?
Open/Save into packages?
- Subject: Open/Save into packages?
- From: Nicholas Shanks <email@hidden>
- Date: Fri, 15 Feb 2002 20:44:22 +0000
What's the cheapest way to call NSSavePanel's
setTreatsFilePackagesAsDirectories: method?
I always want to pass the value YES, and *really* want to avoid re-writing
any NSDocument or NSDocumentController methods. The default ones are great!
Overriding them and calling
[[NSSavePanel savePanel] setTreatsFilePackagesAsDirectories:YES];
[super openDocument:sender];
for example doesn't work, because of course super calls [NSSavePanel
savePanel] too, which resets the parameters.
I was thinking that subclassing NSSavePanel and overriding +savePanel
would work, if (despite being warned against the method) my subclass posed
as NSSavePanel.
I want application-wide functionality for both open and save, so this
would not be a problem. Can anybody suggest alternatives?
Nicholas Shanks
--
http://nickshanks.com/
_______________________________________________
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.