security agent plugins and autologin

2015-08-25 Thread Jonathan Guy
Hi all Not sure if this is the right place to post this but thought I’d give it a try. I have a security notice which is presented to users when they login. The notice window is generated by a security agent plugin and an entry is added to the mechanisms in the authorization database (just afte

Diff view framework?

2016-01-25 Thread Jonathan Guy
Hi all Does anyone know of a cocoa framework which provides a view for showing file differences? I am aware there are plenty of free and paid apps to do this but I really need this view to be built into my app if possible. Thanks for any help. Jonathan

dispatch_sync(dispatch_get_main_queue() UI weirdness

2014-09-05 Thread Jonathan Guy
This is for MacOS not iOS. If your running code on a GCD queue dispatch_sync(dispatch_get_main_queue(), ^{ //do UI stuff }); is pretty much the way to do UI stuff on the main thread/queue which seems to work well for iOS. MacOS seems to be a different story. Try this for a simple example -

Re: dispatch_sync(dispatch_get_main_queue() UI weirdness

2014-09-05 Thread Jonathan Guy
Alfke wrote: > >> On Sep 5, 2014, at 11:44 AM, Jonathan Guy wrote: >> >> when the NSOpenPanel opens all kinds of weirdness is going on. The scroll >> views scroll very erratically if at all and the directories don't list >> properly. > > Well, you

NSTableView row heights with auto layout and bindings

2015-06-30 Thread Jonathan Guy
Hi Im trying to fix a problem with dynamic row heights with auto layout and bindings which was working fine in an older build of Xcode but which now no longer works. So my new attempt for the most part works but about 30% of my row heights are not correctly calculated. Basically I create a refer

Re: NSTableView row heights with auto layout and bindings

2015-07-01 Thread Jonathan Guy
> On 1 Jul 2015, at 09:37, Ken Thomases wrote: > > On Jun 30, 2015, at 11:56 AM, Jonathan Guy wrote: > >> Im trying to fix a problem with dynamic row heights with auto layout and >> bindings which was working fine in an older build of Xcode but which now no &g

Building a tree

2009-11-13 Thread Jonathan Guy
Hi all I'm having a hard time finding a good example of this on the web so I thought I'd post here. I have an array of file system paths (NSStrings) and need to convert this into a tree structure using parent child tree node objects. The method has to be as efficient as possible as it will

NSBundle unloading crash

2010-01-27 Thread Jonathan Guy
Hi all This problem has me pretty stumped. I've been trying to figure this out for about a week now with no success. I have an embedded framework which itself has two embedded bundles. The two bundles contain the same code of an open source project but just different versions. The framework is d

Re: NSBundle unloading crash

2010-01-29 Thread Jonathan Guy
been passed back to me by a method in the bundle once it has been unloaded? (the dictionary contains only standard foundation kit objects). Also any other things to watch out for would be greatly appreciated. On 27 Jan 2010, at 22:30, Greg Parker wrote: > On Jan 27, 2010, at 2:01 AM, Jonathan

Garbage collection 32 & 64-bit

2010-09-14 Thread Jonathan Guy
Hi all Having an issue with GC. I compile an app 32 & 64-bit intel only with GC supported (not required). The app has a webview which loads a flash animation (hence requiring the flash plugin). On a new intel box running Snow Leopard and everything running 64-bit all works fine. I run the same a

Drawing when app is in active

2012-03-31 Thread Jonathan Guy
Hi all This is must be the most simple a puzzling problem I've had. Take a new app, create a custom view class with a drawrect of - (void)drawRect:(NSRect)dirtyRect { if ([NSApp isActive]) { [[NSColor redColor] set]; } else { [[NSColor blueColor

Changing drag image while modal

2013-02-12 Thread Jonathan Guy
While performing a drag and drop in NSOutlineView at the point where I accept the drop I want to throw up an NSPopover at the drop point with some options and an accept or decline button to ultimately accept or refuse the drop. The popover needs to run modal so as to block on the return to acce