Re: NSScrollView and NSTrackingArea woes

2015-07-16 Thread dangerwillrobinsondanger
Why not just observe bounds change notifications from the clipview? Then handle those with the update call. Sent from my iPhone > On Jul 17, 2015, at 10:58 AM, João Varela wrote: > >> On Friday, July 17, 2015, Ken Thomases wrote: >> >> On Jul 16, 2015, at 8:19 PM, João Varela > > wrote: >>>

Re: NSScrollView and NSTrackingArea woes

2015-07-16 Thread Quincey Morris
On Jul 16, 2015, at 18:19 , João Varela wrote: > > The options I am using are the following: > > NSTrackingAreaOptions options = NSTrackingMouseEnteredAndExited | > NSTrackingMouseMoved| > NSTrackingActiveInActiveApp; Apart from the things Ken said, I’m struck by the above. So you’re

Re: NSScrollView and NSTrackingArea woes

2015-07-16 Thread João Varela
On Friday, July 17, 2015, Ken Thomases wrote: > On Jul 16, 2015, at 8:19 PM, João Varela > wrote: > > > > I’m passing [self bounds]. And no, I am not using NSTrackingInVisibleRect > > Why aren't you using that? That seems like the most obvious way to get > correct behavior. The only reason you

Re: NSScrollView and NSTrackingArea woes

2015-07-16 Thread Ken Thomases
On Jul 16, 2015, at 8:19 PM, João Varela wrote: > > I’m passing [self bounds]. And no, I am not using NSTrackingInVisibleRect Why aren't you using that? That seems like the most obvious way to get correct behavior. The only reason you wouldn't use it is if you were adding a tracking area tha

Re: NSScrollView and NSTrackingArea woes

2015-07-16 Thread João Varela
> On 15 Jul 2015, at 18:28, Quincey Morris > wrote: > > On Jul 15, 2015, at 03:08 , João Varela > wrote: >> >> However, none of this happens when the user only scrolls (up or down) a >> little and does not reach the top or bottom of the document view. In this >

Re: NSScrollView and NSTrackingArea woes

2015-07-16 Thread João Varela
> On 15 Jul 2015, at 11:44, Muthulingam Ammaiappan > wrote: > > Hi J.Varela, > > > i too faced the same problem... and i found that "inertial scrolling" has > the reason for this misbehaviour. > so "disable the inertia scrolling" will solve this problem. > > just add the following line to

Re: NSPredicate or Collection operators?

2015-07-16 Thread Sandor Szatmari
Martin, That's a nice approach. I had, maybe mistakenly, assumed that the objects in the dictionary were themselves dictionaries in which case I wouldn't mind embedding key names in predicate strings. The key names can be parametrized too, to mitigate some maintenance concerns. I do agree th

Re: Safe time to add accessory view to NSSavePanel in sandboxed app?

2015-07-16 Thread Graham Cox
> On 17 Jul 2015, at 6:20 am, Mike Abdullah wrote: > >>> Is it trying to be clever and re-use existing accessory views, or is a >>> fresh one created each time? >> >> Why do you ask? Is this a known problem? > > My thinking is _setSuperview: seems somewhat a surprising place to crash. > > I’

Re: NSSecureCoding with containers (or, is NSArray lying?)

2015-07-16 Thread Graham Cox
> On 16 Jul 2015, at 12:17 pm, André Francisco > wrote: > > This can easily crash an app if I get a type that I'm not expecting, even if > it implements NSSecureCoding. Actually, probably not. It will likely start throwing exceptions all over the place, which *may* cause termination, but it

Re: Integrating touch Id with sign up-in process in client-server based app

2015-07-16 Thread Jens Alfke
> On Jul 16, 2015, at 2:10 PM, Devarshi Kulshreshtha > wrote: > > My question is - is there any way we can use touch ID to validate user at > server, say by sending and validating his biometric information at server? No. The biometric data never leaves the locked-down trusted module inside the

Re: C Sharp?

