macOS/iOS API解説

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

目次

NSConnectionクラス

Index>Foundation>

apple(mac)

解説

継承 NSObject
準拠 NSObject (NSObject)
フレームワーク /System/Library/Frameworks/Foundation.framework
使用可能 Mac OS X v10.0以降,Macのみ
定義

概要

適合するプロトコル

メソッド

Getting the Default Instance

+ defaultConnection Mac OS X 10.6で使用停止

Creating Instances

+ connectionWithReceivePort:sendPort
– initWithReceivePort:sendPort:

Running the Connection in a New Thread

– runInNewThread
– enableMultipleThreads
– multipleThreadsEnabled
– addRunLoop:
– removeRunLoop

Vending a Service

+ serviceConnectionWithName:rootObject:usingNameServer:
+ serviceConnectionWithName:rootObject:
– registerName
– registerName:withNameServer
– setRootObject
– rootObject

Getting a Remote Object

+ connectionWithRegisteredName:host
+ connectionWithRegisteredName:host:usingNameServer
– rootProxy
+ rootProxyForConnectionWithRegisteredName:host:
+ rootProxyForConnectionWithRegisteredName:host:usingNameServer:
– remoteObjects
– localObjects

Getting a Conversation

+ currentConversation

Getting All NSConnection Objects

+ allConnections

Configuring Instances

– setRequestTimeout
– requestTimeout
– setReplyTimeout
– replyTimeout
– setIndependentConversationQueueing
– independentConversationQueueing
– addRequestMode:
– removeRequestMode
– requestModes
– invalidate
– isValid

Getting Statistics

– statistics

サブクラス化の注意

引数

参照

メソッド