Re: Changing the color of an NSWindow’s titlebar text

2015-06-22 Thread Lee Ann Rucker
Oops. Well, whatever the setting is called that combines the title with the toolbar. It’s not the same as a title/toolbar accessory - those wouldn’t be a good choice for a title replacement. On Jun 22, 2015, at 5:14 PM, Quincey Morris mailto:quinceymor...@rivergatesoftware.com>> wrote: On Jun

Re: EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x00000000bbadbeef crash on UIWebview

2015-06-22 Thread Conrad Shultz
From this backtrace it looks like you might be trying to perform UI operations someplace other than on the main queue, which would cause problems. I'd start by checking whether you have: -Any dispatches to a background queue that might need a dispatch_async to the main queue. -Any observer call

Re: Changing the color of an NSWindow’s titlebar text

2015-06-22 Thread Quincey Morris
On Jun 22, 2015, at 17:04 , Lee Ann Rucker wrote: > > NSUnifiedTitleAndToolbarWindowMask That’s something much older. AFAIK it just controls whether there’s any visible boundary between the title bar and toolbar. It may have some different effect in Yosemite, IDK. Carl has several choices of

Re: Changing the color of an NSWindow’s titlebar text

2015-06-22 Thread SevenBits
On Monday, June 22, 2015, Lee Ann Rucker wrote: > In rdar://12617674 , back in 2012 when making windows with dark titlebars > like QuickTime Player has involved doing things we can’t discuss here Out of curiosity, why can't it be discussed here? Does it involve private API or something similar?

Re: Changing the color of an NSWindow’s titlebar text

2015-06-22 Thread Lee Ann Rucker
I think Safari is using NSUnifiedTitleAndToolbarWindowMask. If you do that and you don’t have a toolbar, you can just center an NSTextField where you want it. If you do have a toolbar you can still put an NSTextField in it, you just can’t control whether it stays centered or even if it stays in

Re: Changing the color of an NSWindow’s titlebar text

2015-06-22 Thread Carl Hoefs
> On Jun 22, 2015, at 4:49 PM, Quincey Morris > wrote: > > On Jun 22, 2015, at 16:39 , Carl Hoefs > wrote: >> >> Where might I find info on the API that Safari uses? > > It’s not Safari-specific, it’s a new Yosemite API that (I assume) Safari now > use

Re: Changing the color of an NSWindow’s titlebar text

2015-06-22 Thread Quincey Morris
On Jun 22, 2015, at 16:39 , Carl Hoefs wrote: > > Where might I find info on the API that Safari uses? It’s not Safari-specific, it’s a new Yosemite API that (I assume) Safari now uses. For a quick overview, look in the release notes: https://developer.apple.com/library/mac/releasenote

Re: Changing NSImageView's default background fill color

2015-06-22 Thread Carl Hoefs
> On Jun 22, 2015, at 4:45 PM, Jens Alfke wrote: > > >> On Jun 22, 2015, at 4:25 PM, Carl Hoefs > > wrote: >> >> I have a (subclassed) NSImageView in an NSWindow, and when it displays an >> image that doesn’t fit proportionally it will show a mid-gray ba

Re: Changing NSImageView's default background fill color

2015-06-22 Thread Jens Alfke
> On Jun 22, 2015, at 4:25 PM, Carl Hoefs > wrote: > > I have a (subclassed) NSImageView in an NSWindow, and when it displays an > image that doesn’t fit proportionally it will show a mid-gray background fill > color around the image, apparently by default. Did you change the imageFrameStyl

Re: Changing the color of an NSWindow’s titlebar text

2015-06-22 Thread Carl Hoefs
> On Jun 22, 2015, at 4:31 PM, Quincey Morris > wrote: > > On Jun 22, 2015, at 16:17 , Carl Hoefs > wrote: >> >> Thanks. It looks like that’s what I will have to do! > > Other possibilities that occur to me: > > 1. Place a child window so that sits cen

Re: Changing the color of an NSWindow’s titlebar text

2015-06-22 Thread Quincey Morris
On Jun 22, 2015, at 16:17 , Carl Hoefs wrote: > > Thanks. It looks like that’s what I will have to do! Other possibilities that occur to me: 1. Place a child window so that sits centered over the title bar. 2. If you’re targeting Yosemite or above, use the same API that Safari uses to place a

Changing NSImageView's default background fill color

2015-06-22 Thread Carl Hoefs
I have a (subclassed) NSImageView in an NSWindow, and when it displays an image that doesn’t fit proportionally it will show a mid-gray background fill color around the image, apparently by default. Is there any way I can change that background fill color? To either 0 alpha or black? The fol

Re: Changing the color of an NSWindow’s titlebar text

