macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

10.3

stream:handleEvent:

ストリームイベントが起こった時に呼び出されます handleEvent:(NSStreamEvent )streamEvent: 解説 ストリームイベントが起こった時に呼び出されます。 デリゲートでの実装。 返り値 ( void ) なし 引数 フレームワーク Foundation クラス NSStream Instance…

addFontDescriptors:toCollection:

コレクションにフォントを追加します -(void)addFontDescriptors:(NSArray *)descriptors: toCollection:(NSString *)collectionName: 解説 コレクションにフォントを追加します。 返り値 ( void ) なし 引数 ( NSArray * )descriptors ( NSString * )collec…

expectedResourceDataSize

解説 リソースデータサイズを返します。 返り値 ( long long ) オブジェクト 引数 フレームワーク Foundation クラス NSURLHandle Instance Methods 使用可能 10.3 参照 例文

indexSet

空のインデックスセットを返します 解説 空のインデックスセットを返します。 NSMutableIndexSetのために使います。 返り値 ( id ) NSIndexSetまたはそのサブクラス 引数 フレームワーク Foundation クラス NSIndexSet Class Methods 使用可能 10.3 参照 -in…

indexSetWithIndex:

値でインデックスセットを作って返します +(id)indexSetWithIndex:(unsigned int)value: 解説 値でインデックスセットを作って返します。 返り値 ( id ) ファイルハンドル 引数 ( unsigned int )value フレームワーク Foundation クラス NSIndexSet Class Me…

indexSetWithIndexesInRange:

範囲でインデックスセットを作って返します +(id)indexSetWithIndexesInRange:(NSRange )range: 解説 範囲でインデックスセットを作って返します。 返り値 ( id ) ファイルハンドル 引数 ( NSRange )range フレームワーク Foundation クラス NSIndexSet Clas…

spellServer:suggestCompletionsForPartialWordRange:inString:language:

-(NSArray *)spellServer:(NSSpellServer *)sender: suggestCompletionsForPartialWordRange:(NSRange)range: inString:(NSString *)string: language:(NSString *)language: 解説 デリゲートメソッド 詳細はNSSpellCheckercompletionsForPartialWordRange:i…

getStreamsToHost:port:inputStream:outputStream:

