| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Saying -setAllowedFileTypes: to an NSOpenPanel while the panel is showing
causes no change in what's selectable. Evidently you're supposed to specify
the allowed file types when you start running the panel. Thus it appears
that -setAllowedFileTypes: is useless, which is weird, because in that case,
why does it exist? That, at least, is the conclusion reached during a
discussion of this issue at a different venue (a newsgroup). I myself am
just confused and would like to know how this is supposed to work.
I would
think that being able to change the allowed file types while the panel is
open would be useful. m.
validateVisibleColumns
Validates and possibly reloads the browser columns visible in the receiver by invoking the delegate method panel:shouldShowFilename:.
- (void)validateVisibleColumns
Discussion
You might use this method if you want the browser to only allow selection of files with certain extensions based on the selection made in an accessory-view pop-up list. When the user changes the selection, you would invoke this method to revalidate the visible columns.
--Andy
_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
| References: | |
| >Re: NSOpenPanel isn't listening to me? I told it to only allow .zip and .xml! (From: Matt Neuburg <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.