2015-06-22 Thread Carl Hoefs
Thanks. It looks like that’s what I will have to do! -Carl > On Jun 22, 2015, at 4:04 PM, Lee Ann Rucker wrote: > > In rdar://12617674 , back in 2012 when making windows with dark titlebars > like QuickTime Player has involved doing things we can’t discuss here, I > requested a [NSWindow setTi

Re: Changing the color of an NSWindow’s titlebar text

2015-06-22 Thread Lee Ann Rucker
In rdar://12617674 , back in 2012 when making windows with dark titlebars like QuickTime Player has involved doing things we can’t discuss here, I requested a [NSWindow setTitleColor:]. There’s been no activity on that bug since, but if you file a new one it might get marked as duplicate! On Ju

Changing the color of an NSWindow’s titlebar text

2015-06-22 Thread Carl Hoefs
I’m trying to change the color of an NSWindow’s titlebar text. The background of the window is dark gray, making the default black color of the titlebar text unreadable. Is there a programmatic way to do this? Or in IB a user defined runtime attribute keypath? -Carl _

Re: Getting a server to trust the client. (iOS)

2015-06-22 Thread Maxthon Chan
You can use a second authentication factor though. For example, push notifications (which ties back to Apple servers and the device’s serial number) and SMS verification code (commonly found in two-factor authentication schemes) > On Jun 23, 2015, at 02:05, Kyle Sluder wrote: > > On Mon, Jun 2

Re: Getting a server to trust the client. (iOS)

2015-06-22 Thread Kyle Sluder
On Mon, Jun 22, 2015, at 12:32 PM, Alex Zavatone wrote: > Basically, we're trying to make sure that we limit just what type of > client can contact our web service and limit it to our iOS and Android > apps. Generally speaking, this isn't possible. All of the information necessary to authenticate

Re: Getting a server to trust the client. (iOS)

2015-06-22 Thread Alex Zavatone
Basically, we're trying to make sure that we limit just what type of client can contact our web service and limit it to our iOS and Android apps. Using full challenge response seems to be frowned on since if we implement it, it's across all servers and this would break the current clients we hav

Re: Getting a server to trust the client. (iOS)

2015-06-22 Thread Jens Alfke
> On Jun 22, 2015, at 6:43 AM, Alex Zavatone wrote: > > We're all familiar with using a SSL cert to get a client to trust a server, > but we're looking at is getting a server to trust that a trusted client is > allowed to access it. Yup, that’s SSL (or TLS) client certificate authentication.

Re: Getting a server to trust the client. (iOS)

2015-06-22 Thread Sixten Otto
Using client-side certificates in TLS is pretty standard stuff, and should be well-supported by the system. You might start here: https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/URLLoadingSystem/Articles/AuthenticationChallenges.html The biggest issue with something like thi

Getting a server to trust the client. (iOS)

2015-06-22 Thread Alex Zavatone
We're all familiar with using a SSL cert to get a client to trust a server, but we're looking at is getting a server to trust that a trusted client is allowed to access it. I was thinking of embedding an SSL cert within the iOS app and validating against that, but I'm sort of lost on a way to s

Re: EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x00000000bbadbeef crash on UIWebview

2015-06-22 Thread Devarshi Kulshreshtha
Thanks Mike.. I will try that and check for memory leaks in my app On Mon, Jun 22, 2015 at 2:38 PM, Mike Abdullah wrote: > Have you experimented with passing something bigger than CGRectZero for > the web view’s initial size? Maybe it’s freaking out over that. > > Some googling also suggests tha

Re: EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x00000000bbadbeef crash on UIWebview

2015-06-22 Thread Mike Abdullah
Have you experimented with passing something bigger than CGRectZero for the web view’s initial size? Maybe it’s freaking out over that. Some googling also suggests that the bbadbeef code can mean WebKit couldn’t allocate enough memory. Maybe you’re using too much memory in your app in total? >

EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x00000000bbadbeef crash on UIWebview

2015-06-22 Thread Devarshi Kulshreshtha
Here is my viewDidLoad method: EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0xbbadbeef - (void)viewDidLoad { [super viewDidLoad]; [self setTitle:[self.parameters_ get:@"title"]]; whiteBGLayer = [[CALayer alloc] init]; [whiteBGLayer setBackgroundColor:[UIColor whiteColor].CGColo

Re: Autosave + non-file URL's == trouble

2015-06-22 Thread Charles Srstka
On Jun 22, 2015, at 1:44 AM, Uli Kusterer wrote: > > On 22 Jun 2015, at 00:02, Charles Srstka > wrote: >> I’ve used NSDocument with non-file URLs for years, just not with autosave. >> (I really, really wish that autosavesInPlace were an instance method instead