On May 15, 2013, at 11:39 AM, Quincey Morris wrote: > Because of "canSelectHiddenExtension", my Save dialog has a "Hide Extension" > checkbox. If it's unchecked, and I retype the file name text box without an > extension, the checkbox turns itself on automatically. If I type the correct > extension, the checkbox turns itself off automatically. (If I type an > incorrect extension, the checkbox turns on. I assume I'd get something like > "filename.def.abc" in that case.)
That is *exactly* the behavior that I see in 10.6, but not at all what happens in 10.7 or 10.8. > No matter whether the extension is shown in the text field, the Save panel > returns a URL with the correct extension. Yes, in 10.6. > I have no idea why you might be seeing different behavior. Except … > On May 14, 2013, at 21:16 , Scott Ribe <[email protected]> wrote: > >> [pnl beginSheetForDirectory: ...]; > > When comparing your code with mine, I realized that -[NSSavePanel > beginSheetForDirectory: …] was deprecated in 10.6. Try using one of the > non-deprecated methods. It *does* matter, with powerbox. Well, I missed that--stared at other documentation until my eyes bled, and got rid of setRequiredFileType: because it was deprecated. I will give that a try. Haha, I see that beginSheetForDirectory has such a long method name that the "Deprecated in Mac OS X v10.6" message is not visible without horizontal scrolling in my window. Excuse me while I go grind my teeth for a while. -- Scott Ribe [email protected] http://www.elevated-dev.com/ (303) 722-0567 voice _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
