Re: Need replacement of Component Manager::OpenDefaultComponent

2017-02-25 Thread Ken Heglund
If you are linking against OSAKit, then something like the following (from ) may be a starting point: ComponentInstance compInstance = [[OSALanguage defaultLanguage] componentInstance]; -Ken > On Feb 25, 2017, at 1:02 PM, sumit bansal > wrote: > > I am using

Re: Non-deprecated way to determine Process Type (LSUIElement etc.) ?

2015-11-26 Thread Ken Heglund
NSRunningApplication.activationPolicy might do the trick for you. -Ken > On Nov 26, 2015, at 11:58 PM, Jerry Krinock wrote: > > Several years ago I succumbed to a few users who wanted the ability to switch > my OS X apps between foreground (regular app) and background

Re: Detect shift key down

2011-06-25 Thread Ken Heglund
This is how I do it in the application delegate's applicationDidFinishLaunching: implementation... UInt32 modifiers = GetCurrentKeyModifiers(); if ( modifiers shiftKey ) { // handle shift key... } -Ken On Jun 24, 2011, at 12:19 AM, Bernard Desgraupes wrote: Hi, I need to

Re: Proper NSOperation isCancelled handling

2009-02-13 Thread Ken Heglund
On Feb 13, 2009, at 8:23 AM, Kyle Sluder wrote: On Fri, Feb 13, 2009 at 8:55 AM, Alex Curylo a...@alexcurylo.com wrote: Because all -start does is initiate an NSURLConnection. If it's failing to connect or whatever, I want the operation to stop when the user says so, not whenever