[swift-corelibs-dev] Query on the Foundation API notes.

2017-06-19 Thread Mamatha Busi via swift-corelibs-dev
HelloCommand-Click shows the Swift representation of Objective-C API in Xcode. I understand that Darwin overlay which defines the Foundation APIs is here: https://github.com/apple/swift/tree/master/stdlib/public/SDK/FoundationAlso, there is: 

Re: [swift-corelibs-dev] Implementing HTTPCookieStorage

2017-02-23 Thread Mamatha Busi via swift-corelibs-dev
Hello Created a PR https://github.com/apple/swift-corelibs-foundation/pull/889 for the XDG file specification implementation, extending from the work Tony Parker shared below. But still the question remains as to how we could test this without adding exposed API from the Foundation side. We could

[swift-corelibs-dev] Implementing Bundle.init(for aClass: AnyClass)

2016-11-18 Thread Mamatha Busi via swift-corelibs-dev
Hiinit(for aClass: AnyClass) is an unimplemented API on Linux. I am exploring around this to implement the same and have a couple of queries:-> In the context of Linux platform, how relevant is this API for loading bundles dynamically? -> In a Bundle, how do I go about getting information on the

[swift-corelibs-dev] Query on the NSTextCheckingResult.resultByAdjustingRangesWithOffset output.

2016-06-06 Thread Mamatha Busi via swift-corelibs-dev
  Hello   I am running a sample program on OSx to adjust the Ranges within an NSTextCheckingResult object using the api .resultByAdjustingRangesWithOffset(). Below is the output when I give the offset as '922337203685477580' . See Output 1: I see that the location field of the range is modified to

Re: [swift-corelibs-dev] Setting property "maxConcurrentOperationCount = 1" of NSOperation fails to execute operations using OpenSource Foundation.

2016-05-09 Thread Mamatha Busi via swift-corelibs-dev
we could just let the underlying queue be concurrent all the time and enforce the max ops via making the semaphore always instantiated (in the case of max ops being 1) and initializing it to 1 to gate the operations.  On May 5, 2016, at 1:15 AM,

Re: [swift-corelibs-dev] Setting property "maxConcurrentOperationCount = 1" of NSOperation fails to execute operations using OpenSource Foundation.

2016-05-06 Thread Mamatha Busi via swift-corelibs-dev
semaphore always instantiated (in the case of max ops being 1) and initializing it to 1 to gate the operations.  On May 5, 2016, at 1:15 AM, Mamatha Busi via swift-corelibs-dev <swift-corelibs-dev@swift.org> wrote:  Hello   Code snippet: ———      let operati

[swift-corelibs-dev] Setting property "maxConcurrentOperationCount = 1" of NSOperation fails to execute operations using OpenSource Foundation.

2016-05-05 Thread Mamatha Busi via swift-corelibs-dev
Hello   Code snippet: ———      let operation1 : NSBlockOperation = NSBlockOperation (block: {             sleep(1)             print("Opertion1")         })         let operation2 : NSBlockOperation = NSBlockOperation (block: {             sleep(1)