Re: CGDisplayCreateImageForRect

2014-12-02 Thread Kyle Sluder
On Dec 2, 2014, at 8:59 PM, Raglan T. Tiger wrote: > > > I have searched to naval to find what to use in place of > CGDisplayCreateImageForRect for deployment on 10.5 building with 109 sdks. > > Any help here? Check out the Son of Grab sample: https://developer.apple.com/library/mac/sampleco

CGDisplayCreateImageForRect

2014-12-02 Thread Raglan T. Tiger
I have searched to naval to find what to use in place of CGDisplayCreateImageForRect for deployment on 10.5 building with 109 sdks. Any help here? -rags ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mo

Re: Revert almost working

2014-12-02 Thread Graham Cox
> On 3 Dec 2014, at 1:09 pm, Kevin Bracey wrote: > > When I go into Revert then are versions waiting to revert, when I choose one > it appears to Revert, but the currently opened Document stays the same. Assuming that your overridden -readFromFileWrapper: (or one of its subordinate methods)

Revert almost working

2014-12-02 Thread Kevin Bracey
Hi all, I’m sure I’m either way wrong or almost right. I have a NSDocument subclass that autosaves, saves, reads and automatically opens its opened docs on launch. When I go into Revert then are versions waiting to revert, when I choose one it appears to Revert, but the currently opened Documen

Re: Is NSURLSession with NSURLSessionDataTask safe for streaming network connection?

2014-12-02 Thread Sasikumar JP
Jens, On Wed, Dec 3, 2014 at 6:36 AM, Jens Alfke wrote: > > On Dec 2, 2014, at 4:47 PM, Sasikumar JP wrote: > > But some times, connection is terminated with -1001(NSURLErrorTimedOut) > error code (may be after 10 or 15 mins). I have tried with different radio > URLs. the same behaviour. > > >

Re: Is NSURLSession with NSURLSessionDataTask safe for streaming network connection?

2014-12-02 Thread Jens Alfke
> On Dec 2, 2014, at 4:47 PM, Sasikumar JP wrote: > > But some times, connection is terminated with -1001(NSURLErrorTimedOut) > error code (may be after 10 or 15 mins). I have tried with different radio > URLs. the same behaviour. That will happen if no data is received from the server for a wh

Is NSURLSession with NSURLSessionDataTask safe for streaming network connection?

2014-12-02 Thread Sasikumar JP
Hi, I have a streaming radio application in appstore, which uses Core Foundation URL Api to establish the streaming connection. It works fine. Recently i have replaced the CF URL API code with NSURLSession with NSURLSessionDataTask. It also works fine in most of the time. But some times, conne

Re: TextEdit Document Icon

2014-12-02 Thread Lee Ann Rucker
It's probably being done by this QuickLook plugin: qlmanage -m plugins public.plain-text -> /System/Library/QuickLook/Text.qlgenerator There's no sample code for that, but there is QuickLookSketch for the Sketch sample app. QuickLook puts the turned-down corner on for you. On Dec 2, 201

Sent keyboard events differ in debug and release builds

2014-12-02 Thread Michael Starke
Hello list, if this topic should be posted elsewhere, I'll gladly ask the question there. My application send keyboard events to the system to simulate copy/paste and other sorts of behaviour. This works well as far as I can tell, but I'm running into a hiccup. The code that sends events is thi

TextEdit Document Icon

2014-12-02 Thread Richard Charles
A TextEdit plain text document has a file icon that shows a page with turned down upper right corner with a preview of the document and has the characters “TXT” on top. In looking through the TextEdit sample code provided by Apple, I am trying to find where the plain text document preview and “

Re: [CALayer cornerRadius] vs. [NSBezierPath bezierPathWithRoundedRect:xRadius:yRadius]

2014-12-02 Thread Bill Cheeseman
> On Dec 1, 2014, at 5:50 PM, Graham Cox wrote: > >> On 2 Dec 2014, at 6:19 am, Bill Cheeseman > > wrote: >> >> Can anyone suggest another approach? > > Not another approach, but a possible alternative explanation. Antialiasing. > Those curved corners will cause