2015-07-16 Thread Michael David Crawford
This is done in two different ways for java and pascal. In principle either would work for C# but I do not know of any actual implementations. One could add C# to clang or some other front end to buil native code as does the gcj "ahead of time" java compiler. You will still need to link to a runt

Re: C Sharp?

2015-07-16 Thread Gary L. Wade
Actually the requirements are for both Mac and iOS; the app I referred to was on the Mac App Store. But, if that's not an issue, then that's okay. I just wanted to point that out in case it was a potentiality. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Jul 16, 2015, at 2

Re: C Sharp?

2015-07-16 Thread Dave
> On 16 Jul 2015, at 21:26, Gary L. Wade wrote: > > Just keep in mind that according to Apple's App Store rules, this qualifies > as interpreted code. I worked on a really well known app that used a C# > component for a fairly important piece of functionality, and that part could > not be in

Re: NSPredicate or Collection operators?

2015-07-16 Thread Martin Wierschin
>> BOOL itemIsPresentWithIdenticalValue = [[[self.geofenceObjects allValues] >> filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"smi == %@", >> thingWeAreCheckingFor]] count] > 0; ... > I'm not a fan of mashing everything together into one line as it makes > readability and compreh

Integrating touch Id with sign up-in process in client-server based app

2015-07-16 Thread Devarshi Kulshreshtha
Hi All, I am working on an app in which user can perform registration and then can login into it by entering his email id and password. As per the new requirements client wants us to support touch Id authentication during sign in process. After reading through the documentation what I have under

Re: Safe time to add accessory view to NSSavePanel in sandboxed app?

2015-07-16 Thread Martin Wierschin
That logic makes good sense Mike. Unfortunately it doesn't seem to avert the crash. My own app, which still encounters this crash from time to time, actually already does what you suggest: after the save operation has been completed, the accessory view removes itself from the NSSavePanel by call

RE: NSSecureCoding with containers (or, is NSArray lying?)

2015-07-16 Thread André Francisco
I've got to say, it's a bit disappoint. By my understanding NSSecureCoding classes should be immune to substitution attacks, but that doesn't seem to be the case with containers. I mean, not if I don't check the expected types, but that's on me, not cocoa. It's nice to know, though, as this coul

Re: C Sharp?

2015-07-16 Thread Gary L. Wade
Just keep in mind that according to Apple's App Store rules, this qualifies as interpreted code. I worked on a really well known app that used a C# component for a fairly important piece of functionality, and that part could not be in our App Store version (the non-App Store could keep it), and

Re: Safe time to add accessory view to NSSavePanel in sandboxed app?

2015-07-16 Thread Mike Abdullah
> On 16 Jul 2015, at 20:30, Martin Wierschin wrote: > >>> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread >>> 0 libobjc.A.dylib 0x7fff8b5b80dd objc_msgSend + 29 >>> 1 com.apple.AppKit0x7fff9231bb94 -[NSView >>> _setSuperview:] + 2591 >>> 2

Re: C Sharp?

2015-07-16 Thread Jonathan Mitchell
> On 16 Jul 2015, at 19:56, Glenn R. Martin wrote: > > Is there any reason we can't just provide a lipo'd fat archive of both 32 and > 64? > I don’t know why this isn’t done (or else I am missing something). I can build Mono okay on OS X but I never located the packaging script that takes the

Re: Safe time to add accessory view to NSSavePanel in sandboxed app?

2015-07-16 Thread Martin Wierschin
I've also seen this crash, as reported by users of my own sandboxed app, though I've never reproduced it myself. I've also seen other situations where NSSavePanel and NSOpenPanel trigger XPC assertions/exceptions. For example: > *** Assertion failure in +[NSXPCSharedListener > connectionForList

Re: C Sharp?

2015-07-16 Thread Dave
I managed to install Home Brew and the Dependancies, but permission problems running this Scrpt: PATH=$PREFIX/bin:$PATH git clone https://github.com/mono/mono.git cd mono ./autogen.sh --prefix=$PREFIX --disable-nls make make install What should $PREFIX be set to? To build Mono from a Git S

