Re: NSURLSession + Bonjour to do peer-to-peer file transfers?

2013-12-26 Thread Eric Wing
On 12/25/13, Stephen J. Butler wrote: > NSURLSession is a fancy HTTP client. It needs to talk to an HTTP server. > None of the included iOS and OS X frameworks (that I'm aware of) include an > HTTP server. > > You can either run an HTTP server on the device in your app ( > https://www.google.com/s

Customizing UIActivityViewController

2013-12-26 Thread Nick Petrov
Hi, I need to change the tintColor of the cancel button in a UIActivityViewController. Any ideas? Can’t seem to find any hints on how to do this on the net. -Nick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin req

Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Peter Teeson
MountainLion 10.8.5, Xcode 5.0.2 My code creates some objects in code rather than using IB. This creates an NS Button, tests for the currentControlTint and the Cell controlTint. @interface Document : NSDocument ……… @property NSButton *Cancel; @property NSButton *Check; @end @implementation Docum

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Keary Suska
On Dec 26, 2013, at 10:49 AM, Peter Teeson wrote: > The documentation in the NSCell Class Reference states: > Designated Initializers > When subclassing NSCell you must implement all of the designated > initializers. > Those methods are: init, initWithCoder:, initTextCell:, and initImageCell:. >

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Peter Teeson
Thanks for your kind reply. On 2013-12-26, at 4:51 PM, Keary Suska wrote: > On Dec 26, 2013, at 10:49 AM, Peter Teeson wrote: > If you need something other than the default, I imagine you are expected to > set it yourself. I've checked what the cell's controlTint is immediately after being inst

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Quincey Morris
On Dec 26, 2013, at 09:49 , Peter Teeson wrote: > Sets the receiver’s control tint. > - (void)setControlTint:(NSControlTint)controlTint > Parameters > controlTint > An Designated Initializers value that specifies the tint of the receiver. > > Changing the instantiation code to this makes no diff

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Uli Kusterer
On 26 Dec 2013, at 18:49, Peter Teeson wrote: >_Cancel = [[NSButton alloc]init]; >[_Cancel setFrame:theButtonFrame]; >[_Cancel setNeedsDisplay:YES]; Several issues here: 1) Control tints only apply to window widgets, focus borders, token capsules and to Aqua UI. MacOS X 10.7 removed

Re: NSURLSession + Bonjour to do peer-to-peer file transfers?

2013-12-26 Thread Jens Alfke
On Dec 25, 2013, at 7:26 AM, Eric Wing wrote: > I can publish my iPhone via Bonjour and make my Mac discover and > resolve the address. I try to create a NSURLSessionDownloadTask on my > Mac and a NSURLSessionUploadTask on my iPhone. That won’t work, because both of those are acting as HTTP cli

Re: NSURLSession + Bonjour to do peer-to-peer file transfers?

2013-12-26 Thread Jens Alfke
On Dec 25, 2013, at 7:26 AM, Eric Wing wrote: > So I was looking > at NSURLSession because I assumed it used a standard protocol that > would be easy to talk with on other platforms. If your URLs start with “http:” then you’re using the HTTP protocol. But NSURL* classes support a variety of pr

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Peter Teeson
On 2013-12-26, at 6:44 PM, Quincey Morris wrote: > On Dec 26, 2013, at 09:49 , Peter Teeson wrote: >> Sets the receiver’s control tint. >> - (void)setControlTint:(NSControlTint)controlTint >> Parameters >> controlTint >> An Designated Initializers value that specifies the tint of the receiver. >

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Peter Teeson
On 2013-12-26, at 7:01 PM, Uli Kusterer wrote: > On 26 Dec 2013, at 18:49, Peter Teeson wrote: >> _Cancel = [[NSButton alloc]init]; >> [_Cancel setFrame:theButtonFrame]; >> [_Cancel setNeedsDisplay:YES]; > > Several issues here: > > 1) Control tints only apply to window widgets, focus bor

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Quincey Morris
On Dec 26, 2013, at 18:49 , Peter Teeson wrote: >> On Dec 26, 2013, at 09:49 , Peter Teeson wrote: >>> Sets the receiver’s control tint. >>> - (void)setControlTint:(NSControlTint)controlTint >>> Parameters >>> controlTint >>> An Designated Initializers value that specifies the tint of the receiv

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Kyle Sluder
On Thu, Dec 26, 2013, at 08:06 PM, Quincey Morris wrote: > However, also consider Uii’s other, implied point: you may be wasting > your time because the concept of button tinting in current versions of OS > X has simply gone away. What are you two talking about? Go try it for yourself. System Pref

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Kyle Sluder
On Thu, Dec 26, 2013, at 07:08 PM, Peter Teeson wrote: > [_Cancel setBezelStyle:NSShadowlessSquareBezelStyle]; Ah. I think I've found (part of) your problem. NSShadowlessSquareBezelStyle does not and to my knowledge has never supported tinting with the user's tint color. To my knowledge, the

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Quincey Morris
On Dec 26, 2013, at 20:39 , Kyle Sluder wrote: > What are you two talking about? I was talking about what Uli was talking about, using that as an excuse to be unencumbered by the thought process. However, if I can re-ask what I was getting at before, does it make any sense for Peter to be try