ホストを指定してストリームを準備します +(void)getStreamsToHost:(NSHost *)host: port:(int)port: inputStream:(NSInputStream **)inputStream: outputStream:(NSOutputStream **)outputStream: 解説 ホストを指定してストリームを準備します 返り値 ( vo…

NSDisableScreenUpdates

NSString * NSCreateFilenamePboardType ( NSString * fileType ); 解説 調査中... スクリーンのアップデートを無効にします。 10.4以降はNSWindowのdisableScreenUpdatesUntilFlush メソッドを使うことができます。 返り値 引数 ( NSString * )fileType フ…

NSShowAnimationEffect

解説 void NSShowAnimationEffect( NSAnimationEffect animationEffect, NSPoint centerLocation, NSSize size, id animationDelegate, SEL didEndSelector, void *contextInfo) 返り値 引数 フレームワーク ApplicationKit クラス NSShowAnimationEffect Fu…

setShouldReportNamespacePrefixes:

ネームスペース宣言を報告するかをセットします -(void)setShouldReportNamespacePrefixes:(BOOL)shouldReportNamespacePrefixes: 解説 ネームスペース宣言を報告するかをセットします。 返り値 ( void ) なし 引数 ( BOOL )shouldReportNamespacePrefixes …

currentAppleEvent

現在のアップルイベントを返します 解説 現在のアップルイベントを返します。 返り値 ( NSAppleEventDescriptor * ) アップルイベントデスクリプタ 引数 フレームワーク Foundation クラス NSAppleEventManager Instance Methods 使用可能 10.3 参照 -curren…

currentReplyAppleEvent

現在のリプライアップルイベントを返します 解説 現在のリプライアップルイベントを返します。 返り値 ( NSAppleEventDescriptor * ) アップルイベントデスクリプタ 引数 フレームワーク Foundation クラス NSAppleEventManager Instance Methods 使用可能 1…

appleEventForSuspensionID:

-(NSAppleEventDescriptor *)appleEventForSuspensionID:(NSAppleEventManagerSuspensionID )suspensionID: 解説 アップルイベントサスペンデッドIDを返します 返り値 ( NSAppleEventDescriptor * ) アップルイベントデスクリプタ 引数 ( NSAppleEventManage…

replyAppleEventForSuspensionID:

-(NSAppleEventDescriptor *)replyAppleEventForSuspensionID:(NSAppleEventManagerSuspensionID )suspensionID: 解説 調査中... 返り値 ( NSAppleEventDescriptor * ) アップルイベントデスクリプタ 引数 ( NSAppleEventManagerSuspensionID )suspensionID …

resumeWithSuspensionID:

-(void)resumeWithSuspensionID:(NSAppleEventManagerSuspensionID )suspensionID: 解説 サスペンデッドIDの停止解除 返り値 ( void ) なし 引数 ( NSAppleEventManagerSuspensionID )suspensionID フレームワーク Foundation クラス NSAppleEventManager In…

setCurrentAppleEventAndReplyEventWithSuspensionID:

-(void)setCurrentAppleEventAndReplyEventWithSuspensionID:(NSAppleEventManagerSuspensionID )suspensionID: 解説 調査中... 返り値 ( void ) なし 引数 ( NSAppleEventManagerSuspensionID )suspensionID フレームワーク Foundation クラス NSAppleEvent…

suspendCurrentAppleEvent

現在の一旦停止しているアップルイベントのサスペンデッドIDを返します 解説 現在の一旦停止しているアップルイベントのサスペンデッドIDを返します。 返り値 ( NSAppleEventManagerSuspensionID ) 引数 フレームワーク Foundation クラス NSAppleEventManag…

symbolCharacterSet

シンボルキャラクタセットを返します 解説 シンボルキャラクタセットを返します。 $+^`|~ 返り値 ( NSCharacterSet * ) 引数 フレームワーク Foundation クラス NSCharacterSet Class Methods 使用可能 10.3 参照 例文 #import "SetImage.h" @implementation…

postNotificationName:object:userInfo:options:

遠隔通知センターにポストします -(void)postNotificationName:(NSString *)name: object:(NSString *)anObject: userInfo:(NSDictionary *)userInfo: options:(unsigned)options: 解説 遠隔通知センターにポストします。 NSNotificationDeliverImmediately …

NSEnableScreenUpdates

void NSEnableScreenUpdates ( void ); 解説 調査中... スクリーンのアップデートを有効にします。 10.4以降はNSWindowのdisableScreenUpdatesUntilFlush メソッドを使うことができます。 返り値 引数 ( void ) フレームワーク ApplicationKit クラス NSEnab…

NSIsControllerMarker

BOOL NSIsControllerMarker ( id object ); 解説 調査中... 与えられたオブジェクトが気に関連した選択の状態を示すのに使った特別なマーカーオブジェクトかどうかテストします。 返り値 引数 ( id )object フレームワーク ApplicationKit クラス NSIsContro…

commitEditing

編集を確定するときに呼び出されます 解説 編集を確定するときに呼び出されます。 返り値 ( BOOL ) YES/NO 引数 フレームワーク ApplicationKit クラス NSEditor Instance Methods 使用可能 10.3 参照 -discardEditing 例文 -(BOOL)commitEditing { NSLog(@"…

discardEditing

編集を放棄した時に呼び出されます 解説 編集を放棄した時に呼び出されます 返り値 ( void ) なし 引数 フレームワーク ApplicationKit クラス NSEditor Instance Methods 使用可能 10.3 参照 例文 -(void)discardEditing { NSLog(@"discardEditing"); [supe…

objectDidBeginEditing:

編集し始めたときに呼び出されます -(void)objectDidBeginEditing:(id)editor: 解説 編集し始めたときに呼び出されます。 返り値 ( void ) なし 引数 ( id )editor フレームワーク ApplicationKit クラス NSEditor Instance Methods 使用可能 10.3 参照 -obj…

objectDidEndEditing:

編集が終わったときに呼び出されます -(void)objectDidEndEditing:(id)editor: 解説 編集が終わったときに呼び出されます。 返り値 ( void ) なし 引数 ( id )editor フレームワーク ApplicationKit クラス NSEditor Instance Methods 使用可能 10.3 参照 -o…

validModesForFontPanel:

-(unsigned int)validModesForFontPanel:(NSFontPanel *)fontPanel: 解説 調査中... 返り値 ( unsigned int ) 整数値 引数 ( NSFontPanel * )fontPanel フレームワーク ApplicationKit クラス NSFontPanelValidation Instance Methods 使用可能 10.3 参照 例…

attributedString

属性付き文字列を返します 解説 属性付き文字列を返します。 返り値 ( NSAttributedString * ) 引数 フレームワーク ApplicationKit クラス NSGlyphStorage Instance Methods 使用可能 10.3 参照 例文 - (NSAttributedString *)attributedString { NSLog(@"a…

insertGlyphs:length:forStartingGlyphAtIndex:characterIndex:

グリフを挿入する時に呼び出されます -(void)insertGlyphs:(const NSGlyph *)glyphs: length:(unsigned int)length: forStartingGlyphAtIndex:(unsigned int)glyphIndex: characterIndex:(unsigned int)charIndex: 解説 グリフを挿入する時に呼び出されます…

layoutOptions

レイアウトオプションを返します 解説 レイアウトオプションを返します。 返り値 ( unsigned int ) 整数値 引数 フレームワーク ApplicationKit クラス NSGlyphStorage Instance Methods 使用可能 10.3 参照 例文 NSLog(@"layoutOptions %u",[layM layoutOpt…