Re: Is it possible for a WebView to not share sessions with Safari on Mac OS X?

2015-02-07 Thread Juanjo Conti
I'm using the one described in this article: http://cutecoder.org/programming/implementing-cookie-storage/ I seems to kind of work, but some sites like gmail aren't working ok, complaining the user is not logged in, after it is logged in and mails are shown. Have anyone used this implementation?

What UIControl could this be?

2015-02-07 Thread Aaron Lewis
Hi, I'm trying to create something similar in this image: http://ui4app.qiniudn.com/photo/app/527dae076803fa9c0103.png In the middle of the View there's a horizontal navigation bar, the 190 photos, 429 followers and 253 following part. Looks similar to UISegmentControl I guess? But I'm not

Re: Connecting a button to MyView zeros integers

2015-02-07 Thread Uli Kusterer
So quick to discount Stack Overflow. What they’re suggesting is simply how to create a new object and define a new outlet on it that points to an object in a quick way. Seems like a perfectly good answer to a problem to me, and my guess is the OP might not have quite matched it up to the right

Re: Trying to create a circular button with image, but the image wasn't clipped automatically

2015-02-07 Thread Jonathan Hull
You need to set the layer’s -maskToBounds: property to YES to clip. Thanks, Jon On Feb 7, 2015, at 10:38 PM, Aaron Lewis the.warl0ck.1...@gmail.com wrote: Hi, I'm trying to create a circular button, with an rectangular image: self.button.layer.borderColor = [UIColor

Re: ARC dealloc best pratice

2015-02-07 Thread Jonathan Mitchell
On 6 Feb 2015, at 17:34, Kyle Sluder k...@ksluder.com wrote: On Fri, Feb 6, 2015, at 08:48 AM, Jonathan Mitchell wrote: So I want to have a best practice template to follow in my dealloc. Dealloc is too late for a lot of this stuff. I try to keep -dealloc as pure as possible; that is,

OS X 10.10 KVO default behaviour change when observers not removed

2015-02-07 Thread Jonathan Mitchell
Jens mentioned in a previous thread that he was not quite sure whether to always remove observations or not. This was bugging me. I always did it, though more out of habit than absolute conviction. The code below confirms that not removing the observation prior to deallocating the observing

Re: Identify all open files of current OS X process

2015-02-07 Thread Roland King
On 8 Feb 2015, at 07:26, Jerry Krinock je...@ieee.org wrote: I need a method which will give me the paths of all files which the current OS X process (*) has open. Yes, this is for a benevolent hack and no, I am not sandboxed. I’m considering using getpid() and passing the result to

Identify all open files of current OS X process

2015-02-07 Thread Jerry Krinock
I need a method which will give me the paths of all files which the current OS X process (*) has open. Yes, this is for a benevolent hack and no, I am not sandboxed. I’m considering using getpid() and passing the result to /usr/sbin/lsof with a -p option. This works very fast in

Trying to create a circular button with image, but the image wasn't clipped automatically

2015-02-07 Thread Aaron Lewis
Hi, I'm trying to create a circular button, with an rectangular image: self.button.layer.borderColor = [UIColor blackColor].CGColor; self.button.layer.borderWidth = 5; self.button.layer.cornerRadius = self.button.bounds.size.width / 2.0; [self.button setBackgroundImage: