WebKitã®WebHTMLView.m ã®ã½ã¼ã¹ã®ä¸ã«
// Kill ring calls. Would be better to use NSKillRing.h, but that's not available in SPI. void _NSInitializeKillRing(void); void _NSAppendToKillRing(NSString *); void _NSPrependToKillRing(NSString *); NSString *_NSYankFromKillRing(void); NSString *_NSYankPreviousFromKillRing(void); void _NSNewKillRingSequence(void); void _NSSetKillRingToYankedState(void); void _NSResetKillRingOperationFlag(void);
ã¨ãã宣è¨ãçºè¦ãCocoaã¢ããªã®ãã«ãªã³ã°ã®ä¸èº«ã¯ ã¢ããã«ã¨ãã¦ã¯éå ¬é(éå ¬å¼?) ã®é¢æ°ã§ã§ãã¦ãã£ã½ãã§ããã
ã¨ãããã¨ã§ä¸æ £ããªObjective-Cã§
/* ãããã¨ãã¯ç¥ */ @implementation NSTextView(inspectKillRing) void _NSInitializeKillRing(void); void _NSAppendToKillRing(NSString *); void _NSPrependToKillRing(NSString *); NSString *_NSYankFromKillRing(void); NSString *_NSYankPreviousFromKillRing(void); void _NSNewKillRingSequence(void); void _NSSetKillRingToYankedState(void); void _NSResetKillRingOperationFlag(void); - (IBAction)inspectKillRing:(id)sender { NSLog(@"_NSYankFromKillRing() --> %@" , _NSYankFromKillRing()); NSLog(@"_NSYankPreviousFromKillRing() --> %@" , _NSYankPreviousFromKillRing()); } @end
ã¨ãããããããªé¢¨ã«æ¸ãã¦Xcodeã§ãã«ããããããã°ã§ãã«ãªã³ã°ã®ä¸èº«ãè¦ãã¾ãã :)