0
CarbonCoreフレームワークの "FNSubscribe"メソッドの代わりを見つけることができません。この関数は、変更をディレクトリで監視し、変更の場合にコールバック関数を実行するために使用されました。ココアでのFNSサブスクライブ
/*
* FNSubscribe()
*
* Summary:
* Subscribe to change notifications for the specified directory.
*
* Mac OS X threading:
* Thread safe since version 10.1
*
* Parameters:
*
* directoryRef:
* Directory for which the caller wants notifications
*
* callback:
* Function to call back when a notification arrives
*
* refcon:
* User state carried with the subscription
*
* flags:
* Options for future use (specify kNilOptions, or one of the
* FNSubscriptionOptions)
*
* subscription:
* Subscription token for subsequent query or unsubscription
*
* Availability:
* Mac OS X: in version 10.1 and later in CoreServices.framework
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.1 and later
* Non-Carbon CFM: not available
*/
extern OSStatus FNSubscribe(const FSRef *directoryRef, FNSubscriptionUPP callback, void *refcon, OptionBits flags, FNSubscriptionRef *subscription) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_1, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
Cocoaを使用してディレクトリを監視し、最終的にコールバック機能を実行するにはどうすればよいですか?