[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: https://github.com/apple/swift/blob/master/apinotes/Found

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 i

Re: [swift-corelibs-dev] Implementing HTTPCookieStorage

2017-02-01 Thread Mamatha Busi via swift-corelibs-dev
Hello @Tony:Thanks for sharing. I would like to build upon it from here.@allI need guidance on which XDG environment directory path the cookie storage would fit in?Would XDG_CONFIG_HOME be a best fit for the cookies?  Request your inputs to put me in the right direction. Thanks!-MamathaIBM Runtimes

[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 cl

[swift-corelibs-dev] Implementing JSONSerialization.jsonObject(with stream)

2016-07-15 Thread Mamatha Busi via swift-corelibs-dev
Hi   Trying to implement the JSONSerialization unimplemented method jsonObject(withStream).     JSONSerialization.jsonObject(with stream: InputStream, options opt: ReadingOptions = []) throws -> AnyObject   The comments in the source code mentions that apart from stream configuration all other beha

[swift-corelibs-dev] NSStream implementation

2016-06-23 Thread Mamatha Busi via swift-corelibs-dev
Hi  Looking into the NSStream class in Foundation, the NSInputStream and NSOutputStream subclasses have their APIs unimplemented. I would like to have a go at implementing them. Found the Corefoundation implementation of streams in CFStream. Can I use CFStream and build upon it to get NSStream work

[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
emaphore 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> wro

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
(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 operation1 : NSBlockOperation = NSBlockOperation (

[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)             print("Opertion2”)