Instance Method
インスタンスメソッド
panel:compareFilename:with:caseSensitive:
Controls the ordering of files presented by the NSSavePanel
object specified.
Parameters
パラメータ
sender
Panel requesting the ordering.
fileName1
String representing the first filename to order.
fileName2
String representing the second filename to order.
flag
If YES
, the ordering is case-sensitive; if NO
, it is not.
Return Value
戻り値
One of the following:
NSOrderedAscending
if fileName1
should precede fileName2
NSOrderedSame
if the two names are equivalent
NSOrderedDescending
if fileName2
should precede fileName1
Discussion
解説
Don’t reorder filenames in the Save panel without good reason, because it may confuse the user to have files in one Save panel or Open panel ordered differently than those in other such panels or in the Finder. The default behavior of Save and Open panels is to order files as they appear in the Finder. Note also that by implementing this method you will reduce the operating performance of the panel.
See Also
参照
Methods
allowedFileTypes
An array of filename extensions or UTIs that represent the allowed file types for the panel.
Deprecated
非推奨
- setDirectory:
Sets the current pathname in the panel’s browser.
Deprecated
非推奨
- runModalForDirectory:file:
Initializes the panel to the directory and file specified, if any, then displays it and begins its modal event loop.
Deprecated
非推奨
- panel:directoryDidChange:
Tells the delegate that the user has changed the selected directory in the NSSavePanel
object specified.
Deprecated
非推奨
- directory
Returns the absolute pathname of the directory currently shown in the panel.
Deprecated
非推奨
- filename
Returns the absolute pathname of the file currently shown in the panel.
Deprecated
非推奨