Re: Class method list
Re: Class method list
- Subject: Re: Class method list
- From: Bill Bumgarner <email@hidden>
- Date: Thu, 19 Dec 2002 11:27:22 -0500
On Thursday, Dec 19, 2002, at 08:22 US/Eastern,
email@hidden wrote:
Hi,
Could you give me
any idea to get all the
methods available for
one class? In fact I'd
like to get the
NSWorkspace
methods.
Regards,
Tackel
From the header file? See NSWorkspace.h.
Alternatively, you can use class-dump -- it is available via Fink.
Personally, I often use PyObjC (pyobjc.sourceforge.net). (Note that in
PyObjC, 'setObject:forKey:' will be 'setObject_forKey_' because Python
does not allow colons (:) in method names.
In [1]: from AppKit import NSWorkspace
In [2]: dir(NSWorkspace)
Out[2]:
['__class__',
'__delattr__',
'__dict__',
'__eq__',
'__ge__',
'__getattribute__',
'__gt__',
'__hash__',
'__init__',
'__le__',
'__lt__',
'__module__',
'__ne__',
'__new__',
'__reduce__',
'__repr__',
'__setattr__',
'__str__',
'_accessibilityUIElementPath',
'_accessibilityUIElementPathForChild_',
'_announce',
'_applicationDidLaunch_',
'_applicationDidTerminate_',
'_applicationStatusChange_',
'_applicationWillLaunch_',
'_beginListeningForApplicationStatusChanges',
'_beginListeningForDeviceStatusChanges',
'_cfTypeID',
'_checkInName_onHost_andPid_forUser_',
'_conformsToProtocolNamed_',
'_copyDescription',
'_createKeyValueBindingForKey_name_bindingType_',
'_defaultDocIcon',
'_dictionaryForSerialNumber_remove_clear_',
'_didMountDeviceAtPath_',
'_didUnmountDeviceAtPath_',
'_endListeningForApplicationStatusChanges',
'_endListeningForDeviceStatusChanges',
'_fileOperationCompleted_',
'_fileOperation_source_destination_files_',
'_fullPathForService_',
'_iconForOSType_',
'_iconForOSType_creator_',
'_kitNewObjectSetVersion_',
'_launchService_andWait_',
'_locationsForApplications',
'_openFile_withApplication_asService_andWait_andDeactivate_',
'_replySequenceNumber_ok_',
'_sendFinderAppleEvent_class_file_',
'_setObject_forBothSidesOfRelationshipWithKey_',
'_shouldPowerOff',
'_updateDeviceCount_applicationCount_',
'_volumeIsEjectableForRefNum_',
'_volumeIsLocalForRefNum_',
'_willPowerOff',
'_willUnmountDeviceAtPath_ok_',
'accessInstanceVariablesDirectly',
'accessibilityArrayAttributeCount_',
'accessibilityArrayAttributeValues_index_maxCount_',
'accessibilityIndexOfChild_',
'accessibilityShouldUseUniqueId',
'activeApplication',
'addObject_toBothSidesOfRelationshipWithKey_',
'addObject_toPropertyWithKey_',
'allPropertyKeys',
'alloc',
'allocWithZone_',
'applicationLaunched_handle_',
'applicationQuit_handle_',
'attributeKeys',
'autorelease',
'awakeAfterUsingCoder_',
'cancelPreviousPerformRequestsWithTarget_',
'cancelPreviousPerformRequestsWithTarget_selector_object_',
'center_didAddObserver_name_object_',
'center_didRemoveObserver_name_object_',
'checkForRemovableMedia',
'class',
'classCode',
'classDescription',
'classDescriptionForDestinationKey_',
'classForArchiver',
'classForCoder',
'classForKeyedArchiver',
'classForKeyedUnarchiver',
'classForPortCoder',
'classHintsForKeyedArchiver',
'className',
'clearProperties',
'coerceValue_forKey_',
'conformsToProtocol_',
'conformsTo_',
'copy',
'copyWithZone_',
'createKeyValueBindingForKey_typeMask_',
'dealloc',
'debugDescription',
'description',
'detailedDescriptionForClass_',
'doesContain_',
'doesNotRecognizeSelector_',
'entityName',
'extendPowerOffBy_',
'fileOperationCompleted_ok_',
'fileSystemChanged',
'findApplications',
'flushAllKeyBindings',
'flushClassKeyBindings',
'flushKeyBindings',
'forwardInvocation_',
'forward__',
'fullPathForApplication_',
'getFileSystemInfoForPath_isRemovable_isWritable_isUnmountable_descripti
on_type_',
'getInfoForFile_application_type_',
'handleQueryWithUnboundKey_',
'handleTakeValue_forUnboundKey_',
'hash',
'hideOtherApplications',
'iconForFileType_',
'iconForFile_',
'iconForFiles_',
'implementsSelector_',
'init',
'initialize',
'insertValue_atIndex_inPropertyWithKey_',
'insertValue_inPropertyWithKey_',
'instanceMethodDescriptionForSelector_',
'instanceMethodForSelector_',
'instanceMethodSignatureForSelector_',
'instancesImplementSelector_',
'instancesRespondToSelector_',
'inverseForRelationshipKey_',
'isAncestorOfObject_',
'isCaseInsensitiveLike_',
'isEqualTo_',
'isEqual_',
'isFault',
'isFilePackageAtPath_',
'isGreaterThanOrEqualTo_',
'isGreaterThan_',
'isKindOfClass_',
'isKindOf_',
'isLessThanOrEqualTo_',
'isLessThan_',
'isLike_',
'isMemberOfClass_',
'isNSIDispatchProxy',
'isNotEqualTo_',
'isProxy',
'isSubclassOfClass_',
'isSuperclassOfClass_',
'isToManyKey_',
'keyValueBindingForKey_typeMask_',
'launchApplication_',
'launchApplication_showIcon_autolaunch_',
'launchedApplications',
'load',
'methodDescriptionForSelector_',
'methodForSelector_',
'methodFor_',
'methodSignatureForSelector_',
'mountNewRemovableMedia',
'mountedLocalVolumePaths',
'mountedRemovableMedia',
'mounted_',
'mutableCopy',
'mutableCopyWithZone_',
'new',
'noteFileSystemChanged',
'noteFileSystemChanged_',
'noteUserDefaultsChanged',
'notificationCenter',
'objectSpecifier',
'openFile_',
'openFile_fromImage_at_inView_',
'openFile_operation_',
'openFile_withApplication_',
'openFile_withApplication_andDeactivate_',
'openTempFile_',
'openURL_',
'ownsDestinationObjectsForRelationshipKey_',
'performFileOperation_source_destination_files_tag_',
'performSelectorOnMainThread_withObject_waitUntilDone_',
'performSelectorOnMainThread_withObject_waitUntilDone_modes_',
'performSelector_',
'performSelector_object_afterDelay_',
'performSelector_withObject_',
'performSelector_withObject_afterDelay_',
'performSelector_withObject_afterDelay_inModes_',
'performSelector_withObject_withObject_',
'perform_withEachObjectInArray_',
'performv__',
'poseAsClass_',
'powerOffIn_andSave_',
'release',
'removeObject_fromBothSidesOfRelationshipWithKey_',
'removeObject_fromPropertyWithKey_',
'removeValueAtIndex_fromPropertyWithKey_',
'replaceValueAtIndex_inPropertyWithKey_withValue_',
'replacementObjectForArchiver_',
'replacementObjectForCoder_',
'replacementObjectForKeyedArchiver_',
'replacementObjectForPortCoder_',
'resetProfiling',
'respondsToSelector_',
'respondsTo_',
'retain',
'retainCount',
'scriptingProperties',
'selectFile_inFileViewerRootedAtPath_',
'self',
'setScriptingProperties_',
'setVersion_',
'sharedWorkspace',
'shouldUnmount_',
'slideImage_from_to_',
'startProfiling',
'stopProfiling',
'storedValueForKey_',
'superclass',
'takeStoredValue_forKey_',
'takeStoredValuesFromDictionary_',
'takeValue_forKeyPath_',
'takeValue_forKey_',
'takeValuesFromDictionary_',
'toManyRelationshipKeys',
'toOneRelationshipKeys',
'unableToSetNilForKey_',
'unhideApplication',
'unmountAndEjectDeviceAtPath_',
'unmounted_',
'useStoredAccessor',
'userDefaultsChanged',
'validateTakeValue_forKeyPath_',
'validateValue_forKey_',
'valueAtIndex_inPropertyWithKey_',
'valueForKeyPath_',
'valueForKey_',
'valueWithName_inPropertyWithKey_',
'valueWithUniqueID_inPropertyWithKey_',
'valuesForKeys_',
'version',
'writeProfilingDataToPath_',
'zone']
In [3]:
_______________________________________________
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.