Re: Checking security settings?

2014-09-05 Thread SevenBits
On Thursday, September 4, 2014, Britt Durbrow < bdurb...@rattlesnakehillsoftworks.com> wrote: > I need to verify that the user has a login password set; and to verify > that they have a screensaver turned on with a password requirement (I’m > trying to make sure that the workstation is HIPAA compl

Re: button in the class which inherit from UIView

2014-09-05 Thread SevenBits
On Friday, September 5, 2014, bigpig wrote: > I wirte a class which inherit from UIView to show the view.This view > include a button.And how can i implement the respond method of this > button.UIView class can’t respond button respond method. To do it programmatically, you call -setAction: on

Re: Checking security settings?

2014-09-05 Thread Jens Alfke
It might be better to make your app itself enforce the HIPAA requirements — for example, blank the application's windows after a period of no activity, and require a passcode to un-blank them. That won't involve any sandboxing issues. —Jens ___ Cocoa-

Re: Checking security settings?

2014-09-05 Thread Britt Durbrow
If I can’t find an officially supported way to do this, then yeah - that’s what I figure I’ll have to do. I was trying to avoid it due to user experience issues; requiring a second login, etc is cumbersome every time somebody wants to record something in the app… Oh well... On Sep 5, 2014, a

Re: Checking security settings?

2014-09-05 Thread Quincey Morris
On Sep 5, 2014, at 10:15 , Britt Durbrow wrote: > If I can’t find an officially supported way to do this, then yeah - that’s > what I figure I’ll have to do. I was trying to avoid it due to user > experience issues; requiring a second login, etc is cumbersome every time > somebody wants to r

Re: Checking security settings?

2014-09-05 Thread SevenBits
On Friday, September 5, 2014, Quincey Morris < quinceymor...@rivergatesoftware.com> wrote: > On Sep 5, 2014, at 10:15 , Britt Durbrow < > bdurb...@rattlesnakehillsoftworks.com > wrote: > > > If I can’t find an officially supported way to do this, then yeah - > that’s what I figure I’ll have to do.

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 Jens Alfke
> 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've blocked one of the threads that services the global dispatch queu

Re: dispatch_sync(dispatch_get_main_queue() UI weirdness

2014-09-05 Thread Jonathan Guy
I’m using a third party c library that requires registering a callback which gets called if the operation encounters an invalid server certificate (should i accept or reject the cert). The callback needs to return yes or no, which I need to get via a UI prompt so the prompt needs to block so I c

Re: dispatch_sync(dispatch_get_main_queue() UI weirdness

2014-09-05 Thread Quincey Morris
On Sep 5, 2014, at 13:31 , Jonathan Guy wrote: > The callback is basically structured like this > > __block BOOL accept; > > if ([NSThread isMainThread]) { > accept = [[Controller sharedController] shouldIAccept:certInfo]; > } > else { >

Re: dispatch_sync(dispatch_get_main_queue() UI weirdness

2014-09-05 Thread Sandy McGuffog
Difficult to know exactly what's happening in your situation, but I’d be inclined to try something like: dispatch_time_t duration = dispatch_walltime(DISPATCH_TIME_NOW, offset_nsec); dispatch_after(duration, dispatch_get_main_queue(), ^{

Re: dispatch_sync(dispatch_get_main_queue() UI weirdness

2014-09-05 Thread Jens Alfke
> On Sep 5, 2014, at 1:48 PM, Quincey Morris > wrote: > > It seems to me you’re *still* abusing the main thread. A dispatch_sync blocks > the main thread, so it can’t be allowed to do anything that run > asynchronously on the main thread (such as displaying a dialog) since that > won’t compl

Re: Modal sheet, full screen & swipe instability

2014-09-05 Thread Erwin Namal
Dear All, I have issues with a fullscreen app. Wh a sheet is open (beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:), and I swipe to Desktop and then swipe back to the app, the screen remains for 2 seconds on the app and then swipes again back to Desktop without my interactio

Re: Checking security settings?

2014-09-05 Thread Britt Durbrow
Heh… fortunately I’m *very* early in the design of this, so yeah… nothing is set in stone yet. :-) On Sep 5, 2014, at 11:20 AM, SevenBits wrote: > On Friday, September 5, 2014, Quincey Morris < > quinceymor...@rivergatesoftware.com> wrote: > >> On Sep 5, 2014, at 10:15 , Britt Durbrow < >> bd

Re: dispatch_sync(dispatch_get_main_queue() UI weirdness

2014-09-05 Thread Doug Hill
My take on this is that you shouldn’t be blocking an AppKit callback (applicationDidFinishLaunching:). I can’t say definitively if this particular callback is problematic. But I’ve had problems like this in past where the delegate is called on the main thread and the delegate doing a blocking ca

Re: dispatch_sync(dispatch_get_main_queue() UI weirdness

2014-09-05 Thread Roland King
> > Why not? I assume Jonathan's -shouldIAccept: is running a nested event loop > for the modal panel, since it doesn't return till the user dismisses it. > > (Whether it's a dispatch_sync or a dispatch_async doesn't matter; the main > thread will be blocked for as long as the block takes to r

Generating Core Data classes in Swift

2014-09-05 Thread Jim Geist
Say my app is called MyGreatApp, and I have a Core Data entity named Entity. Per instructions, I namespace the class associated with the entity and call it MyGreatApp.Entity. When I use Create NSManagedObject Subclasses and tell it to generate Swift files, I get a class called MyGreatApp that co

Re: Generating Core Data classes in Swift

2014-09-05 Thread Jerry Krinock
On 2014 Sep 05, at 20:22, Jim Geist wrote: > Workaround other than hand-tweaking the class? You could use mogenerator instead of Xcode to generate your Core Data classes. Although I’ve not tried it yet, supposedly mogenerator now has a —-swift option. https://github.com/rentzsch/mogenerato

Re: Generating Core Data classes in Swift

2014-09-05 Thread Jerry Krinock
Correct link to mogenerator good sales pitch… http://raptureinvenice.com/getting-started-with-mogenerator/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the modera

Re: dispatch_sync(dispatch_get_main_queue() UI weirdness

2014-09-05 Thread Ken Thomases
On Sep 5, 2014, at 1:44 PM, Jonathan Guy wrote: > 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. M