Re: Accessing information from applications

2011-06-02 Thread Bhatnagar, Arvin
From the man page you can do something like this: lsof -F | grep MyApp Excerpt from the man page of lsof: OUTPUT FOR OTHER PROGRAMS When the -F option is specified, lsof produces output that is suitable for processing by another program - e.g, an awk or Perl script, or a C program. Run

Re: Accessing information from applications

2011-06-02 Thread Bhatnagar, Arvin
FYI: If you open Activity Monitor and double click on a process. Then you can see a list of open files and ports. Also, iN terminal if you enter 'lsof -p pid' then you should see the exact same output. On 6/2/11 2:56 PM, Bhatnagar, Arvin arvin.bhatna...@verizon.com wrote: From the man page

Usage: kAuthorizationEnvironmentIcon

2011-05-24 Thread Bhatnagar, Arvin
Hi List, I've been doing a lot with Authorization Services lately. My code is working in regard to setting up an AuthorizationEnvironment and passing that into AuthorizationCopyRights(). However, specifically I am curious about the environment tag: kAuthorizationEnvironmentIcon When I use

Re: Arbitrary Shaped Windows

2011-04-29 Thread Bhatnagar, Arvin
Laurent, Look into subclassing the view and setting up a tracking area. Thanks, Arvin On 4/29/11 2:16 PM, Abhinav K Tyagi abhityag...@gmail.com wrote: Hi Laurent, I too agree with you on this. The circular shape i just mention as a case. It can be any shape. Its just an idea.. good or bad

Re: CALayer: Animation using actions property

2011-04-22 Thread Bhatnagar, Arvin
, 21 Apr 2011 12:03:50 -0400 To: Arvin Bhatnagar arvin.bhatna...@one.verizon.commailto:arvin.bhatna...@one.verizon.com Cc: cocoa-dev cocoa-dev@lists.apple.commailto:cocoa-dev@lists.apple.com Subject: Re: CALayer: Animation using actions property On Apr 20, 2011, at 8:07 AM, Bhatnagar, Arvin wrote

Re: CALayer: Animation using actions property

2011-04-20 Thread Bhatnagar, Arvin
, Bhatnagar, Arvin wrote: Ok that worked if I were animating just one layer on its own. However, I am animating three separate layers in sequence to one another. I know we can group multiple animations for one layer (CAGroupAnimation). Other than using a timer, is there an alternative

Re: CALayer: Animation using actions property

2011-04-19 Thread Bhatnagar, Arvin
explain this further, I am all ears! Thanks, Arvin On 4/18/11 10:49 PM, Bhatnagar, Arvin arvin.bhatna...@verizon.com wrote: Hi All, This is probably a simple question for someone other than I. I have a very simple CALayer which is a simple plain layer with a white background. I then create

Re: CALayer: Animation using actions property

2011-04-19 Thread Bhatnagar, Arvin
Thanks David, I am going to try that suggestion right now. On 4/19/11 11:59 AM, David Duncan david.dun...@apple.com wrote: On Apr 18, 2011, at 7:49 PM, Bhatnagar, Arvin wrote: This is probably a simple question for someone other than I. I have a very simple CALayer which is a simple plain

Re: CALayer: Animation using actions property

2011-04-19 Thread Bhatnagar, Arvin
]; [[NSRunLoop currentRunLoop] addTimer:mDotTimer forMode:NSEventTrackingRunLoopMode]; } Thanks, Arvin On 4/19/11 12:07 PM, Bhatnagar, Arvin arvin.bhatna...@verizon.commailto:arvin.bhatna...@verizon.com wrote: Thanks David, I am going to try that suggestion right now. On 4/19/11 11:59 AM, David

CALayer: Animation using actions property

2011-04-18 Thread Bhatnagar, Arvin
Hi All, This is probably a simple question for someone other than I. I have a very simple CALayer which is a simple plain layer with a white background. I then create a CABasicAnimation and add it to the actions property to animate the @opacity. From here I setup a timer to fire and toggle the

Re: Best way to find files

2011-04-08 Thread Bhatnagar, Arvin
Dominic, I haven't done this yet, but need to set this up in the app I'm beginning to work on. From the searches I've done, perhaps the solution is NSMetadataQuery along with a UTI. Take a look at both the SpotlightFortunes and PhotoSearch sample code. The only drawback I can think of is that