Re: Is there any ordered list or balanced tree

2009-03-28 Thread an00na
I don't care the naming style, I care about the functionalities. And it seems Cocoa is weak at supporting sorting-order-keeping data structures at the high level APIs. However, the reference is valuable. Thank you. On Mar 28, 2009, at 6:45 PM, Andrew Farmer wrote: On 28 Mar 09, at 01:25, an

Is there any ordered list or balanced tree

2009-03-28 Thread an00na
I can not find any data structure in Cocoa that maintains sorting order of items gradually added in, using the pairwise comparison results, something like the canonical set in C++'s STL that is usually implemented as a balanced tree. Thanks in advance. Welcome to drink some Cocoa, play wit

Re: Service request fails if provider has not yet launched

2009-01-17 Thread an00na
At last, I found the cause - something very silly of Safari, and I don't know why that happened yet. It turned out that if my app is not running, the service request from Safari will launch my app as expected; however, it is the debug version(which is not so up-to-date) of my app that is laun

What does this SystemFlippers message mean

2009-01-16 Thread an00na
My app is a service provider, and its NSSendTypes consists of a single NSStringPboardType. When some other apps request the service, I occasionally see following log messages in the Console: SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x10018fd30, p = 0x10018fd34, pEnd = 0x

Service request fails if provider has not yet launched

2009-01-14 Thread an00na
My app provides a System Service, which works well if it is running when the request arrives; however, if the request rises and my app has not yet launched, the Service is failed to be served, even though my app can be launched normally by the Service request. Here is the corresponding Consol

How to make NSURLConnection send delegate messages during runModalForWindow

2008-12-16 Thread an00na
I want to handle the connection events during runModalForWindow, so I use [connection scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:[[NSRunLoop currentRunLoop] currentMode]]; in the modal window's windowDidBecomeKey delegate method. But still my connection's delegate methods are not cal