Re: C Sharp?

2015-07-16 Thread Glenn R. Martin
Is there any reason we can't just provide a lipo'd fat archive of both 32 and 64? That wouldn't break MonoDevelop I would think. Sent from my iPhone > On Jul 16, 2015, at 09:38, Dave wrote: > > I’m trying to run this Script: > > PREFIX=/usr/local > > > # Ensure you have write permissions t

Re: C Sharp?

2015-07-16 Thread Jens Alfke
> On Jul 16, 2015, at 6:38 AM, Dave wrote: > > -bash: ./MonoDependanciesInstall.sh: Permission denied You can’t invoke a shell script directly as a command unless the file has executable permission. Either do ‘chmod +x MonoDependanciesInstall.sh’ first, or just run it as ‘bash MonoDependancie

Re: WebView and cookies

2015-07-16 Thread Jens Alfke
> On Jul 16, 2015, at 3:37 AM, Mirko Viviani wrote: > > I’m using the following code for FaceBook authentication with custom cookie > management (-setHTTPShouldHandleCookies:NO), > but recently it has stopped working with a web message ‘Cookies are not > enabled’. Have you set breakpoints or

Re: C Sharp?

2015-07-16 Thread Dave
I’m trying to run this Script: PREFIX=/usr/local # Ensure you have write permissions to /usr/local mkdir $PREFIX sudo chown -R `whoami` $PREFIX PATH=$PREFIX/bin:$PATH # Download and build dependencies mkdir ~/Build cd ~/Build curl -O ftp://ftp.gnu.org/gnu/m4/m4-1.4.17.tar.gz curl -O ftp://f

Re: C Sharp?

2015-07-16 Thread Jonathan Mitchell
Hi Dave > On 16 Jul 2015, at 12:13, Dave wrote: > > Hi All, > > It seems that the Mono Framework is 32 Bit and needs to be recompiled for 64 > Bit. > > I’m a bit confused by this, does it mean that I need to Build Mono from > http://www.mono-project.com/Compiling_Mono_on_OSX or does it mean I

Re: C Sharp?

2015-07-16 Thread Dave
Hi All, It seems that the Mono Framework is 32 Bit and needs to be recompiled for 64 Bit. See - https://github.com/ThesaurusSoftware/Dubrovnik In the Overview Section: Building 64 Bit Mono Framework To build 64 bit see http://www.mono-project.com/Compiling_Mono_on_OSX The build does not prod

WebView and cookies

2015-07-16 Thread Mirko Viviani
Hi, I’m using the following code for FaceBook authentication with custom cookie management (-setHTTPShouldHandleCookies:NO), but recently it has stopped working with a web message ‘Cookies are not enabled’. It does work if I set -setHTTPShouldHandleCookies:YES, but I don’t want to share cookie

Re: C Sharp?

2015-07-16 Thread Dave
Thanks for this, yes, I imagined there would be a lot of overhead using this approach, but there’s at least 6 man years of development gone into the C# code and it’s not really viable to rewrite it in Objective-C if it’s even possible. All the Best Dave > On 14 Jul 2015, at 22:14, Jens Alfke

Re: Safe time to add accessory view to NSSavePanel in sandboxed app?

2015-07-16 Thread Mike Abdullah
> On 16 Jul 2015, at 02:33, Graham Cox wrote: > > > Pertinent details below - the line marked contains the code > listed previously, which is an action method invoked by a menu command. > > > Date/Time: 2015-07-15 10:32:36.027 -0400 > OS Version:Mac OS X 10.10.4 (14E

Re: Getting the failed URL from webView:didFailProvisionalNavigation:withError:

2015-07-16 Thread Quincey Morris
On Jul 15, 2015, at 23:45 , Rick Mann wrote: > > I wish the deprecation warnings in the headers indicated the replacements. When Xcode can tell you it's deprecated, it’s always worth checking in the header file directly for any comments about what to use instead. (Note that deprecations *can*