English 中文(简体)
applevent 相对于通知
原标题:appleevent versus notification

我期待着在十科斯建立高效的机构间通信系统。

什么样的最佳制度? www.un.org/Depts/DGACM/index_spanish.htm

最佳回答

分发的通知(即通过NSDistributedNotificationCenter发出的通知)如果你的目标是高业绩和(或)可靠性,则最有可能不是一种很好的选择。 在这方面, Apple果自食:

发布通知是一项昂贵的工作。 该通知发给了全系统服务器,该服务器将通知分发给所有登记发送通知的物体。 发出通知与通知抵达另一项任务之间的相对关系不受约束。 事实上,当张贴了太多的通知和服务器的询问填满时,可撤销通知:rel=“nofollow noreferer”http://developer.apple.com/mac/library/documentation/Cocoa/Reference/FoundationCla/NS/Disbuted。

视你“高性能”的含义而定,你可能希望研究已分配的物体,或老的“智商协”机制(袖珍、管道、共享记忆等)。

问题回答

如果你控制发件人和受款人,你可以在两个进程(男子袖珍)之间开一个记票,这两个进程的业绩非常高。 你们也可以在一个共同地点(如/地址)开立档案,从一个过程发到另一个过程读到,这很迅速。 您还可以在当地机器上开设两个国际公路货运公司/国际船舶港口,每个过程中各有一个港口,然后从一个港口到另一个港口“网络”。

如果只有两种选择是国家产品鉴定或果树发明,那么 Apple果会更好。





相关问题
Asynchronous request to the server from background thread

I ve got the problem when I tried to do asynchronous requests to server from background thread. I ve never got results of those requests. Simple example which shows the problem: @protocol ...

objective-c: Calling a void function from another controller

i have a void, like -(void) doSomething in a specific controller. i can call it in this controller via [self doSomething], but i don t know how to call this void from another .m file. I want to call ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

NSUndoManager and runModalForWindow:

I have a simple Core Data app which displays a list of entities in the main window. To create or add new entities, I use a second modal window with a separate managed object context so changes can be ...

NSMutableArray values becoming "invalid"

I m trying to show a database information in a tableview and then the detailed information in a view my problem is as follow: I created a NSMutableArray: NSMutableArray *myArray = [[NSMutableArray ...

iPhone numberpad with decimal point

I am writing an iPhone application which requires the user to enter several values that may contain a decimal point (currency values, percentages etc.). The number of decimal places in the values ...

热门标签